Files
mesa/src
Qiang Yu e46b2ef724 lima: fix buffer import with offset
With EGL_EXT_image_dma_buf_import, user can import dma_buf
with offset.

This is also used by AOSP GLConsumer::updateTexImage
with HAL_PIXEL_FORMAT_YV12 buffer which store YUV planes in
the same buffer with offset. Render sample from it using
GL_OES_EGL_image_external. This should fix some video
display problem when using MediaCodec soft decoding which
generates HAL_PIXEL_FORMAT_YV12 buffer and render it on
screen.

Test program:
https://github.com/yuq/gfx/tree/master/yuv2rgb/dma-buf

Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4362>
2020-03-31 01:40:29 +00:00
..
2020-03-28 21:36:54 +01:00
2020-03-28 21:36:54 +01:00
2020-03-30 13:38:01 +00:00
2020-03-28 21:36:54 +01:00
2020-03-28 21:36:54 +01:00
2020-03-30 13:38:01 +00:00
2019-11-07 06:11:19 -08:00
2020-03-30 13:38:01 +00:00
2020-03-28 21:36:54 +01:00