radv/coopmat: fix deref stride

This at least fixes the nir debug output to have correct values.

Fixes: 48fc8c8d1c ("radv/nir/lower_cmat: set optimal load/store alignment")
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
(cherry picked from commit ab9e904f24)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39462>
This commit is contained in:
Dave Airlie 2026-01-12 15:38:11 +10:00 committed by Dylan Baker
parent 40743daaea
commit b9797ce180
2 changed files with 2 additions and 2 deletions

View file

@ -1474,7 +1474,7 @@
"description": "radv/coopmat: fix deref stride",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "48fc8c8d1c934e75c6ea7da72f8639761cea98c2",
"notes": null

View file

@ -337,7 +337,7 @@ lower_cmat_load_store(nir_builder *b, nir_intrinsic_instr *intr, const lower_cma
if (align_mul) {
unsigned align_offset = row_iter * radv_nir_cmat_bits(desc) / 8 % align_mul;
iter_deref = nir_build_deref_cast_with_alignment(b, &iter_deref->def, deref->modes, iter_deref->type,
iter_deref->cast.ptr_stride, align_mul, align_offset);
radv_nir_cmat_bits(desc) / 8, align_mul, align_offset);
}
if (is_load) {