From 3527d9f81d61fe9a54b4b29f75213314d56b3aef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 25 Aug 2024 18:26:53 -0400 Subject: [PATCH] radeonsi: remove CB sync after FMASK and DCC decompression It's not needed according to docs. Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/drivers/radeonsi/si_blit.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_blit.c b/src/gallium/drivers/radeonsi/si_blit.c index c34980ecb3e..bb1a2451d93 100644 --- a/src/gallium/drivers/radeonsi/si_blit.c +++ b/src/gallium/drivers/radeonsi/si_blit.c @@ -515,12 +515,6 @@ static void si_blit_decompress_color(struct si_context *sctx, struct si_texture util_blitter_custom_color(sctx->blitter, cbsurf, custom_blend); si_blitter_end(sctx); - if (custom_blend == sctx->custom_blend_fmask_decompress || - custom_blend == sctx->custom_blend_dcc_decompress) { - sctx->barrier_flags |= SI_BARRIER_SYNC_AND_INV_CB; - si_mark_atom_dirty(sctx, &sctx->atoms.s.barrier); - } - /* When running FMASK decompression with DCC, we need to run the "eliminate fast clear" pass * separately because FMASK decompression doesn't eliminate DCC fast clear. This makes * render->texture transitions more expensive. It can be disabled by