v3d: fix glDrawTransformFeedback{Instanced}()
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 24 Jul 2019 08:14:33 +0000 (10:14 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Fri, 26 Jul 2019 06:29:41 +0000 (08:29 +0200)
commit1a99fc0fd022018ed056cd42f299d5ad1a02c264
tree19e101f9fd7205420067c2b1896337ba6899f92c
parent47eb74ae00bd2d3b26d5154b99332af062107265
v3d: fix glDrawTransformFeedback{Instanced}()

This needs to take the vertex count from the provided transform
feedback buffer.

v2:
 - don't take the vertex count from the underlying buffer, instead,
   take it from a v3d subclass of pipe_stream_output_target (Eric).

Fixes piglit tests:
spec/ext_transform_feedback2/draw-auto
spec/ext_transform_feedback2/draw-auto instanced

Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/drivers/v3d/v3d_context.h
src/gallium/drivers/v3d/v3dx_draw.c