anv: toggle on support for VK_EXT_ycbcr_image_arrays
authorTapani Pälli <tapani.palli@intel.com>
Fri, 22 Feb 2019 06:54:13 +0000 (08:54 +0200)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 5 Mar 2019 10:39:17 +0000 (10:39 +0000)
We already propagate coord_components correctly and did not have
layer restrictions for ycbcr formats.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_extensions.py

index ed7b7b0f0a07e6834bb8af6500c2190bd005dc23..7e382db1d9535cc29a7255eb262a56e5c815dc08 100644 (file)
@@ -1008,6 +1008,13 @@ void anv_GetPhysicalDeviceFeatures2(
          break;
       }
 
+      case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_YCBCR_IMAGE_ARRAYS_FEATURES_EXT: {
+         VkPhysicalDeviceYcbcrImageArraysFeaturesEXT *features =
+            (VkPhysicalDeviceYcbcrImageArraysFeaturesEXT *)ext;
+         features->ycbcrImageArrays = VK_TRUE;
+         break;
+      }
+
       default:
          anv_debug_ignored_stype(ext->sType);
          break;
index 473ba1a18299e493e65824b055be9b0f79813f75..35bd1ba82a777c8e770b826f6a05ded859f79475 100644 (file)
@@ -133,6 +133,7 @@ EXTENSIONS = [
     Extension('VK_EXT_shader_viewport_index_layer',       1, True),
     Extension('VK_EXT_transform_feedback',                1, True),
     Extension('VK_EXT_vertex_attribute_divisor',          3, True),
+    Extension('VK_EXT_ycbcr_image_arrays',                1, True),
     Extension('VK_ANDROID_external_memory_android_hardware_buffer', 3, 'ANDROID'),
     Extension('VK_ANDROID_native_buffer',                 5, 'ANDROID'),
     Extension('VK_GOOGLE_decorate_string',                1, True),