summaryrefslogtreecommitdiff
path: root/include/drm/gud.h
diff options
context:
space:
mode:
authorNoralf Trønnes <noralf@tronnes.org>2021-09-29 21:11:59 +0200
committerNoralf Trønnes <noralf@tronnes.org>2021-10-04 12:05:07 +0200
commit4cabfedc096b14336fac1d42bec5cb8ff5090527 (patch)
tree56ef5ad769643f2f3235c712f7cb931a460b9d69 /include/drm/gud.h
parentbcf80d6ef17c97ca7a712d8e6b065910b406e3c3 (diff)
drm/gud: Add GUD_PIXEL_FORMAT_R8
Add support for 8-bit greyscale format. Acked-by: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Link: https://patchwork.freedesktop.org/patch/msgid/20210929191201.34456-5-noralf@tronnes.org
Diffstat (limited to 'include/drm/gud.h')
-rw-r--r--include/drm/gud.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/drm/gud.h b/include/drm/gud.h
index 0b46b54fe56e..1dc781009e62 100644
--- a/include/drm/gud.h
+++ b/include/drm/gud.h
@@ -246,8 +246,8 @@ struct gud_state_req {
/* Get supported pixel formats as a byte array of GUD_PIXEL_FORMAT_* */
#define GUD_REQ_GET_FORMATS 0x40
#define GUD_FORMATS_MAX_NUM 32
- /* R1 is a 1-bit monochrome transfer format presented to userspace as XRGB8888 */
- #define GUD_PIXEL_FORMAT_R1 0x01
+ #define GUD_PIXEL_FORMAT_R1 0x01 /* 1-bit monochrome */
+ #define GUD_PIXEL_FORMAT_R8 0x08 /* 8-bit greyscale */
#define GUD_PIXEL_FORMAT_XRGB1111 0x20
#define GUD_PIXEL_FORMAT_RGB565 0x40
#define GUD_PIXEL_FORMAT_XRGB8888 0x80