radeonsi: don't forget to update scratch relocations for LS, HS, ES shaders
authorMarek Olšák <marek.olsak@amd.com>
Thu, 10 Sep 2015 16:42:22 +0000 (18:42 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 24 Sep 2015 17:51:43 +0000 (19:51 +0200)
Cc: 11.0 <mesa-stable@lists.freedesktop.org>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/si_state_shaders.c

index eb5d9f59e8416d7244eb2e4d56715ec1d8f9f4ae..56f868d81db742219dd4f0b23473aa6c09ad919f 100644 (file)
@@ -1534,8 +1534,12 @@ bool si_update_shaders(struct si_context *sctx)
                si_mark_atom_dirty(sctx, &sctx->spi_map);
        }
 
-       if (si_pm4_state_changed(sctx, ps) || si_pm4_state_changed(sctx, vs) ||
-           si_pm4_state_changed(sctx, gs)) {
+       if (si_pm4_state_changed(sctx, ls) ||
+           si_pm4_state_changed(sctx, hs) ||
+           si_pm4_state_changed(sctx, es) ||
+           si_pm4_state_changed(sctx, gs) ||
+           si_pm4_state_changed(sctx, vs) ||
+           si_pm4_state_changed(sctx, ps)) {
                if (!si_update_spi_tmpring_size(sctx))
                        return false;
        }