mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
agx: Fix shader info with sample mask writes
Otherwise the discard_agx isn't lowered. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24635>
This commit is contained in:
parent
c1e2200b70
commit
c252120239
1 changed files with 1 additions and 0 deletions
|
|
@ -129,6 +129,7 @@ lower_sample_mask_write(nir_builder *b, nir_instr *instr, void *data)
|
|||
* and then lowering sample shading after (splitting up discard targets).
|
||||
*/
|
||||
nir_discard_agx(b, nir_inot(b, nir_u2u16(b, intr->src[0].ssa)));
|
||||
b->shader->info.fs.uses_discard = true;
|
||||
nir_instr_remove(instr);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue