tu/kgsl: Fix profiling buffer GPU IOVA

The IOVA being submitted was of the suballocation rather than
the parent buffer.

Signed-off-by: Mark Collins <mark@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30147>
This commit is contained in:
Mark Collins 2024-07-12 11:25:35 +00:00 committed by Marge Bot
parent 0d6faa21f8
commit d77b0f7cb1

View file

@ -1213,7 +1213,7 @@ kgsl_queue_submit(struct tu_queue *queue, struct vk_queue_submit *vk_submit)
objs[obj_idx++] = (struct kgsl_command_object) {
.offset = bo->iova - bo->bo->iova,
.gpuaddr = bo->iova,
.gpuaddr = bo->bo->iova,
.size = sizeof(struct kgsl_cmdbatch_profiling_buffer),
.flags = KGSL_OBJLIST_MEMOBJ | KGSL_OBJLIST_PROFILE,
.id = bo->bo->gem_handle,