[Mesa-dev] [PATCH 05/15] anv/android: add GetAndroidHardwareBufferPropertiesANDROID

Lionel Landwerlin lionel.g.landwerlin at intel.com
Tue Dec 11 12:00:01 UTC 2018


On 27/11/2018 10:53, Tapani Pälli wrote:
> +   const native_handle_t *handle =
> +      AHardwareBuffer_getNativeHandle(buffer);
> +   int dma_buf = (handle && handle->numFds) ? handle->data[0] : -1;
> +   if (dma_buf < 0)
> +      return VK_ERROR_INVALID_EXTERNAL_HANDLE_KHR;
> +

Actually, maybe assert(handle->numFds == 1) until you add support for 
multiple buffers.




More information about the mesa-dev mailing list