summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2012-01-12 14:45:25 -0200
committerPaulo Zanoni <paulo.r.zanoni@intel.com>2012-01-12 14:45:25 -0200
commit2658f5de70f2b9275d19ff7ea941cc884d8a679b (patch)
tree458901857c3476eccd6437cf2eea6105ec9a6573
parent649916cafe285f62c814a989373653344e2b85f3 (diff)
modetest: print CRTC propertiesHEADmaster
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
-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");