radv: fix a case statement in GetMemoryFdPropertiesKHR
authorFredrik Höglund <fredrik@kde.org>
Tue, 5 Dec 2017 20:15:25 +0000 (21:15 +0100)
committerFredrik Höglund <fredrik@kde.org>
Wed, 6 Dec 2017 19:04:39 +0000 (20:04 +0100)
The handle type in the case statement is supposed to be VK_EXTERNAL_-
MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT.

Fixes: 546e747867c ("radv: Implement VK_EXT_external_memory_dma_buf")
Signed-off-by: Fredrik Höglund <fredrik@kde.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_device.c

index 1b7cd355938516794506d18ba7407c447ac959fb..2538472bea6b1286f6c1d9f261992aa0c5ad74df 100644 (file)
@@ -3557,7 +3557,7 @@ VkResult radv_GetMemoryFdPropertiesKHR(VkDevice _device,
                                       VkMemoryFdPropertiesKHR *pMemoryFdProperties)
 {
    switch (handleType) {
-   case VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT_KHR:
+   case VK_EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT:
       pMemoryFdProperties->memoryTypeBits = (1 << RADV_MEM_TYPE_COUNT) - 1;
       return VK_SUCCESS;