mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
drm: force ARGB8888 format to osd display
PD#152825: convert XRGB8888 to ARGB8888 fomat to osd display Change-Id: Ia7c7362510d14ecbff5273e1df95f8c5441e0398 Signed-off-by: Yalong Liu <yalong.liu@amlogic.com>
This commit is contained in:
@@ -90,7 +90,11 @@ void am_osd_do_display(
|
||||
|
||||
switch (fb->pixel_format) {
|
||||
case DRM_FORMAT_XRGB8888:
|
||||
format = COLOR_INDEX_32_XRGB;
|
||||
/*
|
||||
*force convert to ARGB8888 format,
|
||||
*because overlay layer needs to display
|
||||
*/
|
||||
format = COLOR_INDEX_32_ARGB;
|
||||
break;
|
||||
case DRM_FORMAT_XBGR8888:
|
||||
format = COLOR_INDEX_32_XBGR;
|
||||
|
||||
Reference in New Issue
Block a user