v3d: Fix check for TFU job completion in the simulator.
authorEric Anholt <eric@anholt.net>
Wed, 19 Dec 2018 00:17:26 +0000 (16:17 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 19 Dec 2018 18:26:04 +0000 (10:26 -0800)
commitb5adc744ba0265dedad8631b52d15fde3e5733db
tree50da6ea889f3caf481d4db9060f13903bac4b382
parent365728dc5d46e133b7ef67e3859843dda708eb20
v3d: Fix check for TFU job completion in the simulator.

We're waiting for the jobs-completed count to increment (with wrapping),
not to reach its starting state.  This mostly ended up working out because
the next v3d_hw_tick() for a submit CL would end up doing the TFU
operation first, but it did fail when a blit was used for glReadPixels()
at the end of a test.

Fixes: ee0549ff9ab3 ("v3d: Add the V3D TFU submit interface to the simulator.")
src/gallium/drivers/v3d/v3dx_simulator.c