[igt-dev] [v6 8/8] tests/kms_plane_scaling: Cleanup

Swati Sharma swati2.sharma at intel.com
Thu Feb 24 10:12:24 UTC 2022


Signed-off-by: Swati Sharma <swati2.sharma at intel.com>
---
 tests/kms_plane_scaling.c | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
index c688f0d3..cfa52d9e 100644
--- a/tests/kms_plane_scaling.c
+++ b/tests/kms_plane_scaling.c
@@ -26,7 +26,6 @@
 #include "igt_vec.h"
 #include <math.h>
 
-
 IGT_TEST_DESCRIPTION("Test display plane scaling");
 
 enum scaler_combo_test_type {
@@ -39,10 +38,6 @@ typedef struct {
 	uint32_t devid;
 	int drm_fd;
 	igt_display_t display;
-	igt_crc_t ref_crc;
-
-	int image_w;
-	int image_h;
 
 	struct igt_fb fb[4];
 
@@ -298,8 +293,7 @@ static void test_scaler_with_rotation_pipe(data_t *d,
 {
 	igt_display_t *display = &d->display;
 	igt_plane_t *plane;
-	uint64_t modifier = is_i915_device(d->drm_fd) ?
-		I915_FORMAT_MOD_Y_TILED : DRM_FORMAT_MOD_LINEAR;
+	uint64_t modifier = DRM_FORMAT_MOD_LINEAR;
 
 	igt_require(get_num_scalers(d, pipe) > 0);
 
@@ -714,12 +708,12 @@ static void test_scaler_with_multi_pipe_plane(data_t *d)
 	mode1 = igt_output_get_mode(output1);
 	mode2 = igt_output_get_mode(output2);
 
-	/* Upscaling Primary */
+	/* upscaling primary */
 	igt_plane_set_size(d->plane1, mode1->hdisplay, mode1->vdisplay);
 	igt_plane_set_size(d->plane3, mode2->hdisplay, mode2->vdisplay);
 	igt_display_commit2(display, COMMIT_ATOMIC);
 
-	/* Upscaling Sprites */
+	/* upscaling sprites */
 	igt_plane_set_size(d->plane2 ?: d->plane1, mode1->hdisplay, mode1->vdisplay);
 	igt_plane_set_size(d->plane4 ?: d->plane3, mode2->hdisplay, mode2->vdisplay);
 	igt_display_commit2(display, COMMIT_ATOMIC);
-- 
2.25.1



More information about the igt-dev mailing list