Browse Source

The Mystic Gidoly

qcomopts2
CamilleLaVey 1 month ago
parent
commit
13903d6e8c
  1. 6
      src/video_core/vulkan_common/vulkan_device.cpp

6
src/video_core/vulkan_common/vulkan_device.cpp

@ -493,10 +493,8 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
LOG_WARNING(Render_Vulkan, LOG_WARNING(Render_Vulkan,
"{} drivers require scaled vertex format emulation; forcing fallback", driver_name); "{} drivers require scaled vertex format emulation; forcing fallback", driver_name);
if (is_qualcomm || is_arm) {
sets_per_pool = 1024; sets_per_pool = 1024;
LOG_INFO(Render_Vulkan, "{}: forcing {} sets per pool", driver_name, sets_per_pool); LOG_INFO(Render_Vulkan, "{}: forcing {} sets per pool", driver_name, sets_per_pool);
}
LOG_WARNING(Render_Vulkan, LOG_WARNING(Render_Vulkan,
"Disabling shader float controls and 64-bit integer features on {} proprietary drivers", driver_name); "Disabling shader float controls and 64-bit integer features on {} proprietary drivers", driver_name);
@ -510,7 +508,7 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
#if defined(ANDROID) && defined(ARCHITECTURE_arm64) #if defined(ANDROID) && defined(ARCHITECTURE_arm64)
if (is_qualcomm) { if (is_qualcomm) {
// BCn patching only safe on Android 9+ (API 28+). Older versions crash on driver load. // BCn patching only safe on Android 9+ (API 28+). Older versions crash on driver load.
const auto major = (properties.properties.driverVersion >> 24) << 2;
const auto major = (properties.properties.driverVersion >> 22) << 2;
const auto minor = (properties.properties.driverVersion >> 12) & 0xFFFU; const auto minor = (properties.properties.driverVersion >> 12) & 0xFFFU;
const auto vendor = properties.properties.vendorID; const auto vendor = properties.properties.vendorID;
const auto patch_status = adrenotools_get_bcn_type(major, minor, vendor); const auto patch_status = adrenotools_get_bcn_type(major, minor, vendor);
@ -549,8 +547,8 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
"Adreno driver does not support BCn texture patching (Android API {}, Driver {}.{})", "Adreno driver does not support BCn texture patching (Android API {}, Driver {}.{})",
api_level, major, minor); api_level, major, minor);
} }
#endif
} }
#endif
} }
if (is_nvidia) { if (is_nvidia) {

Loading…
Cancel
Save