summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
diff options
context:
space:
mode:
authorTechjar <tecknojar@gmail.com>2020-04-13 04:19:24 -0400
committerTechjar <tecknojar@gmail.com>2020-09-07 17:28:05 -0400
commit69358b21868e3260d0c9273effbf302b130f25fd (patch)
treee18eba66d46ae50e9f086ab68572b8f19e2e866e /Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
parente7e51756068a450b6e920c7783c81d7df4d2d133 (diff)
VideoBackends: Disable GPU Texture Decoding under MoltenVK
It's broken and causes spectacular artifacts and crashes.
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/VulkanContext.cpp')
-rw-r--r--Source/Core/VideoBackends/Vulkan/VulkanContext.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp b/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
index c0fca1008c..990e38acec 100644
--- a/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
+++ b/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
@@ -346,6 +346,10 @@ void VulkanContext::PopulateBackendInfoFeatures(VideoConfig* config, VkPhysicalD
// with depth clamping. Fall back to inverted depth range for these.
if (DriverDetails::HasBug(DriverDetails::BUG_BROKEN_REVERSED_DEPTH_RANGE))
config->backend_info.bSupportsReversedDepthRange = false;
+
+ // GPU Texture Decoding is broken under MoltenVK.
+ if (DriverDetails::HasBug(DriverDetails::BUG_BROKEN_GPU_TEXTURE_DECODING))
+ config->backend_info.bSupportsGPUTextureDecoding = false;
}
void VulkanContext::PopulateBackendInfoMultisampleModes(