From 7df7e3bda6a206c15044dfd9804eddeee29d981b Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Thu, 21 Sep 2017 12:53:27 +0200 Subject: tests: Stop looking at plane private members Most of these tests have no reason to look at those members, so try other ways of getting the information. Signed-off-by: Maarten Lankhorst Reviewed-by: Mika Kahola --- tests/kms_panel_fitting.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'tests/kms_panel_fitting.c') diff --git a/tests/kms_panel_fitting.c b/tests/kms_panel_fitting.c index 5266862a..85a231e6 100644 --- a/tests/kms_panel_fitting.c +++ b/tests/kms_panel_fitting.c @@ -84,19 +84,7 @@ static void prepare_crtc(data_t *data, igt_output_t *output, enum pipe pipe, } igt_plane_set_fb(plane, &data->fb1); - if (s == COMMIT_LEGACY) { - int ret; - ret = drmModeSetCrtc(data->drm_fd, - plane->pipe->crtc_id, - data->fb_id1, - plane->src_x, plane->src_y, - &output->id, - 1, - mode); - igt_assert_eq(ret, 0); - } else { - igt_display_commit2(display, s); - } + igt_display_commit2(display, s); } static void cleanup_crtc(data_t *data, igt_output_t *output, igt_plane_t *plane) -- cgit v1.2.3