From: Fredrik Höglund Date: Tue, 5 Dec 2017 20:15:25 +0000 (+0100) Subject: radv: fix a case statement in GetMemoryFdPropertiesKHR X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b0550453786831e5d00552c8b546a7d3d9858cd1;p=mesa.git radv: 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: 546e747867c ("radv: Implement VK_EXT_external_memory_dma_buf") Signed-off-by: Fredrik Höglund Reviewed-by: Jason Ekstrand Reviewed-by: Samuel Pitoiset --- diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 1b7cd355938..2538472bea6 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -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;