[vulkan, qcom] Updating CUBE_BIT compatibility with QCOM drivers

This commit is contained in:
CamilleLaVey 2026-01-29 15:08:56 -04:00 committed by Caio Oliveira
parent 9fa43afd14
commit a99bba00be
No known key found for this signature in database
GPG Key ID: AAAE6C7FD4186B0C
1 changed files with 5 additions and 1 deletions

View File

@ -563,9 +563,13 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
features.shader_atomic_int64.shaderSharedInt64Atomics = false;
features.features.shaderInt64 = false;
sets_per_pool = 512;
sets_per_pool = 1024;
LOG_INFO(Render_Vulkan, "Qualcomm: forcing {} sets per pool", sets_per_pool);
has_broken_cube_compatibility = true;
LOG_WARNING(Render_Vulkan,
"Qualcomm: disabling VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT due to driver bugs");
#if defined(ANDROID) && defined(ARCHITECTURE_arm64)
// BCn patching only safe on Android 9+ (API 28+). Older versions crash on driver load.
const auto major = (properties.properties.driverVersion >> 24) << 2;