summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/modetest/modetest.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
index 19ced347..aed8079a 100644
--- a/tests/modetest/modetest.c
+++ b/tests/modetest/modetest.c
@@ -284,7 +284,9 @@ void dump_connectors(void)
void dump_crtcs(void)
{
drmModeCrtc *crtc;
+ drmModeCrtcPropertiesPtr props;
int i;
+ uint32_t j;
printf("CRTCs:\n");
printf("id\tfb\tpos\tsize\n");
@@ -303,6 +305,17 @@ void dump_crtcs(void)
crtc->width, crtc->height);
dump_mode(&crtc->mode);
+ printf(" props:\n");
+ props = drmModeCrtcGetProperties(fd, crtc->crtc_id);
+ if (props) {
+ for (j = 0; j < props->count_props; j++)
+ dump_prop(props->props[j],
+ props->prop_values[j]);
+ drmModeFreeCrtcProperties(props);
+ } else {
+ printf("\tcould not get crtc properties\n");
+ }
+
drmModeFreeCrtc(crtc);
}
printf("\n");