draw: account primitive lengths for all streams.
authorDave Airlie <airlied@redhat.com>
Fri, 19 Jun 2020 05:04:19 +0000 (15:04 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 7 Jul 2020 20:06:05 +0000 (06:06 +1000)
commit1c9bf586e7b92a1918c3e379a96381c2dea85c12
treeecb56684deed1eece004fcba3fbd3b6d538a145d
parent09da72a7408f7c6d2f3754da3583d7891952645c
draw: account primitive lengths for all streams.

For correct XFB queries all streams must get primitive lengths
recorded. This allocates larger memory for per-stream lengths
and the shader write into them.

Fixes:
GTF-GL41.gtf40.GL3Tests.transform_feedback3.transform_feedback3_streams_queried
GTF-GL41.gtf40.GL3Tests.transform_feedback3.transform_feedback3_streams_overflow

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5555>
src/gallium/auxiliary/draw/draw_gs.c
src/gallium/auxiliary/draw/draw_llvm.c