Mesa (master): gallivm/nir: call end prim at end on all GS streams.

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


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

Author: Dave Airlie <airlied at redhat.com>
Date:   Thu Mar 26 16:18:27 2020 +1000

gallivm/nir: call end prim at end on all GS streams.

Fixes: KHR-GL45.transform_feedback.draw_xfb_stream_test

Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5555>

---

 src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c
index 22ac493d2e3..1a28e21f457 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c
@@ -1904,8 +1904,9 @@ void lp_build_nir_soa(struct gallivm_state *gallivm,
       LLVMValueRef total_emitted_vertices_vec;
       LLVMValueRef emitted_prims_vec;
 
-      end_primitive_masked(&bld.bld_base, lp_build_mask_value(bld.mask), 0);
       for (int i = 0; i < PIPE_MAX_VERTEX_STREAMS; i++) {
+         end_primitive_masked(&bld.bld_base, lp_build_mask_value(bld.mask), i);
+
          total_emitted_vertices_vec =
             LLVMBuildLoad(builder, bld.total_emitted_vertices_vec_ptr[i], "");
 



More information about the mesa-commit mailing list