tests/modetest: use drmGetFormatName()

Signed-off-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Marius Vlad <marius.vlad@collabora.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
main
Simon Ser 2022-08-21 14:18:28 +02:00
parent baa4b8cafc
commit e761875fc5
1 changed files with 3 additions and 5 deletions

View File

@ -187,11 +187,9 @@ static bit_name_fn(mode_flag)
static void dump_fourcc(uint32_t fourcc)
{
printf(" %c%c%c%c",
fourcc,
fourcc >> 8,
fourcc >> 16,
fourcc >> 24);
char *name = drmGetFormatName(fourcc);
printf(" %s", name);
free(name);
}
static void dump_encoders(struct device *dev)