diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2017-09-07 19:00:55 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2017-09-08 16:52:40 +0300 |
commit | 5426dc0a889a859db93cd5283cabd9ea6df9d5ec (patch) | |
tree | b7a079e30f8e8c0a78eb5cbb22477216dccf6bd2 | |
parent | 8114d960b0658ee65b5ae28edda3e35db91c47c2 (diff) |
lib/kms: Skip rather than fail when a suitable plane can't be found
If the system doesn't have the plane the test wants, let's skip the
test rather than fail it.
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
-rw-r--r-- | lib/igt_kms.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c index 14e2701c..72fde792 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -2035,9 +2035,9 @@ igt_plane_t *igt_pipe_get_plane_type(igt_pipe_t *pipe, int plane_type) break; } - igt_assert_f(plane_idx >= 0 && plane_idx < pipe->n_planes, - "Valid pipe->planes idx not found. plane_idx=%d plane_type=%d n_planes=%d\n", - plane_idx, plane_type, pipe->n_planes); + igt_require_f(plane_idx >= 0 && plane_idx < pipe->n_planes, + "Valid pipe->planes idx not found. plane_idx=%d plane_type=%d n_planes=%d\n", + plane_idx, plane_type, pipe->n_planes); return &pipe->planes[plane_idx]; } |