Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Modem, Bhanuprakash" <bhanuprakash.modem@intel.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>,
	<igt-dev@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t] tests/kms_display_modes: Fix the plane setup in extended-mode-basic
Date: Thu, 21 Dec 2023 10:22:39 +0530	[thread overview]
Message-ID: <d8d3c3b9-91c1-4d6b-8e4a-a1531de3b07d@intel.com> (raw)
In-Reply-To: <20231220154307.32424-1-ville.syrjala@linux.intel.com>


On 20-12-2023 09:13 pm, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> The test forgets to set the output size of the planes. The
> default plane output size will be taken from the fb dimensions
> which means we end up upscaling the planes, which may not work
> on all hardware.
> 
> Set the planes' output size to match the input size to avoid this.
> The frambuffer was specifically created wide enough to cover both
> outputs with 1:1 scaling.
> 
> Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/9841
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>

> ---
>   tests/kms_display_modes.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/tests/kms_display_modes.c b/tests/kms_display_modes.c
> index 1f0f811c8367..f1d8ab03d501 100644
> --- a/tests/kms_display_modes.c
> +++ b/tests/kms_display_modes.c
> @@ -180,10 +180,12 @@ static void run_extendedmode_basic(data_t *data,
>   	igt_plane_set_fb(plane[0], &fb);
>   	igt_fb_set_position(&fb, plane[0], 0, 0);
>   	igt_fb_set_size(&fb, plane[0], mode[0]->hdisplay, mode[0]->vdisplay);
> +	igt_plane_set_size(plane[0], mode[0]->hdisplay, mode[0]->vdisplay);
>   
>   	igt_plane_set_fb(plane[1], &fb);
>   	igt_fb_set_position(&fb, plane[1], mode[0]->hdisplay, 0);
>   	igt_fb_set_size(&fb, plane[1], mode[1]->hdisplay, mode[1]->vdisplay);
> +	igt_plane_set_size(plane[1], mode[1]->hdisplay, mode[1]->vdisplay);
>   
>   	igt_display_commit2(display, COMMIT_ATOMIC);
>   

WARNING: multiple messages have this Message-ID (diff)
From: "Modem, Bhanuprakash" <bhanuprakash.modem@intel.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>,
	igt-dev@lists.freedesktop.org
Subject: Re: [PATCH i-g-t] tests/kms_display_modes: Fix the plane setup in extended-mode-basic
Date: Thu, 21 Dec 2023 10:22:39 +0530	[thread overview]
Message-ID: <d8d3c3b9-91c1-4d6b-8e4a-a1531de3b07d@intel.com> (raw)
Message-ID: <20231221045239.MtZfNhPlVJyWQhz7uU3pVe-QNv5GKwt5haeDf3adLnU@z> (raw)
In-Reply-To: <20231220154307.32424-1-ville.syrjala@linux.intel.com>


On 20-12-2023 09:13 pm, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> The test forgets to set the output size of the planes. The
> default plane output size will be taken from the fb dimensions
> which means we end up upscaling the planes, which may not work
> on all hardware.
> 
> Set the planes' output size to match the input size to avoid this.
> The frambuffer was specifically created wide enough to cover both
> outputs with 1:1 scaling.
> 
> Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/9841
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>

> ---
>   tests/kms_display_modes.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/tests/kms_display_modes.c b/tests/kms_display_modes.c
> index 1f0f811c8367..f1d8ab03d501 100644
> --- a/tests/kms_display_modes.c
> +++ b/tests/kms_display_modes.c
> @@ -180,10 +180,12 @@ static void run_extendedmode_basic(data_t *data,
>   	igt_plane_set_fb(plane[0], &fb);
>   	igt_fb_set_position(&fb, plane[0], 0, 0);
>   	igt_fb_set_size(&fb, plane[0], mode[0]->hdisplay, mode[0]->vdisplay);
> +	igt_plane_set_size(plane[0], mode[0]->hdisplay, mode[0]->vdisplay);
>   
>   	igt_plane_set_fb(plane[1], &fb);
>   	igt_fb_set_position(&fb, plane[1], mode[0]->hdisplay, 0);
>   	igt_fb_set_size(&fb, plane[1], mode[1]->hdisplay, mode[1]->vdisplay);
> +	igt_plane_set_size(plane[1], mode[1]->hdisplay, mode[1]->vdisplay);
>   
>   	igt_display_commit2(display, COMMIT_ATOMIC);
>   

  reply	other threads:[~2023-12-21  4:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-20 15:43 [PATCH i-g-t] tests/kms_display_modes: Fix the plane setup in extended-mode-basic Ville Syrjala
2023-12-21  4:52 ` Modem, Bhanuprakash [this message]
2023-12-21  4:52   ` Modem, Bhanuprakash

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d8d3c3b9-91c1-4d6b-8e4a-a1531de3b07d@intel.com \
    --to=bhanuprakash.modem@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=ville.syrjala@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox