summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2014-02-07 14:12:44 +0000
committerDamien Lespiau <damien.lespiau@intel.com>2014-02-11 13:50:16 +0000
commit3027de0a6653c6168fbc12f895a13c7d2a9ee0e2 (patch)
treeb2fd135fc01ad4a32d2bec23792b7e0bd64bfd08 /lib
parentfb146aa7825b8f3a1c490f30b4c3912b7fe8eb6d (diff)
lib/display: Fix assertion in set_plane()
When cycling throuth planes, we still want to reach the cursor plane. We have to special case IGT_PLANE_CURSOR as a shorthand to select the cursor plane (the last plane on the pipe). Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_kms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 07b0a4e3..eca0f6d0 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -1122,7 +1122,7 @@ static igt_plane_t *igt_pipe_get_plane(igt_pipe_t *pipe, enum igt_plane plane)
if (plane == IGT_PLANE_CURSOR)
idx = pipe->n_planes - 1;
else {
- igt_assert_f(plane >= 0 && plane < (pipe->n_planes - 1),
+ igt_assert_f(plane >= 0 && plane < (pipe->n_planes),
"plane=%d\n", plane);
idx = plane;
}