OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a01cb8b
)
drm/vc4: Add support for DRM_FORMAT_RGB888 and DRM_FORMAT_BGR888
author
Dave Stevenson
<dave.stevenson@raspberrypi.org>
Thu, 16 Nov 2017 14:22:29 +0000
(14:22 +0000)
committer
Eric Anholt
<eric@anholt.net>
Mon, 20 Nov 2017 23:19:34 +0000
(15:19 -0800)
Filling out the list of supported formats based on those the
hardware can support.
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link:
https://patchwork.freedesktop.org/patch/msgid/b551205d1c33fa49eef2c33ed2d60c5339b2f299.1510841336.git.dave.stevenson@raspberrypi.org
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
423a23e
..
513b4b1
100644
(file)
--- a/
drivers/gpu/drm/vc4/vc4_plane.c
+++ b/
drivers/gpu/drm/vc4/vc4_plane.c
@@
-121,6
+121,14
@@
static const struct hvs_format {
.pixel_order = HVS_PIXEL_ORDER_ABGR, .has_alpha = false,
},
{
+ .drm = DRM_FORMAT_RGB888, .hvs = HVS_PIXEL_FORMAT_RGB888,
+ .pixel_order = HVS_PIXEL_ORDER_XRGB, .has_alpha = false,
+ },
+ {
+ .drm = DRM_FORMAT_BGR888, .hvs = HVS_PIXEL_FORMAT_RGB888,
+ .pixel_order = HVS_PIXEL_ORDER_XBGR, .has_alpha = false,
+ },
+ {
.drm = DRM_FORMAT_YUV422,
.hvs = HVS_PIXEL_FORMAT_YCBCR_YUV422_3PLANE,
},