mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-25 00:10:11 +01:00
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>
This commit is contained in:
parent
6df9e6af4b
commit
25e4cb4659
1 changed files with 14 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue