anv: fix a case statement in GetMemoryFdPropertiesKHR
authorFredrik Höglund <fredrik@kde.org>
Tue, 5 Dec 2017 20:19:51 +0000 (21:19 +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: ab18e8e59b6 ("anv: Implement VK_EXT_external_memory_dma_buf")
Signed-off-by: Fredrik Höglund <fredrik@kde.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_device.c

index 67f0d4a055da68e5f2f054e0b4da33222bfb66be..81a2ed632b2454e18b7d586135d1269cb52e88fc 100644 (file)
@@ -1727,7 +1727,7 @@ VkResult anv_GetMemoryFdPropertiesKHR(
    struct anv_physical_device *pdevice = &device->instance->physicalDevice;
 
    switch (handleType) {
-   case VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT_KHR:
+   case VK_EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT:
       /* dma-buf can be imported as any memory type */
       pMemoryFdProperties->memoryTypeBits =
          (1 << pdevice->memory.type_count) - 1;