glthread: use glthread->used instead of glthread->next_batch->used
authorMarek Olšák <marek.olsak@amd.com>
Sat, 10 Oct 2020 02:16:29 +0000 (22:16 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 8 Dec 2020 17:47:56 +0000 (17:47 +0000)
commit70b778945b320115c558e17f12e3d630d464dcba
treee791413051f9487d8644d11e96ad2279551e0b91
parent0a4004e5fab0aef3ccec102656d7abef303ae5d8
glthread: use glthread->used instead of glthread->next_batch->used

remove one pointer dereference by having "used" in glthread too

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7719>
src/mesa/main/glthread.c
src/mesa/main/glthread.h
src/mesa/main/glthread_marshal.h