draw: fix nonzero stream primitives generated queries
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 22 Mar 2022 16:32:22 +0000 (12:32 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 23 Mar 2022 04:08:14 +0000 (04:08 +0000)
commit36373e8e1e4f236fab1fb40863f125fb250b6ba2
treea38fc71180d1a95cd8da8d61f8dd104bac3a2845
parent32f117f5f8d746bdafb9a62cd01b0878df4f0e81
draw: fix nonzero stream primitives generated queries

the fastpath here can only be taken if there is exactly one stream active,
as this will otherwise break nonzero stream primitives generated queries

in truth, this num_vertex_streams thing should be a bitmask so that the case
of num_streams=1,stream_id!=0 could also be fastpathed, but the complexity
probably isn't worth it given the infrequency of use

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15506>
src/gallium/auxiliary/draw/draw_pt_so_emit.c