diff options
| author | OatmealDome <julian@oatmealdome.me> | 2021-08-02 22:31:22 -0400 |
|---|---|---|
| committer | OatmealDome <julian@oatmealdome.me> | 2021-11-24 17:52:24 -0500 |
| commit | 8e72136eebb95daea111d1f7b8e5a348194464bb (patch) | |
| tree | 9f869beb2aa3c121b0de949791be7e571848a223 /Source/Core/VideoBackends/Vulkan/VulkanContext.cpp | |
| parent | fad11e353261f923eb97a4ca324e0f574d3906b5 (diff) | |
VulkanContext: Set Apple GPUs as supporting framebuffer fetch
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/VulkanContext.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Vulkan/VulkanContext.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp b/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp index a571c6c38d..12c6082fab 100644 --- a/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp +++ b/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp @@ -285,7 +285,7 @@ void VulkanContext::PopulateBackendInfo(VideoConfig* config) config->backend_info.bSupportsBPTCTextures = false; // Dependent on features. config->backend_info.bSupportsLogicOp = false; // Dependent on features. config->backend_info.bSupportsLargePoints = false; // Dependent on features. - config->backend_info.bSupportsFramebufferFetch = false; // No support. + config->backend_info.bSupportsFramebufferFetch = false; // Dependent on OS and features. config->backend_info.bSupportsCoarseDerivatives = true; // Assumed support. config->backend_info.bSupportsTextureQueryLevels = true; // Assumed support. } @@ -339,6 +339,15 @@ void VulkanContext::PopulateBackendInfoFeatures(VideoConfig* config, VkPhysicalD properties.limits.pointSizeRange[0] <= 1.0f && properties.limits.pointSizeRange[1] >= 16; + std::string device_name = properties.deviceName; + u32 vendor_id = properties.vendorID; + + // Only Apple family GPUs support framebuffer fetch. + if (vendor_id == 0x106B || device_name.find("Apple") != std::string::npos) + { + config->backend_info.bSupportsFramebufferFetch = true; + } + // Our usage of primitive restart appears to be broken on AMD's binary drivers. // Seems to be fine on GCN Gen 1-2, unconfirmed on GCN Gen 3, causes driver resets on GCN Gen 4. if (DriverDetails::HasBug(DriverDetails::BUG_PRIMITIVE_RESTART)) |
