From ec7cda29b6581a7626a051f76fd28d0bd024899c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 24 Sep 2015 23:50:01 +0200 Subject: [PATCH] radeonsi: add scratch buffer to the buffer list when it's re-allocated MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Michel Dänzer Cc: mesa-stable@lists.freedesktop.org (cherry picked from commit 9932142192f848ae9dbc644551653547640346b4) --- src/gallium/drivers/radeonsi/si_state_shaders.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index 94d58610c7c..f9b38ed5384 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -1213,6 +1213,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 -- 2.11.0