nvk: Re-sort device features
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Tue, 17 Oct 2023 14:31:32 +0000 (09:31 -0500)
committerMarge Bot <emma+marge@anholt.net>
Tue, 17 Oct 2023 18:35:03 +0000 (18:35 +0000)
Vulkan versions, then KHR, then EXT, then vendor.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25765>

src/nouveau/vulkan/nvk_physical_device.c

index 7f8faee..ce9d831 100644 (file)
@@ -246,6 +246,10 @@ nvk_get_device_features(const struct nv_device_info *info,
       .dynamicRendering = true,
       .maintenance4 = true,
 
+      /* VK_KHR_shader_clock */
+      .shaderSubgroupClock = true,
+      .shaderDeviceClock = true,
+
       /* VK_EXT_4444_formats */
       .formatA4R4G4B4 = true,
       .formatA4B4G4R4 = true,
@@ -355,12 +359,8 @@ nvk_get_device_features(const struct nv_device_info *info,
       /* VK_EXT_ycbcr_image_arrays */
       .ycbcrImageArrays = true,
 
-      /* VALVE_mutable_descriptor_type */
+      /* VK_VALVE_mutable_descriptor_type */
       .mutableDescriptorType = true,
-
-      /* VK_KHR_shader_clock */
-      .shaderSubgroupClock = true,
-      .shaderDeviceClock = true,
    };
 }