[Intel-gfx] [PATCH igt 06/28] lib/display: Add an accessor to retrieve the number of pipes

Damien Lespiau damien.lespiau at intel.com
Fri Feb 7 15:48:50 CET 2014


Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
 lib/igt_kms.c | 5 +++++
 lib/igt_kms.h | 1 +
 2 files changed, 6 insertions(+)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index e3e902a..38ee82b 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -934,6 +934,11 @@ void igt_display_set_verbose(igt_display_t *display, bool verbose)
 	display->verbose = verbose;
 }
 
+int igt_display_get_n_pipes(igt_display_t *display)
+{
+	return display->n_pipes;
+}
+
 static void igt_output_fini(igt_output_t *output)
 {
 	if (output->valid)
diff --git a/lib/igt_kms.h b/lib/igt_kms.h
index 1d06767..bb74fc4 100644
--- a/lib/igt_kms.h
+++ b/lib/igt_kms.h
@@ -150,6 +150,7 @@ void igt_display_init(igt_display_t *display, int drm_fd);
 void igt_display_fini(igt_display_t *display);
 int  igt_display_commit(igt_display_t *display);
 void igt_display_set_verbose(igt_display_t *display, bool verbose);
+int  igt_display_get_n_pipes(igt_display_t *display);
 
 const char *igt_output_name(igt_output_t *output);
 drmModeModeInfo *igt_output_get_mode(igt_output_t *output);
-- 
1.8.3.1




More information about the Intel-gfx mailing list