Skip to content

am62x: rgx_um: gralloc: default to NV12 format

Libcamera, which is being integrated for CSI camera support, assumes that HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED == NV12.

This is not the case in our gralloc implementation, which defaults to YV12 (also called YVU420 in libcamera).

Because of this, when the camera HAL requests buffers from gralloc, there is a mismatch between expectation (NV12) and reality (YV12), resulting in monochromatic images.

Default HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED to NV12.

Build from: f4b4ec92dc4d ("android: gralloc: buffer_generic: default to NV12")

Signed-off-by: Mattijs Korpershoek mkorpershoek@baylibre.com

Bug: TIAU-319

Merge request reports