v3d: flush jobs writing to vertex buffers used in the current draw call
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 19 Jun 2019 08:28:12 +0000 (10:28 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Fri, 21 Jun 2019 06:06:13 +0000 (08:06 +0200)
commit4d8f82946b22396c90ca102a44de7bdebd8838d6
tree446019cab208623fe280f260dc259ca0bf759860
parenteb44dcc219fe1b224a548341c51337e810942455
v3d: flush jobs writing to vertex buffers used in the current draw call

This can happen when any of our vertex buffers was written by a previous
transform feedback draw.

Fixes the following piglit tests:
spec/ext_transform_feedback/position-render-bufferbase
spec/ext_transform_feedback/position-render-bufferbase-discard
spec/ext_transform_feedback/position-render-bufferoffset
spec/ext_transform_feedback/position-render-bufferoffset-discard
spec/ext_transform_feedback/position-render-bufferrange
spec/ext_transform_feedback/position-render-bufferrange-discard

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