From: Dave Airlie Date: Fri, 19 Jun 2020 04:44:59 +0000 (+1000) Subject: draw/gs: fix up current verts in output fetching. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=99ae39f76c90403b7bdc19349275f70df4c57443;p=mesa.git draw/gs: fix up current verts in output fetching. This was wrong since I added multi-stream support in draw/gs: track emitted prims + verts per stream Reviewed-by: Roland Scheidegger Part-of: --- diff --git a/src/gallium/auxiliary/draw/draw_gs.c b/src/gallium/auxiliary/draw/draw_gs.c index fd393ded628..b87e5d35f80 100644 --- a/src/gallium/auxiliary/draw/draw_gs.c +++ b/src/gallium/auxiliary/draw/draw_gs.c @@ -336,7 +336,7 @@ llvm_fetch_gs_outputs(struct draw_geometry_shader *shader, output_ptr += shader->stream[stream].emitted_vertices * shader->vertex_size; for (i = 0; i < shader->vector_length - 1; ++i) { - int current_verts = shader->llvm_emitted_vertices[i]; + int current_verts = shader->llvm_emitted_vertices[i + (stream * shader->vector_length)]; int next_verts = shader->llvm_emitted_vertices[i + 1 + (stream * shader->vector_length)]; #if 0 int j;