From e7d4bc6095a9fa389b05d06225b75b7fbf57bcca Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Fri, 1 Sep 2023 19:10:39 +0200 Subject: [PATCH] tu: Add maintenance5 properties Part-of: --- src/freedreno/vulkan/tu_device.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/freedreno/vulkan/tu_device.cc b/src/freedreno/vulkan/tu_device.cc index 2b152b8d90a..eb9bd3b9371 100644 --- a/src/freedreno/vulkan/tu_device.cc +++ b/src/freedreno/vulkan/tu_device.cc @@ -1375,6 +1375,17 @@ tu_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice, properties->fragmentDensityInvocations = false; break; } + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_5_PROPERTIES_KHR: { + VkPhysicalDeviceMaintenance5PropertiesKHR *properties = + (VkPhysicalDeviceMaintenance5PropertiesKHR *)ext; + properties->earlyFragmentMultisampleCoverageAfterSampleCounting = true; + properties->earlyFragmentSampleMaskTestBeforeSampleCounting = true; + properties->depthStencilSwizzleOneSupport = true; + properties->polygonModePointSize = true; + properties->nonStrictWideLinesUseParallelogram = false; + properties->nonStrictSinglePixelWideLinesUseParallelogram = false; + break; + } default: break; }