summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Clark <rob@ti.com>2012-06-05 12:28:47 -0500
committerRob Clark <rob@ti.com>2012-06-08 09:27:21 -0500
commit25e4cb4659c62817aae2ca3b83f2d4f598d6474b (patch)
treeba34738682686949dfb0cc1d4b40d0c6cd50d590
parent6df9e6af4b34ef2c5278941ee78de029e4040485 (diff)
modetest: support plane properties
Add support to display plane properties. Signed-off-by: Rob Clark <rob@ti.com> Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
-rw-r--r--tests/modetest/modetest.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
index dea271a4..dc84cf32 100644
--- a/tests/modetest/modetest.c
+++ b/tests/modetest/modetest.c
@@ -369,6 +369,7 @@ void dump_framebuffers(void)
static void dump_planes(void)
{
+ drmModeObjectPropertiesPtr props;
drmModePlaneRes *plane_resources;
drmModePlane *ovr;
unsigned int i, j;
@@ -403,6 +404,19 @@ static void dump_planes(void)
printf(" %4.4s", (char *)&ovr->formats[j]);
printf("\n");
+ printf(" props:\n");
+ props = drmModeObjectGetProperties(fd, ovr->plane_id,
+ DRM_MODE_OBJECT_PLANE);
+ if (props) {
+ for (j = 0; j < props->count_props; j++)
+ dump_prop(props->props[j],
+ props->prop_values[j]);
+ drmModeFreeObjectProperties(props);
+ } else {
+ printf("\tcould not get plane properties: %s\n",
+ strerror(errno));
+ }
+
drmModeFreePlane(ovr);
}
printf("\n");