mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
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:
parent
3ae84ea225
commit
f9c4dc3508
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue