[igt-dev] [PATCH i-g-t 2/2] tests/kms_plane_multiple: Do not iterate over output twice
Daniel Vetter
daniel at ffwll.ch
Mon Mar 11 14:06:13 UTC 2019
On Mon, Mar 11, 2019 at 03:31:50PM +0200, Arkadiusz Hiler wrote:
> test_plane_position already iterates over outputs using
> for_each_valid_output_on_pipe so there is no need to do that twice,
> especially with unused *output.
>
> Cc: Mika Kahola <mika.kahola at intel.com>
> Cc: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
> Cc: Martin Peres <martin.peres at linux.intel.com>
> Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler at intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter at ffwll.ch>
> ---
> tests/kms_plane_multiple.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/tests/kms_plane_multiple.c b/tests/kms_plane_multiple.c
> index 617054d9..7d8bc325 100644
> --- a/tests/kms_plane_multiple.c
> +++ b/tests/kms_plane_multiple.c
> @@ -341,19 +341,15 @@ run_tests_for_pipe(data_t *data, enum pipe pipe)
> }
>
> igt_subtest_f("atomic-pipe-%s-tiling-x", kmstest_pipe_name(pipe))
> - for_each_valid_output_on_pipe(&data->display, pipe, output)
> test_plane_position(data, pipe, LOCAL_I915_FORMAT_MOD_X_TILED);
>
> igt_subtest_f("atomic-pipe-%s-tiling-y", kmstest_pipe_name(pipe))
> - for_each_valid_output_on_pipe(&data->display, pipe, output)
> test_plane_position(data, pipe, LOCAL_I915_FORMAT_MOD_Y_TILED);
>
> igt_subtest_f("atomic-pipe-%s-tiling-yf", kmstest_pipe_name(pipe))
> - for_each_valid_output_on_pipe(&data->display, pipe, output)
> test_plane_position(data, pipe, LOCAL_I915_FORMAT_MOD_Yf_TILED);
>
> igt_subtest_f("atomic-pipe-%s-tiling-none", kmstest_pipe_name(pipe))
> - for_each_valid_output_on_pipe(&data->display, pipe, output)
> test_plane_position(data, pipe, LOCAL_DRM_FORMAT_MOD_NONE);
> }
>
> --
> 2.20.1
>
> _______________________________________________
> igt-dev mailing list
> igt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
More information about the igt-dev
mailing list