drm: vkms: Adds XRGB_16161616 and ARGB_1616161616 formats
authorIgor Torrente <igormtorrente@gmail.com>
Mon, 5 Sep 2022 19:08:10 +0000 (16:08 -0300)
committerMelissa Wen <melissa.srw@gmail.com>
Mon, 5 Sep 2022 21:23:38 +0000 (20:23 -0100)
commit3675d8a1726337bd1e839a185e0a7ce0bc459b6b
tree8a2d5b8dfa7af2d7650c7aa9cae7816872dad365
parentbc0d7fdefec62e0cb83c1bcd3c7bd033f5e826e0
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
drivers/gpu/drm/vkms/vkms_formats.c
drivers/gpu/drm/vkms/vkms_plane.c
drivers/gpu/drm/vkms/vkms_writeback.c