diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2022-03-03 18:13:07 +0100 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2023-10-24 09:44:13 +0200 |
commit | 236766b0b3eda0271fd378af52afc19d6f8e1531 (patch) | |
tree | 0dd391ce28ec8d0c41cf2400c3fbbd007f5113a6 | |
parent | 6d9645bb3b7b6fa206aaa6e7bf4c8fe86efccb83 (diff) | |
download | libdrm-236766b0b3eda0271fd378af52afc19d6f8e1531.tar.gz libdrm-236766b0b3eda0271fd378af52afc19d6f8e1531.tar.bz2 libdrm-236766b0b3eda0271fd378af52afc19d6f8e1531.zip |
util: add support for DRM_FORMAT_C[124]
Add support for creating buffers using the new color-indexed frame
buffer formats with two, four, and sixteen colors.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
v5:
- Add Reviewed-by,
v4:
- No changes,
v3:
- Add Acked-by,
v2:
- Split off changes to tests/util/format.c.
-rw-r--r-- | tests/util/format.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/util/format.c b/tests/util/format.c index f8250272..b3d2abdc 100644 --- a/tests/util/format.c +++ b/tests/util/format.c @@ -40,6 +40,9 @@ static const struct util_format_info format_info[] = { /* Indexed */ + { DRM_FORMAT_C1, "C1" }, + { DRM_FORMAT_C2, "C2" }, + { DRM_FORMAT_C4, "C4" }, { DRM_FORMAT_C8, "C8" }, /* YUV packed */ { DRM_FORMAT_UYVY, "UYVY", MAKE_YUV_INFO(YUV_YCbCr | YUV_CY, 2, 2, 2) }, |