panfrost: Use the per-batch fences to wait on the last submitted batch
[mesa.git] / src / gallium / drivers / panfrost / pan_context.h
index 4f5c1374720f93bae620c01b321fd7986cd12147..ce3e0c899a4f99c07fb0a0fa89a8f829c37b9e9c 100644 (file)
@@ -123,10 +123,6 @@ struct panfrost_context {
         struct pipe_framebuffer_state pipe_framebuffer;
         struct panfrost_streamout streamout;
 
-        struct panfrost_bo *scratchpad;
-        struct panfrost_bo *tiler_heap;
-        struct panfrost_bo *tiler_dummy;
-
         bool active_queries;
         uint64_t prims_generated;
         uint64_t tf_prims_generated;
@@ -195,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 */