mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 21:30:09 +01:00
ac/nir/ps: fix null export write mask miss set to 0xf
Fixes: c182154456 ("ac/nir: add ac_nir_lower_ps")
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22199>
This commit is contained in:
parent
1080ff3971
commit
01f4addc18
1 changed files with 6 additions and 3 deletions
|
|
@ -715,9 +715,12 @@ emit_ps_null_export(nir_builder *b, lower_ps_state *s)
|
|||
unsigned target = s->options->gfx_level >= GFX11 ?
|
||||
V_008DFC_SQ_EXP_MRT : V_008DFC_SQ_EXP_NULL;
|
||||
|
||||
nir_export_amd(b, nir_ssa_undef(b, 4, 32),
|
||||
.base = target,
|
||||
.flags = AC_EXP_FLAG_VALID_MASK | AC_EXP_FLAG_DONE);
|
||||
nir_intrinsic_instr *intrin =
|
||||
nir_export_amd(b, nir_ssa_undef(b, 4, 32),
|
||||
.base = target,
|
||||
.flags = AC_EXP_FLAG_VALID_MASK | AC_EXP_FLAG_DONE);
|
||||
/* To avoid builder set write mask to 0xf. */
|
||||
nir_intrinsic_set_write_mask(intrin, 0);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue