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:
Marek Olšák
2020-03-27 06:06:31 -04:00
committed by Marge Bot
parent fc4b78f4cc
commit b6b1ab8d54
3 changed files with 9 additions and 4 deletions

View 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;