diff options
| author | Swati Sharma <swati2.sharma@intel.com> | 2019-07-25 13:13:51 +0530 |
|---|---|---|
| committer | Ramalingam C <ramalingam.c@intel.com> | 2019-08-01 16:06:07 +0530 |
| commit | b646668b947851459e0aec0ecfc54e9ed5503bfc (patch) | |
| tree | f10936688b9c629e344c5f294e1c388f0e9f0524 /tests | |
| parent | c5814123b4b35c9cd6a6d3ce5bcbe94647c47530 (diff) | |
tests: Remove calls to igt_pipe_crc_drain()
Calls to igt_pipe_crc_drain + get_single are already replaced with
igt_pipe_crc_get_current() in patch
https://patchwork.freedesktop.org/patch/240651/?series=47129&rev=1
so removing igt_pipe_crc_drain() shouldn't matter since tests are using
igt_pipe_crc_get_current() which will drain the old junk anyway. Its
double to do drain + get_current(), so calls to drain() can be removed.
Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/319789/?series=64210&rev=1
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/kms_available_modes_crc.c | 3 | ||||
| -rw-r--r-- | tests/kms_cursor_edge_walk.c | 2 |
2 files changed, 0 insertions, 5 deletions
diff --git a/tests/kms_available_modes_crc.c b/tests/kms_available_modes_crc.c index 07772767..786d50e6 100644 --- a/tests/kms_available_modes_crc.c +++ b/tests/kms_available_modes_crc.c @@ -102,7 +102,6 @@ static void generate_comparison_crc_list(data_t *data, igt_output_t *output) igt_plane_set_fb(primary, &data->primary_fb); igt_display_commit2(&data->display, data->commit); - igt_pipe_crc_drain(data->pipe_crc); igt_pipe_crc_get_current(data->gfx_fd, data->pipe_crc, &data->cursor_crc); igt_plane_set_fb(primary, NULL); igt_display_commit2(&data->display, data->commit); @@ -114,7 +113,6 @@ static void generate_comparison_crc_list(data_t *data, igt_output_t *output) igt_plane_set_fb(primary, &data->primary_fb); igt_display_commit2(&data->display, data->commit); - igt_pipe_crc_drain(data->pipe_crc); igt_pipe_crc_get_current(data->gfx_fd, data->pipe_crc, &data->fullscreen_crc); igt_remove_fb(data->gfx_fd, &data->primary_fb); @@ -313,7 +311,6 @@ test_one_mode(data_t* data, igt_output_t *output, igt_plane_t* plane, igt_display_commit2(&data->display, data->commit); igt_wait_for_vblank(data->gfx_fd, pipe); - igt_pipe_crc_drain(data->pipe_crc); igt_pipe_crc_get_current(data->gfx_fd, data->pipe_crc, ¤t_crc); if (plane->type != DRM_PLANE_TYPE_CURSOR) { diff --git a/tests/kms_cursor_edge_walk.c b/tests/kms_cursor_edge_walk.c index 809dca42..87d17e06 100644 --- a/tests/kms_cursor_edge_walk.c +++ b/tests/kms_cursor_edge_walk.c @@ -114,8 +114,6 @@ static void test_edge_pos(data_t *data, int sx, int ex, int y, bool swap_axis) dx = (ex - sx)/XSTEP; - igt_pipe_crc_drain(data->pipe_crc); - i = 0; for (x = sx; xdir * (x - ex) <= 0; x += dx) { |
