Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/kms_plane_scaling: reduce unnecessary work
@ 2024-05-21 12:30 Juha-Pekka Heikkila
  2024-05-21 14:01 ` ✓ Fi.CI.BAT: success for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Juha-Pekka Heikkila @ 2024-05-21 12:30 UTC (permalink / raw)
  To: igt-dev; +Cc: Juha-Pekka Heikkila

These tests are not crc tests so there's no need to put special
content on framebuffers.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
---
 tests/kms_plane_scaling.c | 23 +++++++++--------------
 1 file changed, 9 insertions(+), 14 deletions(-)

diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
index acb4a1da1..3f63d3cf4 100644
--- a/tests/kms_plane_scaling.c
+++ b/tests/kms_plane_scaling.c
@@ -597,8 +597,7 @@ static void check_scaling_pipe_plane_rot(data_t *d, igt_plane_t *plane,
 	w = ALIGN(w, 2);
 	h = ALIGN(h, 2);
 
-	igt_create_color_fb(display->drm_fd, w, h,
-			    pixel_format, modifier, 0.0, 1.0, 0.0, &d->fb[0]);
+	igt_create_fb(display->drm_fd, w, h, pixel_format, modifier, &d->fb[0]);
 
 	igt_plane_set_fb(plane, &d->fb[0]);
 	igt_fb_set_position(&d->fb[0], plane, 0, 0);
@@ -1050,18 +1049,14 @@ static void test_scaler_with_multi_pipe_plane(data_t *d)
 	plane[3] = igt_output_get_plane(output2, 1);
 	igt_require(plane[3]);
 
-	igt_create_pattern_fb(d->drm_fd, 600, 600,
-			      DRM_FORMAT_XRGB8888,
-			      DRM_FORMAT_MOD_LINEAR, &d->fb[0]);
-	igt_create_pattern_fb(d->drm_fd, 500, 500,
-			      DRM_FORMAT_XRGB8888,
-			      DRM_FORMAT_MOD_LINEAR, &d->fb[1]);
-	igt_create_pattern_fb(d->drm_fd, 700, 700,
-			      DRM_FORMAT_XRGB8888,
-			      DRM_FORMAT_MOD_LINEAR, &d->fb[2]);
-	igt_create_pattern_fb(d->drm_fd, 400, 400,
-			      DRM_FORMAT_XRGB8888,
-			      DRM_FORMAT_MOD_LINEAR, &d->fb[3]);
+	igt_create_fb(d->drm_fd, 600, 600, DRM_FORMAT_XRGB8888,
+		      DRM_FORMAT_MOD_LINEAR, &d->fb[0]);
+	igt_create_fb(d->drm_fd, 500, 500, DRM_FORMAT_XRGB8888,
+		      DRM_FORMAT_MOD_LINEAR, &d->fb[1]);
+	igt_create_fb(d->drm_fd, 700, 700, DRM_FORMAT_XRGB8888,
+		      DRM_FORMAT_MOD_LINEAR, &d->fb[2]);
+	igt_create_fb(d->drm_fd, 400, 400, DRM_FORMAT_XRGB8888,
+		      DRM_FORMAT_MOD_LINEAR, &d->fb[3]);
 
 	igt_plane_set_fb(plane[0], &d->fb[0]);
 	igt_plane_set_fb(plane[1], &d->fb[1]);
-- 
2.43.2


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-05-22 18:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-21 12:30 [PATCH i-g-t] tests/kms_plane_scaling: reduce unnecessary work Juha-Pekka Heikkila
2024-05-21 14:01 ` ✓ Fi.CI.BAT: success for " Patchwork
2024-05-21 14:49 ` ✓ CI.xeBAT: " Patchwork
2024-05-21 19:01 ` ✗ CI.xeFULL: failure " Patchwork
2024-05-22  5:49 ` ✗ Fi.CI.IGT: " Patchwork
2024-05-22  9:30   ` Juha-Pekka Heikkila
2024-05-22 18:31     ` Maarten Lankhorst

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox