diff options
author | Dave Airlie <[email protected]> | 2020-06-19 14:44:59 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2020-07-08 06:06:05 +1000 |
commit | 99ae39f76c90403b7bdc19349275f70df4c57443 (patch) | |
tree | 5c47c12940e6148f3e9d964140c639daaa7e5981 | |
parent | 7d82bb0e41dbfb706d86c030779de31316f8cd7e (diff) |
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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5555>
-rw-r--r-- | src/gallium/auxiliary/draw/draw_gs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |