From be9ca622478ac4ef1eda9c1ce6244d7bed7e02f9 Mon Sep 17 00:00:00 2001 From: Yogesh mohan marimuthu Date: Tue, 15 Jun 2021 14:37:40 +0530 Subject: [PATCH] radeonsi: remove redundant setting scratch_state atom dirty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Whenever scratch buffer is allocated, current spi_tmpring_size and previous spi_tmpring_size cannot be same and hence scratch_state will be set dirty as part of "if (spi_tmpring_size != sctx->spi_tmpring_size)". Removing redundant dirty bit sat while allocating scratch buffer. Signed-off-by: Yogesh mohan marimuthu Reviewed-by: Pierre-Eric Pelloux-Prayer Reviewed-by: Marek Olšák Part-of: --- src/gallium/drivers/radeonsi/si_state_shaders.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index 5ef033ed6a5..51db88a6188 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -3809,7 +3809,6 @@ static bool si_update_spi_tmpring_size(struct si_context *sctx) if (!sctx->scratch_buffer) return false; - si_mark_atom_dirty(sctx, &sctx->atoms.s.scratch_state); si_context_add_resource_size(sctx, &sctx->scratch_buffer->b.b); }