summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/vkms/vkms_writeback.c
diff options
context:
space:
mode:
authorIgor Torrente <igormtorrente@gmail.com>2022-09-05 16:08:10 -0300
committerMelissa Wen <melissa.srw@gmail.com>2022-09-05 20:23:38 -0100
commit3675d8a1726337bd1e839a185e0a7ce0bc459b6b (patch)
tree8a2d5b8dfa7af2d7650c7aa9cae7816872dad365 /drivers/gpu/drm/vkms/vkms_writeback.c
parentbc0d7fdefec62e0cb83c1bcd3c7bd033f5e826e0 (diff)
downloadlinux-next-3675d8a1726337bd1e839a185e0a7ce0bc459b6b.tar.gz
linux-next-3675d8a1726337bd1e839a185e0a7ce0bc459b6b.zip
drm: vkms: Adds XRGB_16161616 and ARGB_1616161616 formats
This will be useful to write tests that depends on these formats. ARGB and XRGB follows the a similar implementation of the former formats. Just adjusting for 16 bits per channel. V3: Adapt the handlers to the new format introduced in patch 7 V3. V5: Minor improvements Added le16_to_cpu/cpu_to_le16 to the 16 bits color read/writes. Reviewed-by: Melissa Wen <mwen@igalia.com> Signed-off-by: Igor Torrente <igormtorrente@gmail.com> Signed-off-by: Melissa Wen <melissa.srw@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220905190811.25024-9-igormtorrente@gmail.com
Diffstat (limited to 'drivers/gpu/drm/vkms/vkms_writeback.c')
-rw-r--r--drivers/gpu/drm/vkms/vkms_writeback.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vkms/vkms_writeback.c b/drivers/gpu/drm/vkms/vkms_writeback.c
index 0ce5e28d260d..16feea884646 100644
--- a/drivers/gpu/drm/vkms/vkms_writeback.c
+++ b/drivers/gpu/drm/vkms/vkms_writeback.c
@@ -16,6 +16,8 @@
static const u32 vkms_wb_formats[] = {
DRM_FORMAT_XRGB8888,
+ DRM_FORMAT_XRGB16161616,
+ DRM_FORMAT_ARGB16161616
};
static const struct drm_connector_funcs vkms_wb_connector_funcs = {