Module: Mesa Branch: main Commit: 7d53d4d078e2e2c254867f88b1d2682ef7b1e59c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7d53d4d078e2e2c254867f88b1d2682ef7b1e59c
Author: Juston Li <[email protected]> Date: Thu Feb 16 14:31:57 2023 -0800 venus: add VN_DEBUG_CACHE flag General debug flag for dumping statistics for various caching done by venus. Signed-off-by: Juston Li <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21324> --- 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 {
