iris: Account for BO offsets in iris_set_global_binding()

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15777>
This commit is contained in:
Jason Ekstrand 2022-04-06 13:14:14 -05:00 committed by Marge Bot
parent 25202b5861
commit 187923c2eb

View file

@ -3021,7 +3021,7 @@ iris_set_global_binding(struct pipe_context *ctx,
pipe_resource_reference(&ice->state.global_bindings[start_slot + i],
resources[i]);
struct iris_resource *res = (void *) resources[i];
uint64_t addr = res->bo->address;
uint64_t addr = res->bo->address + res->offset;
memcpy(handles[i], &addr, sizeof(addr));
} else {
pipe_resource_reference(&ice->state.global_bindings[start_slot + i],