summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2017-10-11 17:58:11 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2017-10-19 19:16:16 +0300
commitba68d7bf600125f2755a5b3d6b1a17e8a130ba36 (patch)
tree47280b7565451238083a4de67a38ff2317634611
parent511c71c868a7b0fac23e1387290554fee1a85434 (diff)
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>
-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)
if (!format_support(ovr, p->fourcc))
continue;
- if ((ovr->possible_crtcs & (1 << pipe)) && !ovr->crtc_id) {
+ if ((ovr->possible_crtcs & (1 << pipe)) &&
+ (ovr->crtc_id == 0 || ovr->crtc_id == p->crtc_id)) {
plane_id = ovr->plane_id;
break;
}