aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2020-03-26 16:18:27 +1000
committerDave Airlie <[email protected]>2020-07-08 06:06:04 +1000
commit59c8fff7e4798731ce8672f2de929170ff6c805f (patch)
tree94a0dcecc7076cf458a56ee6ea12ef218fc1c7aa
parentb921d17aa69af0a02639461d8c5d829ebb0d0349 (diff)
gallivm/nir: call end prim at end on all GS streams.
Fixes: KHR-GL45.transform_feedback.draw_xfb_stream_test Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5555>
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c3
1 files changed, 2 insertions, 1 deletions
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], "");