Module: Mesa Branch: main Commit: 9b0960cfe39414815b1dc5a786e6312639f49352 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9b0960cfe39414815b1dc5a786e6312639f49352
Author: Danylo Piliaiev <[email protected]> Date: Fri Oct 6 10:26:26 2023 +0200 tu/kgsl: Fix field order in kgsl_command_object init Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9942 Fixes: ec268fa5b666a49adafc431dbc05b73bfd74526e ("tu/kgsl: Support u_trace and perfetto") Signed-off-by: Danylo Piliaiev <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25581> --- src/freedreno/vulkan/tu_knl_kgsl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/vulkan/tu_knl_kgsl.cc b/src/freedreno/vulkan/tu_knl_kgsl.cc index 6d3825a4da0..0c2f16c496c 100644 --- a/src/freedreno/vulkan/tu_knl_kgsl.cc +++ b/src/freedreno/vulkan/tu_knl_kgsl.cc @@ -1103,8 +1103,8 @@ kgsl_queue_submit(struct tu_queue *queue, struct vk_queue_submit *vk_submit) struct tu_suballoc_bo *bo = &u_trace_submission_data->kgsl_timestamp_bo; objs[obj_idx++] = (struct kgsl_command_object) { - .gpuaddr = bo->iova, .offset = bo->iova - bo->bo->iova, + .gpuaddr = bo->iova, .size = sizeof(struct kgsl_cmdbatch_profiling_buffer), .flags = KGSL_OBJLIST_MEMOBJ | KGSL_OBJLIST_PROFILE, .id = bo->bo->gem_handle,
