[Mesa-dev] [PATCH 3/3] anv: Plug in VK_EXT_hdr_metadata
Tapani Pälli
tapani.palli at intel.com
Mon Apr 30 06:42:38 UTC 2018
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
The common wsi stuff for VK_EXT_hdr_metadata is in place, and
we shouldn't need any hardware specifics, so let's expose the
extension.
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
src/intel/vulkan/anv_extensions.py | 1 +
src/intel/vulkan/anv_wsi.c | 9 +++++++++
2 files changed, 10 insertions(+)
diff --git a/src/intel/vulkan/anv_extensions.py b/src/intel/vulkan/anv_extensions.py
index b5bee0881c..a3416b3e31 100644
--- a/src/intel/vulkan/anv_extensions.py
+++ b/src/intel/vulkan/anv_extensions.py
@@ -112,6 +112,7 @@ EXTENSIONS = [
Extension('VK_EXT_global_priority', 1,
'device->has_context_priority'),
Extension('VK_EXT_shader_viewport_index_layer', 1, True),
+ Extension('VK_EXT_hdr_metadata', 1, True),
]
class VkVersion:
diff --git a/src/intel/vulkan/anv_wsi.c b/src/intel/vulkan/anv_wsi.c
index 20094f93e1..61a4f42535 100644
--- a/src/intel/vulkan/anv_wsi.c
+++ b/src/intel/vulkan/anv_wsi.c
@@ -191,6 +191,15 @@ void anv_DestroySwapchainKHR(
wsi_common_destroy_swapchain(_device, swapchain, alloc);
}
+void anv_SetHdrMetadataEXT(
+ VkDevice device,
+ uint32_t swapchainCount,
+ const VkSwapchainKHR* pSwapchains,
+ const VkHdrMetadataEXT* pMetadata)
+{
+ wsi_common_set_hdr_metadata(swapchainCount, pSwapchains, pMetadata);
+}
+
VkResult anv_GetSwapchainImagesKHR(
VkDevice device,
VkSwapchainKHR swapchain,
--
2.13.6
More information about the mesa-dev
mailing list