[igt-dev] [PATCH 1/2] tests/kms_panel_fitting: Use 800x600 as lowest resolution for AMD devices
Alex Hung
alex.hung at amd.com
Fri Apr 15 00:33:27 UTC 2022
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);
--
2.35.1
More information about the igt-dev
mailing list