[igt-dev] [PATCH i-g-t 4/4] tests/i915/kms_psr2_sf: Fix setting wrong fb size

Kahola, Mika mika.kahola at intel.com
Mon May 30 08:35:01 UTC 2022


> -----Original Message-----
> From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of Jouni
> Högander
> Sent: Monday, May 30, 2022 9:07 AM
> To: igt-dev at lists.freedesktop.org
> Subject: [igt-dev] [PATCH i-g-t 4/4] tests/i915/kms_psr2_sf: Fix setting wrong fb
> size
> 
> Current code is improperly setting over framebuffer size. Fix this by setting
> primary framebuffer size instead.
> 
> Signed-off-by: Jouni Högander <jouni.hogander at intel.com>

Reviewed-by: Mika Kahola <mika.kahola at intel.com>

> ---
>  tests/i915/kms_psr2_sf.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/i915/kms_psr2_sf.c b/tests/i915/kms_psr2_sf.c index
> 47a431b6..6612587c 100644
> --- a/tests/i915/kms_psr2_sf.c
> +++ b/tests/i915/kms_psr2_sf.c
> @@ -367,7 +367,7 @@ static void prepare(data_t *data)
> 
>  	igt_plane_set_fb(primary, &data->fb_primary);
>  	igt_fb_set_position(&data->fb_primary, primary, x, y);
> -	igt_fb_set_size(&data->fb_overlay, primary, view_w,
> +	igt_fb_set_size(&data->fb_primary, primary, view_w,
>  			view_h);
>  	igt_plane_set_size(primary, view_w, view_h);
>  	igt_plane_set_position(primary, 0, 0);
> --
> 2.25.1



More information about the igt-dev mailing list