panfrost: Use the per-batch fences to wait on the last submitted batch
[mesa.git] / src / gallium / drivers / panfrost / pan_context.h
index c145d589757e3fb370a8df859526b1769888d2b2..ce3e0c899a4f99c07fb0a0fa89a8f829c37b9e9c 100644 (file)
@@ -191,7 +191,8 @@ struct panfrost_context {
         /* True for t6XX, false for t8xx. */
         bool is_t6xx;
 
-        uint32_t out_sync;
+        /* The out sync fence of the last submitted batch. */
+        struct panfrost_batch_fence *last_out_sync;
 };
 
 /* Corresponds to the CSO */