2022-05-16 21:40:32 +00:00
|
|
|
From 9b3860cba9b5a36a2fb5023086e1217578e71076 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
|
|
Date: Mon, 31 Jan 2022 16:28:43 +0000
|
|
|
|
Subject: [PATCH] drm/vc4: Add DRM 210101010 RGB formats for hvs5.
|
|
|
|
|
|
|
|
HVS5 supports the 210101010 RGB[A|X] formats, but they were
|
|
|
|
missing from the DRM to HVS mapping list, so weren't available.
|
|
|
|
Add them in.
|
|
|
|
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
|
|
---
|
|
|
|
drivers/gpu/drm/vc4/vc4_plane.c | 28 ++++++++++++++++++++++++++++
|
|
|
|
1 file changed, 28 insertions(+)
|
|
|
|
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_plane.c
|
|
|
|
+++ b/drivers/gpu/drm/vc4/vc4_plane.c
|
2023-03-12 14:16:50 +00:00
|
|
|
@@ -137,6 +137,34 @@ static const struct hvs_format {
|
2022-05-16 21:40:32 +00:00
|
|
|
.pixel_order = HVS_PIXEL_ORDER_XYCBCR,
|
|
|
|
.hvs5_only = true,
|
|
|
|
},
|
|
|
|
+ {
|
|
|
|
+ .drm = DRM_FORMAT_XRGB2101010,
|
|
|
|
+ .hvs = HVS_PIXEL_FORMAT_RGBA1010102,
|
|
|
|
+ .pixel_order = HVS_PIXEL_ORDER_ABGR,
|
|
|
|
+ .pixel_order_hvs5 = HVS_PIXEL_ORDER_ARGB,
|
|
|
|
+ .hvs5_only = true,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ .drm = DRM_FORMAT_ARGB2101010,
|
|
|
|
+ .hvs = HVS_PIXEL_FORMAT_RGBA1010102,
|
|
|
|
+ .pixel_order = HVS_PIXEL_ORDER_ABGR,
|
|
|
|
+ .pixel_order_hvs5 = HVS_PIXEL_ORDER_ARGB,
|
|
|
|
+ .hvs5_only = true,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ .drm = DRM_FORMAT_ABGR2101010,
|
|
|
|
+ .hvs = HVS_PIXEL_FORMAT_RGBA1010102,
|
|
|
|
+ .pixel_order = HVS_PIXEL_ORDER_ARGB,
|
|
|
|
+ .pixel_order_hvs5 = HVS_PIXEL_ORDER_ABGR,
|
|
|
|
+ .hvs5_only = true,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ .drm = DRM_FORMAT_XBGR2101010,
|
|
|
|
+ .hvs = HVS_PIXEL_FORMAT_RGBA1010102,
|
|
|
|
+ .pixel_order = HVS_PIXEL_ORDER_ARGB,
|
|
|
|
+ .pixel_order_hvs5 = HVS_PIXEL_ORDER_ABGR,
|
|
|
|
+ .hvs5_only = true,
|
|
|
|
+ },
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct hvs_format *vc4_get_hvs_format(u32 drm_format)
|