[Mesa-dev] [PATCH crucible 1/3] Add qoGetImageSubresourceLayout.
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Wed Mar 7 21:50:50 UTC 2018
From: Bas Nieuwenhuizen <basni at chromium.org>
---
include/qonos/qonos.h | 4 ++++
src/qonos/qonos.c | 10 ++++++++++
2 files changed, 14 insertions(+)
diff --git a/include/qonos/qonos.h b/include/qonos/qonos.h
index ca1999f..2755cc0 100644
--- a/include/qonos/qonos.h
+++ b/include/qonos/qonos.h
@@ -275,6 +275,10 @@ VkResult qoBindBufferMemory(VkDevice device, VkBuffer buffer,
VkResult qoBindImageMemory(VkDevice device, VkImage img,
VkDeviceMemory mem, VkDeviceSize offset);
+
+VkSubresourceLayout qoGetImageSubresourceLayout(VkDevice device, VkImage image,
+ const VkImageSubresource *subresource);
+
#ifdef DOXYGEN
VkDeviceMemory qoAllocMemory(VkDevice dev, ...);
#else
diff --git a/src/qonos/qonos.c b/src/qonos/qonos.c
index 4f0236c..812916d 100644
--- a/src/qonos/qonos.c
+++ b/src/qonos/qonos.c
@@ -93,6 +93,16 @@ qoBindImageMemory(VkDevice device, VkImage image,
return result;
}
+VkSubresourceLayout qoGetImageSubresourceLayout(VkDevice device, VkImage image,
+ const VkImageSubresource *subresource)
+{
+ VkSubresourceLayout layout;
+
+ vkGetImageSubresourceLayout(device, image, subresource, &layout);
+
+ return layout;
+}
+
VkResult
qoQueueSubmit(VkQueue queue, uint32_t cmdBufferCount,
const VkCommandBuffer *commandBuffers, VkFence fence)
--
2.16.1
More information about the mesa-dev
mailing list