Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/vulkan/wrapper/wrapper_physical_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "vk_util.h"
#include "wsi_common.h"
#include "util/os_misc.h"
#include "util/u_debug.h"

static uint32_t
parse_vk_version_from_env()
Expand Down Expand Up @@ -364,7 +365,15 @@ VkResult enumerate_physical_device(struct vk_instance *_instance)
0 : 1;
} else if (pdevice->driver_properties.driverID == VK_DRIVER_ID_MESA_TURNIP) {
wrapper_emulate_bcn = 0;
} else if (pdevice->base_supported_features.textureCompressionBC &&
debug_get_bool_option("WRAPPER_NATIVE_BCN",
pdevice->driver_properties.driverID ==
VK_DRIVER_ID_NVIDIA_PROPRIETARY)) {
wrapper_emulate_bcn = 0;
}

if (wrapper_emulate_bcn == 0)
WRAPPER_LOG(info, "Using native BCn support in automatic mode");
}

pdevice->emulate_bcn = wrapper_emulate_bcn;
Expand Down
Loading