From 5c1302f47c2226f534f594c5766fce4aa1577535 Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Thu, 17 Mar 2022 11:49:03 +0100 Subject: [PATCH] v3dv: expose VK_EXT_image_drm_format_modifier MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This has been implemented for a while but we could not expose it on Vulkan 1.0 because the extension declares a dependency on VK_KHR_sampler_ycbcr_conversion, which we don't implement, and CTS would complain. On Vulkan 1.1 however, VK_KHR_sampler_ycbcr_conversion was promoted to core as an optional feature, and this is enough for the the dependency to be satisfied, even if the feature is not supported, meaning that we can now expose the extension. Reviewed-by: Alejandro PiƱeiro Part-of: --- docs/features.txt | 2 +- src/broadcom/vulkan/v3dv_device.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/features.txt b/docs/features.txt index cb85d6fd875..10221ddf1be 100644 --- a/docs/features.txt +++ b/docs/features.txt @@ -547,7 +547,7 @@ Khronos extensions that are not part of any Vulkan version: VK_EXT_fragment_shader_interlock DONE (anv/gen9+) VK_EXT_global_priority DONE (anv, radv) VK_EXT_global_priority_query DONE (radv) - VK_EXT_image_drm_format_modifier DONE (anv, radv/gfx9+, tu, vn) + VK_EXT_image_drm_format_modifier DONE (anv, radv/gfx9+, tu, v3dv, vn) VK_EXT_image_view_min_lod DONE (radv) VK_EXT_index_type_uint8 DONE (anv, lvp, radv/gfx8+, v3dv, tu) VK_EXT_line_rasterization DONE (anv, lvp, radv, tu) diff --git a/src/broadcom/vulkan/v3dv_device.c b/src/broadcom/vulkan/v3dv_device.c index 6bd359adc85..751b97eacec 100644 --- a/src/broadcom/vulkan/v3dv_device.c +++ b/src/broadcom/vulkan/v3dv_device.c @@ -155,6 +155,7 @@ get_device_extensions(const struct v3dv_physical_device *device, .EXT_custom_border_color = true, .EXT_external_memory_dma_buf = true, .EXT_host_query_reset = true, + .EXT_image_drm_format_modifier = true, .EXT_index_type_uint8 = true, .EXT_physical_device_drm = true, .EXT_pipeline_creation_cache_control = true,