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;