draw: emit multiple streams to streamout.
authorDave Airlie <airlied@redhat.com>
Thu, 23 Jan 2020 06:19:25 +0000 (16:19 +1000)
committerMarge Bot <eric+marge@anholt.net>
Fri, 7 Feb 2020 00:54:42 +0000 (00:54 +0000)
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3530>

src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c

index c19eda2ede4dd3e55f39b8e867b09f22e8371386..3a75a00c363644ebd2fc419b61067d6a21431885 100644 (file)
@@ -483,7 +483,7 @@ llvm_pipeline_generic(struct draw_pt_middle_end *middle,
    }
 
    /* stream output needs to be done before clipping */
-   draw_pt_so_emit( fpme->so_emit, 1, vert_info, prim_info );
+   draw_pt_so_emit( fpme->so_emit, gshader ? gshader->num_vertex_streams : 1, vert_info, prim_info );
 
    draw_stats_clipper_primitives(draw, prim_info);