[igt-dev] [PATCH i-g-t 9/9] i915/gem_eio: Set modeset for enable pipes
Mohammed Khajapasha
mohammed.khajapasha at intel.com
Wed Jul 1 19:08:43 UTC 2020
Set modeset for enable pipes only in kms test
Signed-off-by: Mohammed Khajapasha <mohammed.khajapasha at intel.com>
---
tests/i915/gem_eio.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/i915/gem_eio.c b/tests/i915/gem_eio.c
index cfc3f668..c5ef61bd 100644
--- a/tests/i915/gem_eio.c
+++ b/tests/i915/gem_eio.c
@@ -851,6 +851,8 @@ static void display_helper(igt_display_t *dpy, int *done)
int pipe;
pipe = rand() % dpy->n_pipes;
+ if (!dpy->pipes[pipe].enabled)
+ continue;
output = igt_get_single_output_for_pipe(dpy, pipe);
if (!output)
continue;
--
2.24.1
More information about the igt-dev
mailing list