mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
nir/lower_clip_disable: Fix store writemask
We're storing into the array element, not the whole variable. Fixes:fb2fe80("nir: add lowering pass for clip plane enabling") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7274> (cherry picked from commit77fcb01f7f)
This commit is contained in:
parent
0a1b6f7cc4
commit
a840d01c57
2 changed files with 3 additions and 2 deletions
|
|
@ -607,7 +607,7 @@
|
|||
"description": "nir/lower_clip_disable: Fix store writemask",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "fb2fe802f638d7a70f0d00ec1d496f317d241765"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -101,7 +101,8 @@ lower_clip_plane_store(nir_intrinsic_instr *instr, unsigned clip_plane_enable, n
|
|||
if (clip_plane_enable & (1 << plane))
|
||||
return false;
|
||||
|
||||
nir_store_deref(b, deref, nir_imm_int(b, 0), 1 << plane);
|
||||
assert(nir_intrinsic_write_mask(instr) == 1);
|
||||
nir_store_deref(b, deref, nir_imm_int(b, 0), 1);
|
||||
} else {
|
||||
/* storing using a variable index */
|
||||
nir_ssa_def *index = nir_ssa_for_src(b, deref->arr.index, 1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue