aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVille Syrjälä2017-10-11 09:58:11 -0500
committerVille Syrjälä2017-10-19 11:16:16 -0500
commitba68d7bf600125f2755a5b3d6b1a17e8a130ba36 (patch)
tree47280b7565451238083a4de67a38ff2317634611 /tests
parent511c71c868a7b0fac23e1387290554fee1a85434 (diff)
downloadexternal-libdrm-ba68d7bf600125f2755a5b3d6b1a17e8a130ba36.tar.gz
external-libdrm-ba68d7bf600125f2755a5b3d6b1a17e8a130ba36.tar.xz
external-libdrm-ba68d7bf600125f2755a5b3d6b1a17e8a130ba36.zip
modetest: Allow full testing of primary planes
Allow the user to override the default configuration set by setcrtc for the primary plane. On some hardware primary planes can be freely positioned/sized, and it'd be nice if we can actually test that feature. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/modetest/modetest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
index 8ad4766f..62d93327 100644
--- a/tests/modetest/modetest.c
+++ b/tests/modetest/modetest.c
@@ -1091,7 +1091,8 @@ static int set_plane(struct device *dev, struct plane_arg *p)
1091 if (!format_support(ovr, p->fourcc)) 1091 if (!format_support(ovr, p->fourcc))
1092 continue; 1092 continue;
1093 1093
1094 if ((ovr->possible_crtcs & (1 << pipe)) && !ovr->crtc_id) { 1094 if ((ovr->possible_crtcs & (1 << pipe)) &&
1095 (ovr->crtc_id == 0 || ovr->crtc_id == p->crtc_id)) {
1095 plane_id = ovr->plane_id; 1096 plane_id = ovr->plane_id;
1096 break; 1097 break;
1097 } 1098 }