mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
drm: support BGR888 pixel format for txhd2 [1/1]
PD#SWPL-137139 Problem: drm not support BGR888 pixel format Solution: add DRM_FORMAT_BGR888 pixel format Verify: txhd2 Test: DRM-OSD-82 Change-Id: I04d2dac13e1e53f319dd335e0f289a82bb294875 Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
This commit is contained in:
committed by
gerrit autosubmit
parent
c680a57a89
commit
795eb9abda
@@ -72,6 +72,7 @@ static const u32 supported_drm_formats[] = {
|
||||
DRM_FORMAT_RGBA8888,
|
||||
DRM_FORMAT_BGRA8888,
|
||||
DRM_FORMAT_RGB888,
|
||||
DRM_FORMAT_BGR888,
|
||||
DRM_FORMAT_RGB565,
|
||||
};
|
||||
|
||||
@@ -89,6 +90,7 @@ static const u32 supported_drm_formats_v2[] = {
|
||||
DRM_FORMAT_RGBA8888,
|
||||
DRM_FORMAT_BGRA8888,
|
||||
DRM_FORMAT_RGB888,
|
||||
DRM_FORMAT_BGR888,
|
||||
DRM_FORMAT_RGB565,
|
||||
};
|
||||
|
||||
@@ -106,6 +108,7 @@ static const u32 supported_drm_formats_v3[] = {
|
||||
DRM_FORMAT_RGBA8888,
|
||||
DRM_FORMAT_BGRA8888,
|
||||
DRM_FORMAT_RGB888,
|
||||
DRM_FORMAT_BGR888,
|
||||
DRM_FORMAT_ABGR4444,
|
||||
DRM_FORMAT_ARGB4444,
|
||||
DRM_FORMAT_BGRA4444,
|
||||
|
||||
@@ -377,6 +377,10 @@ const struct meson_drm_format_info *__meson_drm_format_info(u32 format)
|
||||
.hw_blkmode = BLOCK_MODE_24BIT,
|
||||
.hw_colormat = COLOR_MATRIX_RGB888,
|
||||
.alpha_replace = 0 },
|
||||
{ .format = DRM_FORMAT_BGR888,
|
||||
.hw_blkmode = BLOCK_MODE_24BIT,
|
||||
.hw_colormat = COLOR_MATRIX_BGR888,
|
||||
.alpha_replace = 0 },
|
||||
{ .format = DRM_FORMAT_RGB565,
|
||||
.hw_blkmode = BLOCK_MODE_16BIT,
|
||||
.hw_colormat = COLOR_MATRIX_565,
|
||||
|
||||
Reference in New Issue
Block a user