tests/kms_draw_crc: remove hardcoded PIPE_A

The test used to assume pipe A was being used for everything, and we
tried to fix this in commit "tests: fix CRTC assignment for a few
tests", but the pipe CRC code was forgotten.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
Paulo Zanoni 2016-03-04 18:48:24 -03:00
parent 55fa16b654
commit 364d3785bf

View File

@ -154,8 +154,6 @@ static void draw_method_subtest(enum igt_draw_method method,
kmstest_unset_all_crtcs(drm_fd, drm_res);
find_modeset_params();
/* Use IGT_DRAW_MMAP_GTT on an untiled buffer as the parameter for
* comparison. Cache the value so we don't recompute it for every single
* subtest. */
@ -198,8 +196,6 @@ static void fill_fb_subtest(void)
kmstest_unset_all_crtcs(drm_fd, drm_res);
find_modeset_params();
igt_create_fb(drm_fd, ms.mode->hdisplay, ms.mode->vdisplay,
DRM_FORMAT_XRGB8888, LOCAL_DRM_FORMAT_MOD_NONE, &fb);
@ -242,7 +238,9 @@ static void setup_environment(void)
igt_assert(bufmgr);
drm_intel_bufmgr_gem_enable_reuse(bufmgr);
pipe_crc = igt_pipe_crc_new(0, INTEL_PIPE_CRC_SOURCE_AUTO);
find_modeset_params();
pipe_crc = igt_pipe_crc_new(kmstest_get_crtc_idx(drm_res, ms.crtc_id),
INTEL_PIPE_CRC_SOURCE_AUTO);
}
static void teardown_environment(void)