From 7aaafaa8ae26ee1086a51089c12e4fa9e9645c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20=C5=9Alusarz?= Date: Fri, 21 Oct 2022 15:49:52 +0200 Subject: [PATCH] intel/compiler: adjust [store|load]_task_payload.base too Base also needs to be converted from bytes to words. Fixes: c36ae42e4cc ("intel/compiler: Use nir_var_mem_task_payload") Reviewed-by: Caio Oliveira Part-of: --- src/intel/compiler/brw_mesh.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/intel/compiler/brw_mesh.cpp b/src/intel/compiler/brw_mesh.cpp index 2250771f365..24082867063 100644 --- a/src/intel/compiler/brw_mesh.cpp +++ b/src/intel/compiler/brw_mesh.cpp @@ -204,6 +204,10 @@ brw_nir_adjust_task_payload_offsets_instr(struct nir_builder *b, nir_ssa_def *offset = nir_ishr_imm(b, offset_src->ssa, 2); nir_instr_rewrite_src(&intrin->instr, offset_src, nir_src_for_ssa(offset)); + unsigned base = nir_intrinsic_base(intrin); + assert(base % 4 == 0); + nir_intrinsic_set_base(intrin, base / 4); + return true; }