diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2023-05-23 17:31:34 +0200 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2023-05-24 14:00:46 +0200 |
commit | 2a98bad77970103fec992dabba6fad417693c849 (patch) | |
tree | 6663de13c3ff3bc9df0b8d1c293e18486f983d92 /drivers/gpu/drm/shmobile/shmob_drm_crtc.c | |
parent | d92b057f9270d83b4d71ef0a8f97b9eeb2be7a3f (diff) | |
download | linux-stable-2a98bad77970103fec992dabba6fad417693c849.tar.gz linux-stable-2a98bad77970103fec992dabba6fad417693c849.tar.bz2 linux-stable-2a98bad77970103fec992dabba6fad417693c849.zip |
drm: shmobile: Add support for DRM_FORMAT_XRGB8888
DRM_FORMAT_XRGB8888 aka XR24 is the modus francus of DRM, and should be
supported by all drivers.
The handling for DRM_FORMAT_XRGB8888 is similar to DRM_FORMAT_ARGB8888,
just ignore the alpha channel.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/888cde6d1f70f1610931c4a89801060bb6765ff2.1684854992.git.geert+renesas@glider.be
Diffstat (limited to 'drivers/gpu/drm/shmobile/shmob_drm_crtc.c')
-rw-r--r-- | drivers/gpu/drm/shmobile/shmob_drm_crtc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/shmobile/shmob_drm_crtc.c b/drivers/gpu/drm/shmobile/shmob_drm_crtc.c index 713a7612244c..08dc1428aa16 100644 --- a/drivers/gpu/drm/shmobile/shmob_drm_crtc.c +++ b/drivers/gpu/drm/shmobile/shmob_drm_crtc.c @@ -232,6 +232,7 @@ static void shmob_drm_crtc_start(struct shmob_drm_crtc *scrtc) value = LDDDSR_LS | LDDDSR_WS | LDDDSR_BS; break; case DRM_FORMAT_ARGB8888: + case DRM_FORMAT_XRGB8888: default: value = LDDDSR_LS; break; |