Module: Mesa Branch: main Commit: 14b99df7d92a0c838bd95650e02125c062955446 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=14b99df7d92a0c838bd95650e02125c062955446
Author: Lionel Landwerlin <[email protected]> Date: Thu Sep 22 10:14:28 2022 +0300 intel/fs: require UNDEFs register offsets to be aligned to REG_SIZE Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Francisco Jerez <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18657> --- src/intel/compiler/brw_fs_builder.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/compiler/brw_fs_builder.h b/src/intel/compiler/brw_fs_builder.h index ce340f41de6..7b4cdd726a2 100644 --- a/src/intel/compiler/brw_fs_builder.h +++ b/src/intel/compiler/brw_fs_builder.h @@ -782,6 +782,7 @@ namespace brw { UNDEF(const dst_reg &dst) const { assert(dst.file == VGRF); + assert(dst.offset % REG_SIZE == 0); instruction *inst = emit(SHADER_OPCODE_UNDEF, retype(dst, BRW_REGISTER_TYPE_UD)); inst->size_written = shader->alloc.sizes[dst.nr] * REG_SIZE;
