Module: Mesa
Branch: main
Commit: 7f2e24d2efc34808e8b39b2cf145a72759b530e6
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7f2e24d2efc34808e8b39b2cf145a72759b530e6

Author: Asahi Lina <[email protected]>
Date:   Wed Mar  1 17:27:35 2023 +0900

asahi: Add nocluster,sync,stats debug flags

These are only useful with the upcoming Linux UAPI, but there's no harm
in getting the debug scaffolding in now.

Signed-off-by: Asahi Lina <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21662>

---

 src/asahi/lib/agx_device.h           | 3 +++
 src/gallium/drivers/asahi/agx_pipe.c | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/src/asahi/lib/agx_device.h b/src/asahi/lib/agx_device.h
index 3d79b246a3f..bfbbb7f2af7 100644
--- a/src/asahi/lib/agx_device.h
+++ b/src/asahi/lib/agx_device.h
@@ -38,6 +38,9 @@ enum agx_dbg {
    AGX_DBG_PRECOMPILE = BITFIELD_BIT(4),
    AGX_DBG_PERF = BITFIELD_BIT(5),
    AGX_DBG_NOCOMPRESS = BITFIELD_BIT(6),
+   AGX_DBG_NOCLUSTER = BITFIELD_BIT(7),
+   AGX_DBG_SYNC = BITFIELD_BIT(8),
+   AGX_DBG_STATS = BITFIELD_BIT(9),
 };
 
 /* How many power-of-two levels in the BO cache do we want? 2^14 minimum chosen
diff --git a/src/gallium/drivers/asahi/agx_pipe.c 
b/src/gallium/drivers/asahi/agx_pipe.c
index 04097616c94..b9def3dc776 100644
--- a/src/gallium/drivers/asahi/agx_pipe.c
+++ b/src/gallium/drivers/asahi/agx_pipe.c
@@ -79,6 +79,9 @@ static const struct debug_named_value agx_debug_options[] = {
 #endif
    {"precompile",AGX_DBG_PRECOMPILE,"Precompile shaders for shader-db"},
    {"nocompress",AGX_DBG_NOCOMPRESS,"Disable lossless compression"},
+   {"nocluster", AGX_DBG_NOCLUSTER,"Disable vertex clustering"},
+   {"sync",      AGX_DBG_SYNC,     "Synchronously wait for all submissions"},
+   {"stats",     AGX_DBG_STATS,    "Show command execution statistics"},
    DEBUG_NAMED_VALUE_END
 };
 /* clang-format on */

Reply via email to