radeonsi: set scratch_state dirty only if ctx->scratch_buffer allocated
authorYogesh mohan marimuthu <yogesh.mohanmarimuthu@amd.com>
Tue, 15 Jun 2021 09:13:33 +0000 (14:43 +0530)
committerMarge Bot <eric+marge@anholt.net>
Fri, 16 Jul 2021 23:08:00 +0000 (23:08 +0000)
commit7f9b3a70986b66a799145b461af4df74652078b7
tree0ce380a8bc4c6083de29df28671d4ebc3b3c0726
parentbe9ca622478ac4ef1eda9c1ce6244d7bed7e02f9
radeonsi: set scratch_state dirty only if ctx->scratch_buffer allocated

if ctx->scratch_buffer is NULL, then no need to update SPI_TMPRING_SIZE
size register.

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>
src/gallium/drivers/radeonsi/si_gfx_cs.c