hasvk: enable perf warning logging in release builds

Enable perf warning in release builds for hasvk.

Signed-off-by: Michael Cheng <michael.cheng@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40551>
This commit is contained in:
Michael Cheng 2026-03-23 09:51:22 -07:00 committed by Marge Bot
parent ebe94d4903
commit f002b34576

View file

@ -1595,8 +1595,6 @@ anv_physical_device_try_create(struct vk_instance *vk_instance,
int fd;
int master_fd = -1;
process_intel_debug_variable();
fd = open(path, O_RDWR | O_CLOEXEC);
if (fd < 0) {
if (errno == ENOMEM) {
@ -1991,6 +1989,9 @@ VkResult anv_CreateInstance(
anv_init_dri_options(instance);
process_intel_debug_variable();
instance->vk.enable_debug_logging = INTEL_DEBUG(DEBUG_PERF);
intel_driver_ds_init();
*pInstance = anv_instance_to_handle(instance);