radeonsi: add scratch buffer to the buffer list when it's re-allocated
authorMarek Olšák <marek.olsak@amd.com>
Thu, 24 Sep 2015 21:50:01 +0000 (23:50 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 25 Sep 2015 23:51:05 +0000 (01:51 +0200)
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/radeonsi/si_state_shaders.c

index 56f868d81db742219dd4f0b23473aa6c09ad919f..b5e14ead1604e54735fff6d325692719d5f8ed75 100644 (file)
@@ -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