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>
This commit is contained in:
Karol Herbst 2022-09-22 13:16:18 +02:00 committed by Marge Bot
parent 3ae84ea225
commit f9c4dc3508

View file

@ -7296,7 +7296,7 @@ iris_upload_gpgpu_walker(struct iris_context *ice,
for (unsigned i = 0; i < IRIS_MAX_GLOBAL_BINDINGS; i++) {
struct pipe_resource *res = ice->state.global_bindings[i];
if (!res)
continue;
break;
iris_use_pinned_bo(batch, iris_resource_bo(res),
true, IRIS_DOMAIN_NONE);