Log the deviceName and driverInfo gated behind VN_DEBUG=log_ctx_info
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21030>
{ "vtest", VN_DEBUG_VTEST },
{ "wsi", VN_DEBUG_WSI },
{ "no_abort", VN_DEBUG_NO_ABORT },
+ { "log_ctx_info", VN_DEBUG_LOG_CTX_INFO },
{ NULL, 0 },
/* clang-format on */
};
VN_DEBUG_VTEST = 1ull << 2,
VN_DEBUG_WSI = 1ull << 3,
VN_DEBUG_NO_ABORT = 1ull << 4,
+ VN_DEBUG_LOG_CTX_INFO = 1ull << 5,
};
enum vn_perf {
return vn_error(instance, result);
}
+ if (VN_DEBUG(LOG_CTX_INFO)) {
+ vn_log(instance, "%s", physical_dev->properties.vulkan_1_0.deviceName);
+ vn_log(instance, "%s", physical_dev->properties.vulkan_1_2.driverInfo);
+ }
+
*pDevice = vn_device_to_handle(dev);
return VK_SUCCESS;