glthread: reduce dereferences of the next batch
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4758>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user