anv: enable VK_EXT_mesh_shader where supported
authorIván Briano <ivan.briano@intel.com>
Tue, 5 Sep 2023 03:35:17 +0000 (20:35 -0700)
committerMarge Bot <emma+marge@anholt.net>
Tue, 12 Sep 2023 02:51:31 +0000 (02:51 +0000)
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25047>

src/intel/vulkan/anv_device.c

index 92b1e7f..70febb2 100644 (file)
@@ -209,12 +209,6 @@ get_device_extensions(const struct anv_physical_device *device,
 
    const bool rt_enabled = ANV_SUPPORT_RT && device->info.has_ray_tracing;
 
-   /* We are still seeing some failures with mesh and graphics pipeline
-    * libraries used together, so disable mesh by default.
-    */
-   const bool mesh_shader_enabled = device->info.has_mesh_shading &&
-      debug_get_bool_option("ANV_MESH_SHADER", false);
-
    *ext = (struct vk_device_extension_table) {
       .KHR_8bit_storage                      = true,
       .KHR_16bit_storage                     = !device->instance->no_16bit,
@@ -350,7 +344,7 @@ get_device_extensions(const struct anv_physical_device *device,
       .EXT_memory_budget                     = (!device->info.has_local_mem ||
                                                 device->vram_mappable.available > 0) &&
                                                device->sys.available,
-      .EXT_mesh_shader                       = mesh_shader_enabled,
+      .EXT_mesh_shader                       = device->info.has_mesh_shading,
       .EXT_mutable_descriptor_type           = true,
       .EXT_non_seamless_cube_map             = true,
       .EXT_pci_bus_info                      = true,