venus: add VN_DEBUG_CACHE flag

General debug flag for dumping statistics for various caching done by
venus.

Signed-off-by: Juston Li <justonli@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21324>
This commit is contained in:
Juston Li 2023-02-16 14:31:57 -08:00 committed by Marge Bot
parent ef255444c1
commit 7d53d4d078
2 changed files with 2 additions and 0 deletions

View file

@ -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 */
};

View file

@ -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 {