anv: Advertise VK_EXT_image_robustness
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 9 Jun 2020 15:59:16 +0000 (10:59 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 20 Jul 2020 22:30:18 +0000 (22:30 +0000)
We already support a superset of VK_EXT_image_robustness via
VK_EXT_robustness2.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5985>

docs/relnotes/new_features.txt
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_extensions.py

index c94bd4095e1928d28f5fe006f8660629c91c077d..ae71cc97b60b782cc4189931a41e9bbd1ec4e11e 100644 (file)
@@ -19,3 +19,4 @@ GL_ARB_gl_spirv on nvc0/nir.
 GL_ARB_spirv_extensions on nvc0/nir.
 RADV now uses ACO per default as backend
 RADV_DEBUG=llvm option to enable LLVM backend for RADV
+VK_EXT_image_robustness for ANV
index f6b41b79de651a4bc4c738bcffa76f9e903e909c..401b00895abdf02c8acc993e3682a771c4611275 100644 (file)
@@ -1199,6 +1199,13 @@ void anv_GetPhysicalDeviceFeatures2(
          break;
       }
 
+      case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_ROBUSTNESS_FEATURES_EXT: {
+         VkPhysicalDeviceImageRobustnessFeaturesEXT *features =
+            (VkPhysicalDeviceImageRobustnessFeaturesEXT *)ext;
+         features->robustImageAccess = true;
+         break;
+      }
+
       case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INDEX_TYPE_UINT8_FEATURES_EXT: {
          VkPhysicalDeviceIndexTypeUint8FeaturesEXT *features =
             (VkPhysicalDeviceIndexTypeUint8FeaturesEXT *)ext;
index 2d71f12cb1ce5ab2a021d42aa5cb03c626e4ef9b..5f9278201a808d9d48692d11ded4c69971c49a9f 100644 (file)
@@ -137,6 +137,7 @@ EXTENSIONS = [
               'device->has_context_priority'),
     Extension('VK_EXT_host_query_reset',                  1, True),
     Extension('VK_EXT_image_drm_format_modifier',         1, False),
+    Extension('VK_EXT_image_robustness',                  1, True),
     Extension('VK_EXT_index_type_uint8',                  1, True),
     Extension('VK_EXT_inline_uniform_block',              1, True),
     Extension('VK_EXT_line_rasterization',                1, True),