aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Paul <seanpaul@chromium.org>2015-06-19 13:34:14 -0400
committerDaniel Thompson <daniel.thompson@linaro.org>2015-10-23 12:24:51 +0100
commita2cc459dfa977957cbbfdac90b8c655513b0bc8a (patch)
treedba1eba2b4a3c490a6983fd2cbcf7f15ac01de6a
parent2bcdd3be4dcf0b8377684d78b607bd0ed9033be8 (diff)
Set crtc ACTIVE property on modeset
Change-Id: Ia676be720855de5ff1facf227187bf02368a40b7 Signed-off-by: Sean Paul <seanpaul@chromium.org>
-rw-r--r--tests/planetest/dev.c3
-rw-r--r--tests/planetest/dev.h1
-rw-r--r--tests/planetest/modeset.c2
3 files changed, 5 insertions, 1 deletions
diff --git a/tests/planetest/dev.c b/tests/planetest/dev.c
index feea7173..f5d67614 100644
--- a/tests/planetest/dev.c
+++ b/tests/planetest/dev.c
@@ -155,8 +155,9 @@ struct sp_dev *create_sp_dev(void)
}
dev->crtcs[i].mode_pid = get_prop_id(dev, props, "MODE_ID");
+ dev->crtcs[i].active_pid = get_prop_id(dev, props, "ACTIVE");
drmModeFreeObjectProperties(props);
- if (!dev->crtcs[i].mode_pid)
+ if (!dev->crtcs[i].mode_pid || !dev->crtcs[i].active_pid)
goto err;
}
diff --git a/tests/planetest/dev.h b/tests/planetest/dev.h
index e1e99eb3..225cf4c5 100644
--- a/tests/planetest/dev.h
+++ b/tests/planetest/dev.h
@@ -38,6 +38,7 @@ struct sp_crtc {
int pipe;
int num_planes;
uint32_t mode_pid;
+ uint32_t active_pid;
};
struct sp_dev {
diff --git a/tests/planetest/modeset.c b/tests/planetest/modeset.c
index 8413a898..c61fd372 100644
--- a/tests/planetest/modeset.c
+++ b/tests/planetest/modeset.c
@@ -35,6 +35,8 @@ static int set_crtc_mode(struct sp_dev *dev, struct sp_crtc *crtc,
ret = drmModePropertySetAdd(pset, crtc->crtc->crtc_id,
crtc->mode_pid, create_blob.blob_id) ||
+ drmModePropertySetAdd(pset, crtc->crtc->crtc_id,
+ crtc->active_pid, 1) ||
drmModePropertySetAdd(pset, conn->conn->connector_id,
conn->crtc_id_pid, crtc->crtc->crtc_id);
if (ret) {