diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-12 19:24:00 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-12 21:22:52 +0100 |
commit | 36a83a6c5ccfff7336d257aba499c4e72674615a (patch) | |
tree | 128bf116be9e929fb4ef925e635355fb00810341 /tests | |
parent | 803d07b2fff95794d8a840728d417e8e1d31264c (diff) |
lib/igt_debugfs: drop drm_fd argument from igt_pipe_crc_new
It's nowhere used and removing it gives us a cleaner, more
orthogonal interface.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/kms_cursor_crc.c | 2 | ||||
-rw-r--r-- | tests/kms_fbc_crc.c | 2 | ||||
-rw-r--r-- | tests/kms_pipe_crc_basic.c | 2 | ||||
-rw-r--r-- | tests/kms_plane.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c index f98fbdb5..0b38a7ce 100644 --- a/tests/kms_cursor_crc.c +++ b/tests/kms_cursor_crc.c @@ -63,7 +63,7 @@ static igt_pipe_crc_t *create_crc(data_t *data, enum pipe pipe) { igt_pipe_crc_t *crc; - crc = igt_pipe_crc_new(&data->debugfs, data->drm_fd, pipe, + crc = igt_pipe_crc_new(&data->debugfs, pipe, INTEL_PIPE_CRC_SOURCE_AUTO); return crc; } diff --git a/tests/kms_fbc_crc.c b/tests/kms_fbc_crc.c index 4d4473e2..edcba7a2 100644 --- a/tests/kms_fbc_crc.c +++ b/tests/kms_fbc_crc.c @@ -352,7 +352,7 @@ static bool prepare_crtc(data_t *data, uint32_t connector_id, enum test_mode mod data->pipe_crc[data->crtc_idx] = NULL; pipe_crc = igt_pipe_crc_new(&data->debugfs, - data->drm_fd, data->crtc_idx, + data->crtc_idx, INTEL_PIPE_CRC_SOURCE_AUTO); if (!pipe_crc) { printf("auto crc not supported on this connector with crtc %i\n", diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c index 2b46ef30..8523b534 100644 --- a/tests/kms_pipe_crc_basic.c +++ b/tests/kms_pipe_crc_basic.c @@ -88,7 +88,7 @@ static void test_read_crc(data_t *data, int pipe, unsigned flags) igt_display_commit(display); - pipe_crc = igt_pipe_crc_new(&data->debugfs, data->drm_fd, + pipe_crc = igt_pipe_crc_new(&data->debugfs, pipe, INTEL_PIPE_CRC_SOURCE_AUTO); if (!pipe_crc) diff --git a/tests/kms_plane.c b/tests/kms_plane.c index 2371f9a1..6c7275a8 100644 --- a/tests/kms_plane.c +++ b/tests/kms_plane.c @@ -92,7 +92,7 @@ test_position_init(test_position_t *test, igt_output_t *output, enum pipe pipe) drmModeModeInfo *mode; igt_plane_t *primary; - test->pipe_crc = igt_pipe_crc_new(&data->debugfs, data->drm_fd, + test->pipe_crc = igt_pipe_crc_new(&data->debugfs, pipe, INTEL_PIPE_CRC_SOURCE_AUTO); igt_output_set_pipe(output, pipe); |