[igt-dev] [PATCH i-g-t 2/2] tests/kms_ccs: Clean up output selection
Arkadiusz Hiler
arkadiusz.hiler at intel.com
Thu Jul 4 13:30:41 UTC 2019
Use function that is meant to get the output instead of relying on a
magic for-loop.
Cc: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan at intel.com>
Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler at intel.com>
---
tests/kms_ccs.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/tests/kms_ccs.c b/tests/kms_ccs.c
index 5a1f940e..a834b2f5 100644
--- a/tests/kms_ccs.c
+++ b/tests/kms_ccs.c
@@ -302,12 +302,8 @@ static int __test_output(data_t *data)
igt_display_t *display = &data->display;
int i, valid_tests = 0;
- igt_display_require_output_on_pipe(display, data->pipe);
-
- /* Sets data->output with a valid output. */
- for_each_valid_output_on_pipe(display, data->pipe, data->output) {
- break;
- }
+ data->output = igt_get_single_output_for_pipe(display, data->pipe);
+ igt_require(data->output);
igt_output_set_pipe(data->output, data->pipe);
--
2.21.0
More information about the igt-dev
mailing list