projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
868bc99
)
drm/vc4: hvs: Fix colour order for xRGB1555 on HVS5
author
Dave Stevenson
<dave.stevenson@raspberrypi.com>
Wed, 7 Dec 2022 11:53:17 +0000
(12:53 +0100)
committer
Maxime Ripard
<maxime@cerno.tech>
Mon, 9 Jan 2023 14:21:31 +0000
(15:21 +0100)
Same as the xRGB8888 formats, HVS5 has managed to swap the colour
channels for the xRGB1555 formats as well. Add the relevant
config for pixel_order_hvs5.
Fixes: c54619b0bfb3 ("drm/vc4: Add support for the BCM2711 HVS5")
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link:
https://lore.kernel.org/r/20221207-rpi-hvs-crtc-misc-v1-6-1f8e0770798b@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_plane.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/vc4/vc4_plane.c
b/drivers/gpu/drm/vc4/vc4_plane.c
index c212f8c10388a1d81ce1805d47152ece48b885d1..e60d6f1a7de16e84d3e4b67ac115d7203fc40572 100644
(file)
--- a/
drivers/gpu/drm/vc4/vc4_plane.c
+++ b/
drivers/gpu/drm/vc4/vc4_plane.c
@@
-75,11
+75,13
@@
static const struct hvs_format {
.drm = DRM_FORMAT_ARGB1555,
.hvs = HVS_PIXEL_FORMAT_RGBA5551,
.pixel_order = HVS_PIXEL_ORDER_ABGR,
+ .pixel_order_hvs5 = HVS_PIXEL_ORDER_ARGB,
},
{
.drm = DRM_FORMAT_XRGB1555,
.hvs = HVS_PIXEL_FORMAT_RGBA5551,
.pixel_order = HVS_PIXEL_ORDER_ABGR,
+ .pixel_order_hvs5 = HVS_PIXEL_ORDER_ARGB,
},
{
.drm = DRM_FORMAT_RGB888,