<div dir="ltr"><div>Oops. Both are<br><br></div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 5, 2017 at 12:51 PM, Fredrik Höglund <span dir="ltr"><<a href="mailto:fredrik@kde.org" target="_blank">fredrik@kde.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The handle type in the case statement is supposed to be VK_EXTERNAL_-<br>
MEMORY_HANDLE_TYPE_DMA_BUF_<wbr>BIT_EXT.<br>
<br>
Signed-off-by: Fredrik Höglund <<a href="mailto:fredrik@kde.org">fredrik@kde.org</a>><br>
---<br>
src/intel/vulkan/anv_device.c | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/intel/vulkan/anv_device.<wbr>c b/src/intel/vulkan/anv_device.<wbr>c<br>
index 97124154b69..af804612654 100644<br>
--- a/src/intel/vulkan/anv_device.<wbr>c<br>
+++ b/src/intel/vulkan/anv_device.<wbr>c<br>
@@ -1714,7 +1714,7 @@ VkResult anv_GetMemoryFdPropertiesKHR(<br>
struct anv_physical_device *pdevice = &device->instance-><wbr>physicalDevice;<br>
<br>
switch (handleType) {<br>
- case VK_EXTERNAL_MEMORY_HANDLE_<wbr>TYPE_OPAQUE_FD_BIT_KHR:<br>
+ case VK_EXTERNAL_MEMORY_HANDLE_<wbr>TYPE_DMA_BUF_BIT_EXT:<br>
/* dma-buf can be imported as any memory type */<br>
pMemoryFdProperties-><wbr>memoryTypeBits =<br>
(1 << pdevice->memory.type_count) - 1;<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.15.0<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>