radeonsi: remove redundant setting scratch_state atom dirty
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 <yogesh.mohanmarimuthu@amd.com> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11900>
This commit is contained in:

committed by
Marge Bot

parent
86ff5b7ddb
commit
be9ca62247
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user