diff options
author | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2012-01-12 14:45:25 -0200 |
---|---|---|
committer | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2012-01-12 14:45:25 -0200 |
commit | 2658f5de70f2b9275d19ff7ea941cc884d8a679b (patch) | |
tree | 458901857c3476eccd6437cf2eea6105ec9a6573 | |
parent | 649916cafe285f62c814a989373653344e2b85f3 (diff) |
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
-rw-r--r-- | tests/modetest/modetest.c | 13 |
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"); |