<div dir="ltr"><div>This is obvious.<br><br></div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 14, 2017 at 5:07 PM, Bas Nieuwenhuizen <span dir="ltr"><<a href="mailto:bas@basnieuwenhuizen.nl" target="_blank">bas@basnieuwenhuizen.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Fished the SparseImage call out of the headers as the spec missed<br>
the definition.<br>
<br>
Signed-off-by: Bas Nieuwenhuizen <<a href="mailto:basni@google.com">basni@google.com</a>><br>
---<br>
 src/amd/vulkan/radv_device.c           | 31 ++++++++++++++++++++++++++++++<wbr>+<br>
 src/amd/vulkan/radv_<wbr>entrypoints_gen.py |  1 +<br>
 2 files changed, 32 insertions(+)<br>
<br>
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c<br>
index 3b3a368d19b..c5d66b8bc6d 100644<br>
--- a/src/amd/vulkan/radv_device.c<br>
+++ b/src/amd/vulkan/radv_device.c<br>
@@ -137,6 +137,10 @@ static const VkExtensionProperties common_device_extensions[] = {<br>
                .extensionName = VK_NV_DEDICATED_ALLOCATION_<wbr>EXTENSION_NAME,<br>
                .specVersion = 1,<br>
        },<br>
+       {<br>
+               .extensionName = VK_KHR_GET_MEMORY_<wbr>REQUIREMENTS_2_EXTENSION_NAME,<br>
+               .specVersion = 1,<br>
+       },<br>
 };<br>
<br>
 static VkResult<br>
@@ -2206,6 +2210,15 @@ void radv_<wbr>GetBufferMemoryRequirements(<br>
        pMemoryRequirements->size = align64(buffer->size, pMemoryRequirements-><wbr>alignment);<br>
 }<br>
<br>
+void radv_<wbr>GetBufferMemoryRequirements2KH<wbr>R(<br>
+       VkDevice                                     device,<br>
+       const VkBufferMemoryRequirementsInfo<wbr>2KHR*    pInfo,<br>
+       VkMemoryRequirements2KHR*                    pMemoryRequirements)<br>
+{<br>
+       radv_<wbr>GetBufferMemoryRequirements(<wbr>device, pInfo->buffer,<br>
+                                        &pMemoryRequirements-><wbr>memoryRequirements);<br>
+}<br>
+<br>
 void radv_<wbr>GetImageMemoryRequirements(<br>
        VkDevice                                    device,<br>
        VkImage                                     _image,<br>
@@ -2219,6 +2232,15 @@ void radv_<wbr>GetImageMemoryRequirements(<br>
        pMemoryRequirements->alignment = image->alignment;<br>
 }<br>
<br>
+void radv_<wbr>GetImageMemoryRequirements2KHR<wbr>(<br>
+       VkDevice                                    device,<br>
+       const VkImageMemoryRequirementsInfo2<wbr>KHR*    pInfo,<br>
+       VkMemoryRequirements2KHR*                   pMemoryRequirements)<br>
+{<br>
+       radv_<wbr>GetImageMemoryRequirements(<wbr>device, pInfo->image,<br>
+                                        &pMemoryRequirements-><wbr>memoryRequirements);<br>
+}<br>
+<br>
 void radv_<wbr>GetImageSparseMemoryRequiremen<wbr>ts(<br>
        VkDevice                                    device,<br>
        VkImage                                     image,<br>
@@ -2228,6 +2250,15 @@ void radv_<wbr>GetImageSparseMemoryRequiremen<wbr>ts(<br>
        stub();<br>
 }<br>
<br>
+void radv_<wbr>GetImageSparseMemoryRequiremen<wbr>ts2KHR(<br>
+       VkDevice                                    device,<br>
+       const VkImageSparseMemoryRequirement<wbr>sInfo2KHR* pInfo,<br>
+       uint32_t*                                   pSparseMemoryRequirementCount,<br>
+       VkSparseImageMemoryRequirement<wbr>s2KHR*            pSparseMemoryRequirements)<br>
+{<br>
+       stub();<br>
+}<br>
+<br>
 void radv_<wbr>GetDeviceMemoryCommitment(<br>
        VkDevice                                    device,<br>
        VkDeviceMemory                              memory,<br>
diff --git a/src/amd/vulkan/radv_<wbr>entrypoints_gen.py b/src/amd/vulkan/radv_<wbr>entrypoints_gen.py<br>
index 3474c789ea8..d47a7011197 100644<br>
--- a/src/amd/vulkan/radv_<wbr>entrypoints_gen.py<br>
+++ b/src/amd/vulkan/radv_<wbr>entrypoints_gen.py<br>
@@ -42,6 +42,7 @@ supported_extensions = [<br>
    'VK_KHR_wayland_surface',<br>
    'VK_KHR_xcb_surface',<br>
    'VK_KHR_xlib_surface',<br>
+   'VK_KHR_get_memory_<wbr>requirements2',<br>
 ]<br>
<br>
 # We generate a static hash table for entry point lookup<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.13.2<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>