[i-g-t V2 3/8] Revert "tests/kms_color: Fix multiple failures in deep-color tests"

Bhanuprakash Modem bhanuprakash.modem at intel.com
Thu Sep 22 04:00:45 UTC 2022


This reverts commit 333ca8f6be43044d71ecf15d37a3e88e7a3ce821.
---
 tests/kms_color.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/tests/kms_color.c b/tests/kms_color.c
index 8c15c7be..6ea721f1 100644
--- a/tests/kms_color.c
+++ b/tests/kms_color.c
@@ -839,7 +839,6 @@ run_deep_color_tests_for_pipe(data_t *data, enum pipe p)
 		if (!panel_supports_deep_color(data->drm_fd, output->name))
 			continue;
 
-		igt_display_reset(&data->display);
 		igt_output_set_prop_value(output, IGT_CONNECTOR_MAX_BPC, 10);
 		igt_output_set_pipe(output, p);
 		igt_display_commit_atomic(&data->display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
@@ -851,10 +850,7 @@ run_deep_color_tests_for_pipe(data_t *data, enum pipe p)
 		data->color_depth = 10;
 		data->drm_format = DRM_FORMAT_XRGB2101010;
 		data->output = output;
-
-		data->mode = malloc(sizeof(drmModeModeInfo));
-		igt_assert(data->mode);
-		memcpy(data->mode, igt_output_get_mode(data->output), sizeof(drmModeModeInfo));
+		data->mode = igt_output_get_mode(data->output);
 
 		igt_dynamic_f("pipe-%s-%s-gamma", kmstest_pipe_name(p), output->name) {
 			igt_display_reset(&data->display);
@@ -888,8 +884,6 @@ run_deep_color_tests_for_pipe(data_t *data, enum pipe p)
 			igt_assert(ret);
 		}
 
-		free(data->mode);
-
 		break;
 	}
 
-- 
2.37.3



More information about the Intel-gfx-trybot mailing list