diff options
author | Dave Airlie <[email protected]> | 2020-03-26 16:18:27 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2020-07-08 06:06:04 +1000 |
commit | 59c8fff7e4798731ce8672f2de929170ff6c805f (patch) | |
tree | 94a0dcecc7076cf458a56ee6ea12ef218fc1c7aa | |
parent | b921d17aa69af0a02639461d8c5d829ebb0d0349 (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.c | 3 |
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], ""); |