radeonsi: shrink the GSVS ring to account for the reduced item sizes
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 30 Nov 2016 11:26:49 +0000 (12:26 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 12 Dec 2016 08:05:17 +0000 (09:05 +0100)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_state_shaders.c

index 151ed17b1d41e1f3e166e641866a027cfb973878..4a7f638f1d36a7afaea8d0dbfa7bd8171cd24836 100644 (file)
@@ -1961,7 +1961,7 @@ static bool si_update_gs_ring_buffers(struct si_context *sctx)
        unsigned esgs_ring_size = max_gs_waves * 2 * wave_size *
                                  es->esgs_itemsize * gs->gs_input_verts_per_prim;
        unsigned gsvs_ring_size = max_gs_waves * 2 * wave_size *
-                                 gs->max_gsvs_emit_size * (gs->max_gs_stream + 1);
+                                 gs->max_gsvs_emit_size;
 
        min_esgs_ring_size = align(min_esgs_ring_size, alignment);
        esgs_ring_size = align(esgs_ring_size, alignment);