iris: speed up walking global bindings
authorKarol Herbst <kherbst@redhat.com>
Thu, 22 Sep 2022 11:16:18 +0000 (13:16 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 10 Oct 2022 20:23:01 +0000 (20:23 +0000)
commitf9c4dc3508705787578299c5a6ba5677ba8a0f2b
tree0b44516a0e5ec82dd1503eb528593e18f9345dfc
parent3ae84ea225ca5a71683ae3e6eda878764f128c84
iris: speed up walking global bindings

we can break on the first NULL resource as frontends always bind
contingous lists of resources without any gaps.

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18670>
src/gallium/drivers/iris/iris_state.c