zink: fix broken compiler assert

cc: mesa-stable

(cherry picked from commit 44f2c40830)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40092>
This commit is contained in:
Mike Blumenkrantz 2026-02-18 09:58:03 -05:00 committed by Eric Engestrom
parent c4bb652871
commit 641a3ea0d9
2 changed files with 2 additions and 2 deletions

View file

@ -2814,7 +2814,7 @@
"description": "zink: fix broken compiler assert",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -753,7 +753,7 @@ lower_line_smooth_gs_store(nir_builder *b,
gl_varying_slot location = var->data.location;
unsigned location_frac = var->data.location_frac;
if (location != VARYING_SLOT_POS) {
assert(state->varyings[location]);
assert(state->varyings[location][location_frac]);
nir_store_var(b, state->varyings[location][location_frac],
intrin->src[1].ssa,
nir_intrinsic_write_mask(intrin));