platform_hardware_libhardware/modules/gralloc
Peter Collingbourne f2ed293b9b gralloc: Configure framebuffer mode according to requested image format.
Previously we were ignoring the requested image format when mapping a graphics
device via gralloc_alloc, and using the mode that the framebuffer started up
in. This meant that on devices whose framebuffer starts up in a mode other
than RGBA8888, we would map the framebuffer in the other mode and attempt to
use it as an RGBA8888 framebuffer, which would lead to crashes or incorrecet
rendering. This is the case in the ARM FVP, whose framebuffer starts up in
RGB565 mode.

Unfortunately there is no preferred image format passed in to fb_device_open,
and we presumably cannot start passing one in for backwards compatibility
reasons. Therefore, we set the image format to RGBA8888, which appears to
be the only format that the platform ends up using.

Bug: 142352330
Change-Id: I24000fd36910b4044ce7659605efc423e36cba00
2019-10-15 17:50:25 -07:00
..
Android.mk gralloc: fix dependencies 2017-04-17 16:30:05 -07:00
framebuffer.cpp gralloc: Configure framebuffer mode according to requested image format. 2019-10-15 17:50:25 -07:00
gr.h gralloc: Configure framebuffer mode according to requested image format. 2019-10-15 17:50:25 -07:00
gralloc.cpp gralloc: Configure framebuffer mode according to requested image format. 2019-10-15 17:50:25 -07:00
gralloc_priv.h gralloc: make private_handle_t layout consistent on 32/64-bit 2014-03-03 13:37:11 -08:00
mapper.cpp libhardware: deprecate cutils/log.h 2017-04-11 10:50:06 -07:00