nak: Sample locations are byte-aligned

Fixes: cc33cafcac ("nak/nir: Use an indirect load for sample locations")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29194>
(cherry picked from commit 761874ea85)
This commit is contained in:
Faith Ekstrand 2024-08-05 09:16:16 -05:00 committed by Eric Engestrom
parent 7ef9b0358c
commit d8282badb0
2 changed files with 2 additions and 2 deletions

View file

@ -734,7 +734,7 @@
"description": "nak: Sample locations are byte-aligned",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "cc33cafcacb1ad2eb9bb04283a57ee30385260fc",
"notes": null

View file

@ -111,7 +111,7 @@ load_sample_pos_u4_at(nir_builder *b, nir_def *sample_id,
nir_imm_int(b, fs_key->sample_locations_cb),
nir_iadd_imm(b, sample_id,
fs_key->sample_locations_offset),
.align_mul = 8, .align_offset = 0);
.align_mul = 1, .align_offset = 0);
/* The rest of these calculations are in 32-bit */
loc = nir_u2u32(b, loc);