summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammed Khajapasha <mohammed.khajapasha@intel.com>2020-07-20 20:50:43 +0530
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2020-07-21 12:58:27 +0300
commitf5f6645bb35f61c023ab9e2f376679a2237add4f (patch)
treea2c9c34e6e07007d6a0010b8b2956665bd100d98
parent468995d8c9b6fbd66df1bf29641f9b66cb449bff (diff)
i915/gem_eio: Set modeset for enable pipes
Set modeset for enable pipes only in kms test Signed-off-by: Mohammed Khajapasha <mohammed.khajapasha@intel.com> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
-rw-r--r--tests/i915/gem_eio.c2
1 files changed, 2 insertions, 0 deletions
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;