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>main
parent
511c71c868
commit
ba68d7bf60
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue