diff options
author | bunnei <bunneidev@gmail.com> | 2023-01-08 09:05:56 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2023-06-03 09:05:28 +0200 |
commit | 2972a3ccc772e9cc1aba0cd782e883058c82fed1 (patch) | |
tree | 5b295a52b7206f9ad7686460795170468902dd89 /src/video_core/vulkan_common/vulkan_device.cpp | |
parent | video_core: vk_pipeline_cache: Disable support_descriptor_aliasing on Android. (diff) | |
download | yuzu-2972a3ccc772e9cc1aba0cd782e883058c82fed1.tar yuzu-2972a3ccc772e9cc1aba0cd782e883058c82fed1.tar.gz yuzu-2972a3ccc772e9cc1aba0cd782e883058c82fed1.tar.bz2 yuzu-2972a3ccc772e9cc1aba0cd782e883058c82fed1.tar.lz yuzu-2972a3ccc772e9cc1aba0cd782e883058c82fed1.tar.xz yuzu-2972a3ccc772e9cc1aba0cd782e883058c82fed1.tar.zst yuzu-2972a3ccc772e9cc1aba0cd782e883058c82fed1.zip |
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_device.cpp')
-rw-r--r-- | src/video_core/vulkan_common/vulkan_device.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp index aea677cb3..9ab8e46a1 100644 --- a/src/video_core/vulkan_common/vulkan_device.cpp +++ b/src/video_core/vulkan_common/vulkan_device.cpp @@ -310,8 +310,9 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR const bool is_intel_anv = driver_id == VK_DRIVER_ID_INTEL_OPEN_SOURCE_MESA; const bool is_nvidia = driver_id == VK_DRIVER_ID_NVIDIA_PROPRIETARY; const bool is_mvk = driver_id == VK_DRIVER_ID_MOLTENVK; + const bool is_adreno = driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY; - if (is_mvk && !is_suitable) { + if ((is_mvk || is_adreno) && !is_suitable) { LOG_WARNING(Render_Vulkan, "Unsuitable driver is MoltenVK, continuing anyway"); } else if (!is_suitable) { throw vk::Exception(VK_ERROR_INCOMPATIBLE_DRIVER); @@ -467,8 +468,8 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR LOG_WARNING(Render_Vulkan, "Intel proprietary drivers do not support MSAA image blits"); cant_blit_msaa = true; } - if (is_intel_anv) { - LOG_WARNING(Render_Vulkan, "ANV driver does not support native BGR format"); + if (is_intel_anv || is_adreno) { + LOG_WARNING(Render_Vulkan, "Driver does not support native BGR format"); must_emulate_bgr565 = true; } if (extensions.push_descriptor && is_intel_anv) { |