v3d: Block bin on render when doing vertex texturing.
authorEric Anholt <eric@anholt.net>
Fri, 27 Jul 2018 20:13:55 +0000 (13:13 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 30 Jul 2018 02:25:39 +0000 (19:25 -0700)
commit0a3f653180996e4ca44586e6974ded9ba6bc8ecc
tree2c7d02eb7581df699e2587c8d44aa3b9b6f936ce
parent34cefa7fe01aadf977a9b7a0164f1cb3d5db4fa4
v3d: Block bin on render when doing vertex texturing.

The kernel by default serializes the BCL on previous BCLs submitted on
this FD, but not RCLs.  For now this fix is conservative and blocks on
last RCL if any vertex texturing is done, which fails to get bin/render
overlap if there was an intermediate job that doesn't draw to the BCL's
buffer.  I've dropped a perf_debug() in here to note that as a potential
future improvement.

Fixes intermittent failures in
KHR-GLES3.copy_tex_image_conversions.required.*
src/gallium/drivers/v3d/v3dx_draw.c