iris/cs: take buffer offsets into account for CL

Sadly we pass in an offset, which the driver can't ignore

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16348>
This commit is contained in:
Karol Herbst 2022-04-12 02:33:27 +02:00 committed by Marge Bot
parent 3269d34b29
commit d98b82a103
1 changed files with 3 additions and 1 deletions

View File

@ -3026,7 +3026,9 @@ iris_set_global_binding(struct pipe_context *ctx,
util_range_add(&res->base.b, &res->valid_buffer_range,
0, res->base.b.width0);
uint64_t addr = res->bo->address + res->offset;
uint64_t addr = 0;
memcpy(&addr, handles[i], sizeof(addr));
addr += res->bo->address + res->offset;
memcpy(handles[i], &addr, sizeof(addr));
} else {
pipe_resource_reference(&ice->state.global_bindings[start_slot + i],