[Mesa-dev] unlock android graphic buffer spend too much time
Zong, Wei
wei.zong at intel.com
Mon Apr 23 10:13:32 UTC 2018
Hi Dear Mesa experts,
I'm reading android graphic buffer by calling “GraphicBuffer::lock” with parameter "GRALLOC_USAGE_SW_READ_OFTEN | GRALLOC_USAGE_SW_WRITE_NEVER", I copied the buffer into a CPU allocated memory only cost less than 1 millisecond. the resolution of this graphic buffer is 1280×800, and the image format is “V4L2_PIX_FMT_NV12”
After finishing memory copy, I called “GraphicBuffer::unlock”, this operation spent more than 3 milliseconds, I guess this unlock operation would not do much work, I'm wondering if this 3ms can be saved? Or this 3ms is sure necessary for such operation?
The hardware I’m using is Broxton, and graphic driver is Mesa 18.1.0-devel.
Thanks,
Zong Wei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180423/d005abd1/attachment.html>
More information about the mesa-dev
mailing list