radv: disable fragmentShadingRateWithCustomSampleLocations
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 6 Aug 2021 14:57:17 +0000 (16:57 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 10 Aug 2021 07:24:22 +0000 (07:24 +0000)
From the Vulkan spec 1.2.187.

"fragmentShadingRateWithCustomSampleLocations specifies whether
 custom sample locations are supported for multi-pixel fragments.
 It must be VK_FALSE if VK_EXT_sample_locations is not supported."

VK_EXT_sample_locations is disabled on GFX10+.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12245>

src/amd/vulkan/radv_device.c

index f7f9189..fd9f440 100644 (file)
@@ -2350,7 +2350,7 @@ radv_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice,
          props->fragmentShadingRateWithShaderSampleMask = false;
          props->fragmentShadingRateWithConservativeRasterization = true;
          props->fragmentShadingRateWithFragmentShaderInterlock = false;
-         props->fragmentShadingRateWithCustomSampleLocations = true;
+         props->fragmentShadingRateWithCustomSampleLocations = false;
          props->fragmentShadingRateStrictMultiplyCombiner = true;
          break;
       }