From: Dave Airlie Date: Thu, 23 Jan 2020 06:19:25 +0000 (+1000) Subject: draw: emit multiple streams to streamout. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=72154c9075269d2022ede04f233a08bb9751f104;p=mesa.git draw: emit multiple streams to streamout. Reviewed-by: Roland Scheidegger Part-of: --- diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c index c19eda2ede4..3a75a00c363 100644 --- a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c +++ b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c @@ -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);