From 532259b8a3b8a92c79a1c6ea8d367394d1b39052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 19 Sep 2020 04:00:14 -0400 Subject: [PATCH] radeonsi: don't call emit_cache_flush after uploading bindless descriptors The next draw call will do it. Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/drivers/radeonsi/si_descriptors.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c index 0d1abe19c05..bbcaac10134 100644 --- a/src/gallium/drivers/radeonsi/si_descriptors.c +++ b/src/gallium/drivers/radeonsi/si_descriptors.c @@ -1830,10 +1830,8 @@ static void si_upload_bindless_descriptors(struct si_context *sctx) (*img_handle)->desc_dirty = false; } - /* Invalidate L1 because it doesn't know that L2 changed. */ + /* Invalidate scalar L0 because the cache doesn't know that L2 changed. */ sctx->flags |= SI_CONTEXT_INV_SCACHE; - sctx->emit_cache_flush(sctx); - sctx->bindless_descriptors_dirty = false; }