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:
Alyssa Rosenzweig 2023-08-03 13:28:27 -04:00 committed by Marge Bot
parent c1e2200b70
commit c252120239

View file

@ -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;
}