projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1e2200
)
agx: Fix shader info with sample mask writes
author
Alyssa Rosenzweig
<alyssa@rosenzweig.io>
Thu, 3 Aug 2023 17:28:27 +0000
(13:28 -0400)
committer
Marge Bot
<emma+marge@anholt.net>
Fri, 11 Aug 2023 20:31:27 +0000
(20:31 +0000)
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>
src/asahi/lib/agx_nir_lower_msaa.c
patch
|
blob
|
history
diff --git
a/src/asahi/lib/agx_nir_lower_msaa.c
b/src/asahi/lib/agx_nir_lower_msaa.c
index
bd9729c
..
a4c2334
100644
(file)
--- a/
src/asahi/lib/agx_nir_lower_msaa.c
+++ b/
src/asahi/lib/agx_nir_lower_msaa.c
@@
-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;
}