[Mesa-dev] [PATCH 2/2] anv: fix a case statement in GetMemoryFdPropertiesKHR

Jason Ekstrand jason at jlekstrand.net
Tue Dec 5 21:04:38 UTC 2017


Oops.  Both are

Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

On Tue, Dec 5, 2017 at 12:51 PM, Fredrik Höglund <fredrik at kde.org> wrote:

> The handle type in the case statement is supposed to be VK_EXTERNAL_-
> MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT.
>
> Signed-off-by: Fredrik Höglund <fredrik at kde.org>
> ---
>  src/intel/vulkan/anv_device.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
> index 97124154b69..af804612654 100644
> --- a/src/intel/vulkan/anv_device.c
> +++ b/src/intel/vulkan/anv_device.c
> @@ -1714,7 +1714,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;
> --
> 2.15.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171205/fdd10c71/attachment.html>


More information about the mesa-dev mailing list