From cd1c7ff776e2dae6964bce327dc1b97689f9fa5e Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 23 Aug 2024 10:40:28 -0400 Subject: [PATCH] asahi: fix fbfetch with eMRT fall out from epilogs. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/asahi/agx_state.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/asahi/agx_state.c b/src/gallium/drivers/asahi/agx_state.c index 8a8ab4e4784..18c118be89c 100644 --- a/src/gallium/drivers/asahi/agx_state.c +++ b/src/gallium/drivers/asahi/agx_state.c @@ -1613,6 +1613,7 @@ agx_compile_variant(struct agx_device *dev, struct pipe_context *pctx, _mesa_hash_table_num_entries(so->variants)); struct agx_unlinked_uvs_layout uvs = {0}; + bool translucent = false; if (nir->info.stage == MESA_SHADER_VERTEX) { struct asahi_vs_shader_key *key = &key_->vs; @@ -1665,7 +1666,7 @@ agx_compile_variant(struct agx_device *dev, struct pipe_context *pctx, (2 * BITSET_LAST_BIT(nir->info.images_used)); unsigned rt_spill = rt_spill_base; NIR_PASS(_, nir, agx_nir_lower_tilebuffer, &tib, NULL, &rt_spill, NULL, - NULL); + &translucent); } if (nir->info.fs.uses_sample_shading) { @@ -1694,6 +1695,7 @@ agx_compile_variant(struct agx_device *dev, struct pipe_context *pctx, (2 * BITSET_LAST_BIT(nir->info.images_used)); compiled->epilog_key = epilog_key; + compiled->b.info.reads_tib |= translucent; } compiled->so = so;