mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-07-17 06:48:07 +00:00
ca02a57aa9
Both parameter depth and bpp are set to uiPixelWidthInBits at the current implementation, however, the depth may not be the same as bpp for certain pixel format such as XRGB8888. This bug was exposed by the recent DRM driver change introducing strict error checking. To fix this problem, add utility function uiPixelDepthInBits to derive and use depth based on the pixel format. Signed-off-by: Eric Ruei <e-ruei1@ti.com> Signed-off-by: Denys Dmytriyenko <denys@ti.com>