Mesa (master): draw/gs: fix up current verts in output fetching.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jul 7 20:37:17 UTC 2020


Module: Mesa
Branch: master
Commit: 99ae39f76c90403b7bdc19349275f70df4c57443
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=99ae39f76c90403b7bdc19349275f70df4c57443

Author: Dave Airlie <airlied at redhat.com>
Date:   Fri Jun 19 14:44:59 2020 +1000

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 <sroland at vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5555>

---

 src/gallium/auxiliary/draw/draw_gs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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; 



More information about the mesa-commit mailing list