radv: Use the KHR dedicated alloc for the WSI.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 15 Jul 2017 17:54:13 +0000 (19:54 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 15 Jul 2017 18:10:25 +0000 (20:10 +0200)
NV isn't valid for external images anymore.

Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Fixes: 6ddc64b93ea "radv: Add support for VK_KHR_dedicated_allocation."
Reviewed-by: Andres Rodriguez <andresx7@gmail.com>
src/amd/vulkan/radv_wsi.c

index cdb04ca96282bb8fe697ff8415e8a1d7f7563807..ab3dcd67d5f8040204ae72bec38d48a7677bd59b 100644 (file)
@@ -185,8 +185,8 @@ radv_wsi_image_create(VkDevice device_h,
 
        VkDeviceMemory memory_h;
 
-       const VkDedicatedAllocationMemoryAllocateInfoNV ded_alloc = {
-               .sType = VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_MEMORY_ALLOCATE_INFO_NV,
+       const VkMemoryDedicatedAllocateInfoKHR ded_alloc = {
+               .sType = VK_STRUCTURE_TYPE_MEMORY_DEDICATED_ALLOCATE_INFO_KHR,
                .pNext = NULL,
                .buffer = VK_NULL_HANDLE,
                .image = image_h