diff options
| author | 2023-05-09 23:37:57 -0700 | |
|---|---|---|
| committer | 2023-06-03 00:06:01 -0700 | |
| commit | 5d43594a70a73c5e14d0d0bb5a1228fa98ef15a7 (patch) | |
| tree | 758b2bafddd6206ec79d76678f55aae27b6645d2 /src | |
| parent | android: config: Use default anisotropic filtering. (diff) | |
| download | yuzu-5d43594a70a73c5e14d0d0bb5a1228fa98ef15a7.tar.gz yuzu-5d43594a70a73c5e14d0d0bb5a1228fa98ef15a7.tar.xz yuzu-5d43594a70a73c5e14d0d0bb5a1228fa98ef15a7.zip | |
android: vulkan_device: Skip BGR565 emulation on S8gen2.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp index 75c450365..0158b6b0d 100644 --- a/src/video_core/vulkan_common/vulkan_device.cpp +++ b/src/video_core/vulkan_common/vulkan_device.cpp | |||
| @@ -332,6 +332,7 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR | |||
| 332 | const bool is_suitable = GetSuitability(surface != nullptr); | 332 | const bool is_suitable = GetSuitability(surface != nullptr); |
| 333 | 333 | ||
| 334 | const VkDriverId driver_id = properties.driver.driverID; | 334 | const VkDriverId driver_id = properties.driver.driverID; |
| 335 | const auto device_id = properties.properties.deviceID; | ||
| 335 | const bool is_radv = driver_id == VK_DRIVER_ID_MESA_RADV; | 336 | const bool is_radv = driver_id == VK_DRIVER_ID_MESA_RADV; |
| 336 | const bool is_amd_driver = | 337 | const bool is_amd_driver = |
| 337 | driver_id == VK_DRIVER_ID_AMD_PROPRIETARY || driver_id == VK_DRIVER_ID_AMD_OPEN_SOURCE; | 338 | driver_id == VK_DRIVER_ID_AMD_PROPRIETARY || driver_id == VK_DRIVER_ID_AMD_OPEN_SOURCE; |
| @@ -342,6 +343,7 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR | |||
| 342 | const bool is_mvk = driver_id == VK_DRIVER_ID_MOLTENVK; | 343 | const bool is_mvk = driver_id == VK_DRIVER_ID_MOLTENVK; |
| 343 | const bool is_qualcomm = driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY; | 344 | const bool is_qualcomm = driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY; |
| 344 | const bool is_turnip = driver_id == VK_DRIVER_ID_MESA_TURNIP; | 345 | const bool is_turnip = driver_id == VK_DRIVER_ID_MESA_TURNIP; |
| 346 | const bool is_s8gen2 = device_id == 0x43050a01; | ||
| 345 | 347 | ||
| 346 | if ((is_mvk || is_qualcomm || is_turnip) && !is_suitable) { | 348 | if ((is_mvk || is_qualcomm || is_turnip) && !is_suitable) { |
| 347 | LOG_WARNING(Render_Vulkan, "Unsuitable driver, continuing anyway"); | 349 | LOG_WARNING(Render_Vulkan, "Unsuitable driver, continuing anyway"); |
| @@ -553,7 +555,7 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR | |||
| 553 | LOG_WARNING(Render_Vulkan, "Intel proprietary drivers do not support MSAA image blits"); | 555 | LOG_WARNING(Render_Vulkan, "Intel proprietary drivers do not support MSAA image blits"); |
| 554 | cant_blit_msaa = true; | 556 | cant_blit_msaa = true; |
| 555 | } | 557 | } |
| 556 | if (is_intel_anv || is_qualcomm) { | 558 | if (is_intel_anv || (is_qualcomm && !is_s8gen2)) { |
| 557 | LOG_WARNING(Render_Vulkan, "Driver does not support native BGR format"); | 559 | LOG_WARNING(Render_Vulkan, "Driver does not support native BGR format"); |
| 558 | must_emulate_bgr565 = true; | 560 | must_emulate_bgr565 = true; |
| 559 | } | 561 | } |