projects
/
platform
/
upstream
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb146aa
)
lib/display: Fix assertion in set_plane()
author
Damien Lespiau
<damien.lespiau@intel.com>
Fri, 7 Feb 2014 14:12:44 +0000
(14:12 +0000)
committer
Damien Lespiau
<damien.lespiau@intel.com>
Tue, 11 Feb 2014 13:50:16 +0000
(13:50 +0000)
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>
lib/igt_kms.c
patch
|
blob
|
history
diff --git
a/lib/igt_kms.c
b/lib/igt_kms.c
index
07b0a4e
..
eca0f6d
100644
(file)
--- 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;
}