From 90b970b5470c755f7460b1bf6517d0466ee8a219 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 14 Dec 2018 15:41:00 +0000 Subject: [PATCH] Forcibly disable any reported support for DISJOINT binding on vulkan --- renderdoc/driver/vulkan/wrappers/vk_get_funcs.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/renderdoc/driver/vulkan/wrappers/vk_get_funcs.cpp b/renderdoc/driver/vulkan/wrappers/vk_get_funcs.cpp index 5419e578a..bea473382 100644 --- a/renderdoc/driver/vulkan/wrappers/vk_get_funcs.cpp +++ b/renderdoc/driver/vulkan/wrappers/vk_get_funcs.cpp @@ -70,6 +70,10 @@ void WrappedVulkan::vkGetPhysicalDeviceFormatProperties(VkPhysicalDevice physica pFormatProperties->linearTilingFeatures = 0; if((pFormatProperties->optimalTilingFeatures & minRequiredMask) != minRequiredMask) pFormatProperties->optimalTilingFeatures = 0; + + // don't report support for DISJOINT_BIT_KHR binding + pFormatProperties->linearTilingFeatures &= ~VK_FORMAT_FEATURE_DISJOINT_BIT; + pFormatProperties->optimalTilingFeatures &= ~VK_FORMAT_FEATURE_DISJOINT_BIT; } void WrappedVulkan::vkGetPhysicalDeviceFormatProperties2(VkPhysicalDevice physicalDevice, @@ -97,6 +101,10 @@ void WrappedVulkan::vkGetPhysicalDeviceFormatProperties2(VkPhysicalDevice physic pFormatProperties->formatProperties.linearTilingFeatures = 0; if((pFormatProperties->formatProperties.optimalTilingFeatures & minRequiredMask) != minRequiredMask) pFormatProperties->formatProperties.optimalTilingFeatures = 0; + + // don't report support for DISJOINT_BIT_KHR binding + pFormatProperties->formatProperties.linearTilingFeatures &= ~VK_FORMAT_FEATURE_DISJOINT_BIT; + pFormatProperties->formatProperties.optimalTilingFeatures &= ~VK_FORMAT_FEATURE_DISJOINT_BIT; } VkResult WrappedVulkan::vkGetPhysicalDeviceImageFormatProperties(