drm/tests/modetest
Geert Uytterhoeven bc37db5c66 modetest: add support for parsing big-endian formats
When specifying a frame buffer format like "RG16_BE" (big-endian RG16),
modetest still uses the little-endian variant, as the format string is
truncated to four characters.

Fix this by increasing the format string size to 8 bytes (7 characters +
NUL terminator).

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:
  - Update for suffix change from "be" to "_BE", cfr. commit
    ffb9375a50 ("xf86drm: handle DRM_FORMAT_BIG_ENDIAN in
    drmGetFormatName()"),
  - Replace hardcoded numbers in code by sizeof(),

v2:
  - New.
2023-10-31 13:24:32 +00:00
..
Android.mk android: introduce Android.common.mk to reduce boilerplate 2017-01-27 15:48:16 +00:00
Makefile.sources modetest: move sources lists to makefiles.sources 2014-09-28 17:09:34 +01:00
buffers.c modetest: add support for DRM_FORMAT_NV{15,20,30} 2023-10-30 12:25:09 +00:00
buffers.h modetest: add support for writeback connector 2023-09-08 16:27:39 +00:00
cursor.c meson,configure: include config.h automatically 2018-03-20 18:19:26 +00:00
cursor.h modetest: add cursor support 2014-04-22 11:14:12 -04:00
meson.build modetest: custom mode support 2023-09-08 18:19:31 +00:00
modetest.c modetest: add support for parsing big-endian formats 2023-10-31 13:24:32 +00:00