radv: Expose VK_EXT_ycbcr_image_arrays.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 7 Apr 2019 21:01:36 +0000 (23:01 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 25 Apr 2019 19:56:20 +0000 (19:56 +0000)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_extensions.py

index bce565d08f9396f22a4765a3f9970deec4194022..b7f991fce72c8a9f4ef28f53125f5e59af14105a 100644 (file)
@@ -953,6 +953,12 @@ void radv_GetPhysicalDeviceFeatures2(
                        features->computeDerivativeGroupLinear = true;
                        break;
                }
+               case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_YCBCR_IMAGE_ARRAYS_FEATURES_EXT: {
+                       VkPhysicalDeviceYcbcrImageArraysFeaturesEXT *features =
+                               (VkPhysicalDeviceYcbcrImageArraysFeaturesEXT*)ext;
+                       features->ycbcrImageArrays = true;
+                       break;
+               }
                default:
                        break;
                }
index 3176992d9042add411a77e652cac8163c4592389..6cae5aaa7668eb80153cea801f66e13cbbedd383 100644 (file)
@@ -124,6 +124,7 @@ EXTENSIONS = [
     Extension('VK_EXT_shader_stencil_export',             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_AMD_draw_indirect_count',               1, True),
     Extension('VK_AMD_gcn_shader',                        1, True),
     Extension('VK_AMD_gpu_shader_half_float',             1, 'device->rad_info.chip_class >= VI && HAVE_LLVM >= 0x0800'),