From 59b5487625b537f15533e163728053a6e56a7c57 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 18 Mar 2016 17:33:00 +0000 Subject: [PATCH] lib: kms: add crtc_id to igt_pipe_t Signed-off-by: Lionel Landwerlin Reviewed-by: Matt Roper Signed-off-by: Matt Roper --- lib/igt_kms.c | 1 + lib/igt_kms.h | 1 + 2 files changed, 2 insertions(+) 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 {