Skip to content

Commit fe4cd84

Browse files
committed
drm/vc4: Add support a few more RGB display plane formats.
These were all touch-tested with modetest. Signed-off-by: Eric Anholt <[email protected]>
1 parent 21af94c commit fe4cd84

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

drivers/gpu/drm/vc4/vc4_plane.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,22 @@ static const struct hvs_format {
8888
.drm = DRM_FORMAT_ARGB8888, .hvs = HVS_PIXEL_FORMAT_RGBA8888,
8989
.pixel_order = HVS_PIXEL_ORDER_ABGR, .has_alpha = true,
9090
},
91+
{
92+
.drm = DRM_FORMAT_RGB565, .hvs = HVS_PIXEL_FORMAT_RGB565,
93+
.pixel_order = HVS_PIXEL_ORDER_XRGB, .has_alpha = false,
94+
},
95+
{
96+
.drm = DRM_FORMAT_BGR565, .hvs = HVS_PIXEL_FORMAT_RGB565,
97+
.pixel_order = HVS_PIXEL_ORDER_XBGR, .has_alpha = false,
98+
},
99+
{
100+
.drm = DRM_FORMAT_ARGB1555, .hvs = HVS_PIXEL_FORMAT_RGBA5551,
101+
.pixel_order = HVS_PIXEL_ORDER_ABGR, .has_alpha = true,
102+
},
103+
{
104+
.drm = DRM_FORMAT_XRGB1555, .hvs = HVS_PIXEL_FORMAT_RGBA5551,
105+
.pixel_order = HVS_PIXEL_ORDER_ABGR, .has_alpha = false,
106+
},
91107
};
92108

93109
static const struct hvs_format *vc4_get_hvs_format(u32 drm_format)

0 commit comments

Comments
 (0)