mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
intel/compiler: adjust [store|load]_task_payload.base too
Base also needs to be converted from bytes to words. Fixes:c36ae42e4c("intel/compiler: Use nir_var_mem_task_payload") Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19409> (cherry picked from commit7aaafaa8ae)
This commit is contained in:
parent
b022752572
commit
20ba98ab2f
2 changed files with 5 additions and 1 deletions
|
|
@ -5359,7 +5359,7 @@
|
|||
"description": "intel/compiler: adjust [store|load]_task_payload.base too",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "c36ae42e4cccc925e5319afe41c4b8ba850730b4"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -202,6 +202,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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue