asahi: Add nocluster,sync,stats debug flags
authorAsahi Lina <lina@asahilina.net>
Wed, 1 Mar 2023 08:27:35 +0000 (17:27 +0900)
committerMarge Bot <emma+marge@anholt.net>
Fri, 3 Mar 2023 00:28:48 +0000 (00:28 +0000)
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 <lina@asahilina.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21662>

src/asahi/lib/agx_device.h
src/gallium/drivers/asahi/agx_pipe.c

index 3d79b24..bfbbb7f 100644 (file)
@@ -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
index 0409761..b9def3d 100644 (file)
@@ -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 */