From 7d53d4d078e2e2c254867f88b1d2682ef7b1e59c Mon Sep 17 00:00:00 2001 From: Juston Li Date: Thu, 16 Feb 2023 14:31:57 -0800 Subject: [PATCH] venus: add VN_DEBUG_CACHE flag General debug flag for dumping statistics for various caching done by venus. Signed-off-by: Juston Li Part-of: --- src/virtio/vulkan/vn_common.c | 1 + src/virtio/vulkan/vn_common.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/virtio/vulkan/vn_common.c b/src/virtio/vulkan/vn_common.c index 74ce9dcd50c..5034cfa5711 100644 --- a/src/virtio/vulkan/vn_common.c +++ b/src/virtio/vulkan/vn_common.c @@ -28,6 +28,7 @@ static const struct debug_control vn_debug_options[] = { { "wsi", VN_DEBUG_WSI }, { "no_abort", VN_DEBUG_NO_ABORT }, { "log_ctx_info", VN_DEBUG_LOG_CTX_INFO }, + { "cache", VN_DEBUG_CACHE }, { NULL, 0 }, /* clang-format on */ }; diff --git a/src/virtio/vulkan/vn_common.h b/src/virtio/vulkan/vn_common.h index 023894fb9f2..7b6156e0a21 100644 --- a/src/virtio/vulkan/vn_common.h +++ b/src/virtio/vulkan/vn_common.h @@ -102,6 +102,7 @@ enum vn_debug { VN_DEBUG_WSI = 1ull << 3, VN_DEBUG_NO_ABORT = 1ull << 4, VN_DEBUG_LOG_CTX_INFO = 1ull << 5, + VN_DEBUG_CACHE = 1ull << 6, }; enum vn_perf {