[Mesa-dev] [RFC v2 14/22] RFC: anv: Implement VK_EXT_get_image_properties
Louis-Francis Ratté-Boulianne
lfrb at collabora.com
Thu Aug 31 04:24:20 UTC 2017
From: Chad Versace <chadversary at chromium.org>
---
src/intel/vulkan/anv_extensions.py | 1 +
src/intel/vulkan/anv_image.c | 13 +++++++++++++
2 files changed, 14 insertions(+)
diff --git a/src/intel/vulkan/anv_extensions.py b/src/intel/vulkan/anv_extensions.py
index 6b3d72e4b4..4377d4b985 100644
--- a/src/intel/vulkan/anv_extensions.py
+++ b/src/intel/vulkan/anv_extensions.py
@@ -45,6 +45,7 @@ class Extension:
self.enable = enable;
EXTENSIONS = [
+ Extension('VK_EXT_get_image_properties', 1, True),
Extension('VK_KHR_dedicated_allocation', 1, True),
Extension('VK_KHR_descriptor_update_template', 1, True),
Extension('VK_KHR_external_fence', 1,
diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c
index 3905fcf0b4..48101d4461 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 "vk_util.h"
#include "vk_format_info.h"
@@ -534,6 +535,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