mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
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:
parent
25202b5861
commit
187923c2eb
1 changed files with 1 additions and 1 deletions
|
|
@ -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],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue