From: Fredrik Höglund Date: Tue, 5 Dec 2017 20:19:51 +0000 (+0100) Subject: anv: fix a case statement in GetMemoryFdPropertiesKHR X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e1cb16768d3b97724ab85fbc50119dd8c9281c0;p=mesa.git 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 Reviewed-by: Jason Ekstrand --- 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;