summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2022-07-07 15:52:33 +0200
committerDmitry Baryshkov <dbaryshkov@gmail.com>2023-10-31 13:24:32 +0000
commit584a85b89105aed972fcbea96349b6346209bae7 (patch)
tree34bcde10939a2ac2eb480d35e27ed524f2c431d7
parent32a03fb32c649a665d0ff7162cf13c770d4662ee (diff)
util: add pwetty support for big-endian RGB565
Add support for rendering the crosshairs in a buffer using the big-endian RGB565 format. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> --- v5: - Add Reviewed-by, v4: - No changes, v3: - No changes, v2: - New.
-rw-r--r--tests/util/pattern.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/util/pattern.c b/tests/util/pattern.c
index 34d9d3e4..2ff9c033 100644
--- a/tests/util/pattern.c
+++ b/tests/util/pattern.c
@@ -1337,6 +1337,7 @@ static void make_pwetty(void *data, unsigned int width, unsigned int height,
cairo_format = CAIRO_FORMAT_ARGB32;
break;
case DRM_FORMAT_RGB565:
+ case DRM_FORMAT_RGB565 | DRM_FORMAT_BIG_ENDIAN:
case DRM_FORMAT_BGR565:
cairo_format = CAIRO_FORMAT_RGB16_565;
swap16 = fb_foreign_endian(format);