From 35715db30d7ccceeeaadf7cfbcf506b16a34541c Mon Sep 17 00:00:00 2001 From: Asahi Lina Date: Wed, 5 Jul 2023 20:16:19 +0900 Subject: [PATCH] asahi: Add synctvb debug flag This requests synchronous TVB growth (instead of split renders). Mostly for testing at this point. Only works with newer kernels and the kernel will complain on dmesg for now. Signed-off-by: Asahi Lina Part-of: --- src/asahi/lib/agx_device.h | 1 + src/gallium/drivers/asahi/agx_pipe.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/asahi/lib/agx_device.h b/src/asahi/lib/agx_device.h index ee4c9b86f8f..5465f48ef73 100644 --- a/src/asahi/lib/agx_device.h +++ b/src/asahi/lib/agx_device.h @@ -26,6 +26,7 @@ enum agx_dbg { AGX_DBG_RESOURCE = BITFIELD_BIT(10), AGX_DBG_BATCH = BITFIELD_BIT(11), AGX_DBG_NOWC = BITFIELD_BIT(12), + AGX_DBG_SYNCTVB = BITFIELD_BIT(13), }; /* Dummy partial declarations, pending real UAPI */ diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c index 7b7054e40d8..eceaf893a23 100644 --- a/src/gallium/drivers/asahi/agx_pipe.c +++ b/src/gallium/drivers/asahi/agx_pipe.c @@ -64,6 +64,7 @@ static const struct debug_named_value agx_debug_options[] = { {"resource", AGX_DBG_RESOURCE, "Log resource operations"}, {"batch", AGX_DBG_BATCH, "Log batches"}, {"nowc", AGX_DBG_NOWC, "Disable write-combining"}, + {"synctvb", AGX_DBG_SYNCTVB, "Synchronous TVB growth"}, DEBUG_NAMED_VALUE_END }; /* clang-format on */