v3d: Fix check for TFU job completion in the simulator.
[mesa.git] / src / gallium / drivers / v3d / v3dx_simulator.c
index d1bca66b52589b972606c8af1c9335b9bc60a2f3..940b8f2ce32562144c9aa4b995b650aec5b6aa68 100644 (file)
@@ -120,7 +120,7 @@ v3dX(simulator_submit_tfu_ioctl)(struct v3d_hw *v3d,
 
         V3D_WRITE(V3D_TFU_ICFG, args->icfg);
 
-        while ((V3D_READ(V3D_TFU_CS) & V3D_TFU_CS_CVTCT_SET) != last_vtct) {
+        while ((V3D_READ(V3D_TFU_CS) & V3D_TFU_CS_CVTCT_SET) == last_vtct) {
                 v3d_hw_tick(v3d);
         }