On Mon, Oct 16, 2017 at 08:10:56PM +0300, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrj...@linux.intel.com>
> 
> 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.syrj...@linux.intel.com>

No one objected, so I went ahead and pushed this.

> ---
>  tests/modetest/modetest.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
> index b8891ff5e2e8..eca8cde68123 100644
> --- a/tests/modetest/modetest.c
> +++ b/tests/modetest/modetest.c
> @@ -1005,7 +1005,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;
>               }
> -- 
> 2.13.6

-- 
Ville Syrjälä
Intel OTC
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to