Mesa (main): asahi: Identify "command buffer" size field in map
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jul 6 13:55:47 UTC 2021
Module: Mesa
Branch: main
Commit: 0b9e8181da01240ee77d89d9d646a1a6d98cdfb0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0b9e8181da01240ee77d89d9d646a1a6d98cdfb0
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date: Mon Jul 5 19:38:47 2021 -0400
asahi: Identify "command buffer" size field in map
Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11730>
---
src/asahi/lib/io.h | 2 +-
src/gallium/drivers/asahi/magic.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/asahi/lib/io.h b/src/asahi/lib/io.h
index d004c4751db..f9b8832cf41 100644
--- a/src/asahi/lib/io.h
+++ b/src/asahi/lib/io.h
@@ -191,7 +191,7 @@ struct agx_map_header {
uint32_t unk3; // 28 05 00 80
uint64_t encoder_id; // GUID
uint32_t unk6; // 00 00 00 00
- uint32_t unk7; // 80 07 00 00
+ uint32_t cmdbuf_size;
uint32_t nr_entries_1;
uint32_t nr_entries_2;
uint32_t unka; // 0b 00 00 00
diff --git a/src/gallium/drivers/asahi/magic.c b/src/gallium/drivers/asahi/magic.c
index 27eea090a43..e81c400cc17 100644
--- a/src/gallium/drivers/asahi/magic.c
+++ b/src/gallium/drivers/asahi/magic.c
@@ -262,7 +262,7 @@ demo_map_header(uint64_t cmdbuf_id, uint64_t encoder_id, unsigned cmdbuf_size, u
.unk3 = 0x528, // 1320
.encoder_id = encoder_id,
.unk6 = 0x0,
- .unk7 = cmdbuf_size,
+ .cmdbuf_size = cmdbuf_size,
/* +1 for the sentinel ending */
.nr_entries_1 = count + 1,
More information about the mesa-commit
mailing list