mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
agx: Fix alpha-to-coverage bit size
The new common code gives us 32-bit values, handle this.
This fixes the various crashes on CTS since the common code changes of
last week.
Signed-off-by: Mary Guillemard <mary@mary.zone>
Fixes: 22a061fb91 ("nir: Use better calculation for alpha-to-coverage mask")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40691>
This commit is contained in:
parent
e16c8cc579
commit
915684fe60
1 changed files with 3 additions and 2 deletions
|
|
@ -82,7 +82,8 @@ lower_discard_to_sample_mask_0(nir_builder *b, nir_intrinsic_instr *intr,
|
|||
return false;
|
||||
|
||||
b->cursor = nir_before_instr(&intr->instr);
|
||||
nir_sample_mask_agx(b, intr->src[0].ssa, nir_imm_intN_t(b, 0, 16));
|
||||
nir_sample_mask_agx(b, nir_u2u16(b, intr->src[0].ssa),
|
||||
nir_imm_intN_t(b, 0, 16));
|
||||
nir_instr_remove(&intr->instr);
|
||||
return true;
|
||||
}
|
||||
|
|
@ -146,7 +147,7 @@ run_tests_after_last_discard(nir_builder *b)
|
|||
b->cursor = nir_before_instr(&intr->instr);
|
||||
|
||||
nir_def *all_samples = nir_imm_intN_t(b, ALL_SAMPLES, 16);
|
||||
nir_def *killed = intr->src[0].ssa;
|
||||
nir_def *killed = nir_u2u16(b, intr->src[0].ssa);
|
||||
nir_def *live = nir_ixor(b, killed, all_samples);
|
||||
|
||||
nir_def *testing = nir_load_shader_part_tests_zs_agx(b);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue