diff options
author | Fredrik Höglund <[email protected]> | 2017-12-05 21:19:51 +0100 |
---|---|---|
committer | Fredrik Höglund <[email protected]> | 2017-12-06 20:04:39 +0100 |
commit | 5e1cb16768d3b97724ab85fbc50119dd8c9281c0 (patch) | |
tree | 74f6917753f6d6db380f7e5fc81725afc27dca20 | |
parent | b0550453786831e5d00552c8b546a7d3d9858cd1 (diff) |
anv: fix a case statement in GetMemoryFdPropertiesKHR
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 <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
-rw-r--r-- | src/intel/vulkan/anv_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 67f0d4a055d..81a2ed632b2 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -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; |