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
parent
baa4b8cafc
commit
e761875fc5
|
@ -187,11 +187,9 @@ static bit_name_fn(mode_flag)
|
||||||
|
|
||||||
static void dump_fourcc(uint32_t fourcc)
|
static void dump_fourcc(uint32_t fourcc)
|
||||||
{
|
{
|
||||||
printf(" %c%c%c%c",
|
char *name = drmGetFormatName(fourcc);
|
||||||
fourcc,
|
printf(" %s", name);
|
||||||
fourcc >> 8,
|
free(name);
|
||||||
fourcc >> 16,
|
|
||||||
fourcc >> 24);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void dump_encoders(struct device *dev)
|
static void dump_encoders(struct device *dev)
|
||||||
|
|
Loading…
Reference in New Issue