anv: fix utrace timestamp buffer copies

Fixes: 521c216efc ("anv: use COMPUTE_WALKER post sync field to track compute work")
Acked-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24744>
(cherry picked from commit e0f420c334)
This commit is contained in:
Lionel Landwerlin 2023-08-25 23:15:29 +03:00 committed by Dylan Baker
parent 8d5d8757e1
commit 739d44b0fc
2 changed files with 3 additions and 3 deletions

View file

@ -134,7 +134,7 @@
"description": "anv: fix utrace timestamp buffer copies",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "521c216efcc0d0292ceedb3451c5a0a1ef956083",
"notes": null

View file

@ -104,9 +104,9 @@ anv_device_utrace_emit_copy_ts_buffer(struct u_trace_context *utctx,
container_of(utctx, struct anv_device, ds.trace_context);
struct anv_utrace_submit *submit = cmdstream;
struct anv_address from_addr = (struct anv_address) {
.bo = ts_from, .offset = from_offset * sizeof(uint64_t) };
.bo = ts_from, .offset = from_offset * sizeof(union anv_utrace_timestamp) };
struct anv_address to_addr = (struct anv_address) {
.bo = ts_to, .offset = to_offset * sizeof(uint64_t) };
.bo = ts_to, .offset = to_offset * sizeof(union anv_utrace_timestamp) };
anv_genX(device->info, emit_so_memcpy)(&submit->memcpy_state,
to_addr, from_addr,