[Mesa-dev] [RFC 14/22] RFC: anv: Implement VK_EXT_get_image_properties
Daniel Stone
daniels at collabora.com
Thu Jun 8 18:44:12 UTC 2017
From: Chad Versace <chadversary at chromium.org>
Signed-off-by: Daniel Stone <daniels at collabora.com>
---
src/intel/vulkan/anv_entrypoints_gen.py | 1 +
src/intel/vulkan/anv_image.c | 13 +++++++++++++
2 files changed, 14 insertions(+)
diff --git a/src/intel/vulkan/anv_entrypoints_gen.py b/src/intel/vulkan/anv_entrypoints_gen.py
index 2168b7f64f..c89f77b5c5 100644
--- a/src/intel/vulkan/anv_entrypoints_gen.py
+++ b/src/intel/vulkan/anv_entrypoints_gen.py
@@ -33,6 +33,7 @@ from mako.template import Template
MAX_API_VERSION = 1.0
SUPPORTED_EXTENSIONS = [
+ 'VK_EXT_get_image_properties',
'VK_KHR_descriptor_update_template',
'VK_KHR_get_physical_device_properties2',
'VK_KHR_get_surface_capabilities2',
diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c
index 80822d393f..dae7346f61 100644
--- a/src/intel/vulkan/anv_image.c
+++ b/src/intel/vulkan/anv_image.c
@@ -30,6 +30,7 @@
#include "anv_private.h"
#include "util/debug.h"
+#include "util/vk_util.h"
#include "vk_format_info.h"
@@ -442,6 +443,18 @@ void anv_GetImageSubresourceLayout(
}
}
+VkResult anv_GetImagePropertiesEXT(
+ VkDevice device_h,
+ VkImage image_h,
+ VkImagePropertiesEXT* base_props)
+{
+ vk_foreach_struct(s, base_props->pNext) {
+ anv_debug_ignored_stype(s->sType);
+ }
+
+ return VK_SUCCESS;
+}
+
/**
* This function determines the optimal buffer to use for a given
* VkImageLayout and other pieces of information needed to make that
--
2.13.0
More information about the mesa-dev
mailing list