From 59c8fff7e4798731ce8672f2de929170ff6c805f Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 26 Mar 2020 16:18:27 +1000 Subject: [PATCH] gallivm/nir: call end prim at end on all GS streams. Fixes: KHR-GL45.transform_feedback.draw_xfb_stream_test Reviewed-by: Roland Scheidegger Part-of: --- 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], ""); -- 2.30.2