From: Marek Olšák Date: Thu, 24 Sep 2015 21:50:01 +0000 (+0200) Subject: radeonsi: add scratch buffer to the buffer list when it's re-allocated X-Git-Tag: android-x86-6.0-r1~7020 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9932142192f848ae9dbc644551653547640346b4;p=android-x86%2Fexternal-mesa.git radeonsi: add scratch buffer to the buffer list when it's re-allocated Reviewed-by: Michel Dänzer Cc: mesa-stable@lists.freedesktop.org --- diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index 56f868d81db..b5e14ead160 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -1246,6 +1246,7 @@ static bool si_update_spi_tmpring_size(struct si_context *sctx) PIPE_USAGE_DEFAULT, scratch_needed_size); if (!sctx->scratch_buffer) return false; + sctx->emit_scratch_reloc = true; } /* Update the shaders, so they are using the latest scratch. The