[igt-dev] [PATCH i-g-t 4/8] tests/kms_lease: Adjsut to universal_planes uapi changes
Daniel Vetter
daniel.vetter at ffwll.ch
Fri Nov 2 20:53:46 UTC 2018
We need to also ask for a plane when universal planes is enabled,
which the igt_display library does by default.
Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
tests/kms_lease.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/kms_lease.c b/tests/kms_lease.c
index 048e5203d2a5..f4e1082cbb2a 100644
--- a/tests/kms_lease.c
+++ b/tests/kms_lease.c
@@ -246,6 +246,10 @@ static int make_lease(data_t *data, lease_t *lease)
object_ids[mcl.object_count++] = data->connector_id;
object_ids[mcl.object_count++] = data->crtc_id;
+ /* We use universal planes, must add the primary plane */
+ object_ids[mcl.object_count++] =
+ igt_pipe_get_plane_type(&data->master.display.pipes[data->pipe],
+ DRM_PLANE_TYPE_PRIMARY)->drm_plane->plane_id;
ret = create_lease(data->master.fd, &mcl);
--
2.14.4
More information about the igt-dev
mailing list