summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/igt_kms.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/igt_kms.h b/lib/igt_kms.h
index 53856879..fb0e66ab 100644
--- a/lib/igt_kms.h
+++ b/lib/igt_kms.h
@@ -241,6 +241,9 @@ void igt_wait_for_vblank(int drm_fd, enum pipe pipe);
for (int i__ = 0; i__ < (display)->n_outputs; i__++) \
if ((output = &(display)->outputs[i__]), output->valid)
+#define for_each_pipe(display, pipe) \
+ for (pipe = 0; pipe < igt_display_get_n_pipes(display); pipe++) \
+
/*
* Can be used with igt_output_set_pipe() to mean we don't care about the pipe
* that should drive this output