mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-19 13:56:23 +00:00
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>
This commit is contained in:
parent
fb146aa782
commit
3027de0a66
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user