diff options
author | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2018-12-13 16:39:10 +0100 |
---|---|---|
committer | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2019-02-26 09:45:54 +0100 |
commit | ad4b1a45e2baf15db0613137635dde8ac496300a (patch) | |
tree | 794b0df3a0e727ea3906605ef4c1c43be09a3e01 /lib/igt_kms.h | |
parent | 562f51cea4abd49208a7876facb711c1a13b0650 (diff) |
lib/igt_kms: Add helpers to count and iterate planes from output
With helpers to count and iterate among planes of a given type from the
pipe in place, we can use them with the current pipe for the output to
make it possible for tests to use them (the pipe struct is not currently
easily exposed to tests and exposing it adds unnecessary complexity).
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Maxime Ripard <maxime.ripard@bootlin.com>
Diffstat (limited to 'lib/igt_kms.h')
-rw-r--r-- | lib/igt_kms.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/igt_kms.h b/lib/igt_kms.h index df8b07c1..90e1f168 100644 --- a/lib/igt_kms.h +++ b/lib/igt_kms.h @@ -403,6 +403,9 @@ void igt_output_override_mode(igt_output_t *output, drmModeModeInfo *mode); void igt_output_set_pipe(igt_output_t *output, enum pipe pipe); igt_plane_t *igt_output_get_plane(igt_output_t *output, int plane_idx); igt_plane_t *igt_output_get_plane_type(igt_output_t *output, int plane_type); +int igt_output_count_plane_type(igt_output_t *output, int plane_type); +igt_plane_t *igt_output_get_plane_type_index(igt_output_t *output, + int plane_type, int index); igt_output_t *igt_output_from_connector(igt_display_t *display, drmModeConnector *connector); |