[igt-dev] [PATCH 1/2] tests/kms_panel_fitting: Use 800x600 as lowest resolution for AMD devices

Rodrigo Siqueira Jordao Rodrigo.Siqueira at amd.com
Thu Apr 28 21:58:30 UTC 2022



On 2022-04-14 20:33, Alex Hung wrote:
> 800x600 is lowest resolution for recent AMD devices.
> 
> Signed-off-by: Alex Hung <alex.hung at amd.com>
> ---
>   tests/kms_panel_fitting.c | 9 +++++++--
>   1 file changed, 7 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/kms_panel_fitting.c b/tests/kms_panel_fitting.c
> index 6c1b748d..7ed0d196 100644
> --- a/tests/kms_panel_fitting.c
> +++ b/tests/kms_panel_fitting.c
> @@ -107,8 +107,13 @@ static void test_panel_fitting(data_t *d)
>   				      DRM_FORMAT_MOD_LINEAR, &d->fb2);
>   
>   		/* Set up display to enable panel fitting */
> -		mode->hdisplay = 640;
> -		mode->vdisplay = 480;
> +		if (is_amdgpu_device(display->drm_fd)) {
> +			mode->hdisplay = 800;
> +			mode->vdisplay = 600;
> +		} else {
> +			mode->hdisplay = 640;
> +			mode->vdisplay = 480;
> +		}
>   		d->plane1 = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY);
>   		prepare_crtc(d, output, pipe, d->plane1, mode, COMMIT_LEGACY);
>   

Reviewed-by: Rodrigo.Siqueira <Rodrigo.Siqueira at amd.com>


More information about the igt-dev mailing list