diff options
author | Qiang Yu <[email protected]> | 2020-03-28 14:09:22 +0800 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-31 01:40:29 +0000 |
commit | e46b2ef7243a7f916b7d77f3495bea26f4f24d62 (patch) | |
tree | 4a0937ff1a09e98ac83c1c89ead06c3dc90bfd03 /src/gallium/drivers/lima/lima_util.h | |
parent | 02ad147c5c80a124630992ae6c5ae705c6c68bed (diff) |
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 <[email protected]>
Signed-off-by: Qiang Yu <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4362>
Diffstat (limited to 'src/gallium/drivers/lima/lima_util.h')
0 files changed, 0 insertions, 0 deletions