radv: advertise VK_KHR_maintenance5
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 1 May 2023 15:05:57 +0000 (17:05 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 10 Aug 2023 03:05:02 +0000 (03:05 +0000)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24392>

docs/relnotes/new_features.txt
src/amd/vulkan/radv_physical_device.c

index 5e4661d..b2211e8 100644 (file)
@@ -6,3 +6,4 @@ New drivers
 New features
 ------------
 VK_EXT_pipeline_robustness on ANV
+VK_KHR_maintenance5 on RADV
index 004de45..e538da5 100644 (file)
@@ -412,6 +412,7 @@ radv_physical_device_get_supported_extensions(const struct radv_physical_device
       .KHR_maintenance2 = true,
       .KHR_maintenance3 = true,
       .KHR_maintenance4 = true,
+      .KHR_maintenance5 = true,
       .KHR_map_memory2 = true,
       .KHR_multiview = true,
       .KHR_performance_query = radv_perf_query_supported(device),
@@ -1028,6 +1029,9 @@ radv_physical_device_get_features(const struct radv_physical_device *pdevice, st
 
       /* VK_EXT_pipeline_robustness */
       .pipelineRobustness = true,
+
+      /* VK_KHR_maintenance5 */
+      .maintenance5 = true,
    };
 }
 
@@ -1837,6 +1841,16 @@ radv_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice, VkPhysicalDev
          properties->defaultRobustnessImages = VK_PIPELINE_ROBUSTNESS_IMAGE_BEHAVIOR_ROBUST_IMAGE_ACCESS_2_EXT;
          break;
       }
+      case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_5_PROPERTIES_KHR: {
+         VkPhysicalDeviceMaintenance5PropertiesKHR *properties = (VkPhysicalDeviceMaintenance5PropertiesKHR *)ext;
+         properties->earlyFragmentMultisampleCoverageAfterSampleCounting = false;
+         properties->earlyFragmentSampleMaskTestBeforeSampleCounting = false;
+         properties->depthStencilSwizzleOneSupport = false;
+         properties->polygonModePointSize = true;
+         properties->nonStrictSinglePixelWideLinesUseParallelogram = false;
+         properties->nonStrictWideLinesUseParallelogram = false;
+         break;
+      }
       default:
          break;
       }