radeonsi: update all GSVS ring descriptors for new buffer allocations
[mesa.git] / src / gallium / drivers / radeonsi / si_state_shaders.c
index 0afc3b4fc9d0fb585b8120632b1f28be81a61e0c..ea715695b97fe2662eee9b4d9c1548ec5a84d8b7 100644 (file)
@@ -2038,10 +2038,15 @@ static bool si_update_gs_ring_buffers(struct si_context *sctx)
                                   sctx->esgs_ring, 0, sctx->esgs_ring->width0,
                                   false, false, 0, 0, 0);
        }
-       if (sctx->gsvs_ring)
+       if (sctx->gsvs_ring) {
                si_set_ring_buffer(&sctx->b.b, SI_VS_RING_GSVS,
                                   sctx->gsvs_ring, 0, sctx->gsvs_ring->width0,
                                   false, false, 0, 0, 0);
+
+               /* Also update SI_GS_RING_GSVSi descriptors. */
+               sctx->last_gsvs_itemsize = 0;
+       }
+
        return true;
 }