summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>2016-03-18 17:33:00 +0000
committerMatt Roper <matthew.d.roper@intel.com>2016-03-21 11:45:45 -0700
commit59b5487625b537f15533e163728053a6e56a7c57 (patch)
tree3e5f95a52085bc21af00b78a1213d18380edf19a /lib
parent8520037e5479c1b9ca20a560bbc695d2969d4e1b (diff)
lib: kms: add crtc_id to igt_pipe_t
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_kms.c1
-rw-r--r--lib/igt_kms.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 73c065a3..c6a38262 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -1214,6 +1214,7 @@ void igt_display_init(igt_display_t *display, int drm_fd)
int p = IGT_PLANE_2;
int j, type;
+ pipe->crtc_id = resources->crtcs[i];
pipe->display = display;
pipe->pipe = i;
diff --git a/lib/igt_kms.h b/lib/igt_kms.h
index 342db51e..0a2d1b62 100644
--- a/lib/igt_kms.h
+++ b/lib/igt_kms.h
@@ -256,6 +256,7 @@ struct igt_pipe {
uint64_t background; /* Background color MSB BGR 16bpc LSB */
uint32_t background_changed : 1;
uint32_t background_property;
+ uint32_t crtc_id;
};
typedef struct {