glthread: reduce dereferences of the next batch
[mesa.git] / src / mesa / main / glthread.h
index 9c1742eb2b4134a5e8215f806b0f0c2841e34ae2..a50b2f87ceb4e3d97021e6b02386106591e1345e 100644 (file)
@@ -94,6 +94,9 @@ struct glthread_state
    /** The ring of batches in memory. */
    struct glthread_batch batches[MARSHAL_MAX_BATCHES];
 
+   /** Pointer to the batch currently being filled. */
+   struct glthread_batch *next_batch;
+
    /** Index of the last submitted batch. */
    unsigned last;