OSDN Git Service

modetest: remove drmMode{,Plane}Res
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 13 Apr 2020 10:26:18 +0000 (11:26 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 19 May 2020 20:03:52 +0000 (21:03 +0100)
commit53fde76ce3dc4bdce667ab204b9510fde8cabdd5
treef9298ea43304e55bda0ec25d4c75571f5f439a8d
parent823669c6c0fe8e80ff54e70768aadd15a2c4153d
modetest: remove drmMode{,Plane}Res

There's no point in keeping these around since we already fetch the
complete data set. Add respective count_ variables and greatly simplify
the existing code.

Extra brownie points for:
 - using the inverse order in free_resources()
 - don't memory leak the connector properties
 - free the properties themselves, instead of only the objects

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
Tested-by: Ezequiel Garcia <ezequiel@collabora.com>
tests/modetest/modetest.c