intel/fs: require UNDEFs register offsets to be aligned to REG_SIZE
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Francisco Jerez <currojerez@riseup.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18657>
This commit is contained in:

committed by
Marge Bot

parent
59ecbe3fe2
commit
14b99df7d9
@@ -782,6 +782,7 @@ namespace brw {
|
|||||||
UNDEF(const dst_reg &dst) const
|
UNDEF(const dst_reg &dst) const
|
||||||
{
|
{
|
||||||
assert(dst.file == VGRF);
|
assert(dst.file == VGRF);
|
||||||
|
assert(dst.offset % REG_SIZE == 0);
|
||||||
instruction *inst = emit(SHADER_OPCODE_UNDEF,
|
instruction *inst = emit(SHADER_OPCODE_UNDEF,
|
||||||
retype(dst, BRW_REGISTER_TYPE_UD));
|
retype(dst, BRW_REGISTER_TYPE_UD));
|
||||||
inst->size_written = shader->alloc.sizes[dst.nr] * REG_SIZE;
|
inst->size_written = shader->alloc.sizes[dst.nr] * REG_SIZE;
|
||||||
|
Reference in New Issue
Block a user