From: Jani Nikula <jani.nikula@intel.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>,
igt-dev@lists.freedesktop.org
Subject: Re: [PATCH i-g-t 19/19] lib/kms: Nuke for_each_valid_output_on_pipe()
Date: Wed, 25 Feb 2026 16:06:13 +0200 [thread overview]
Message-ID: <bf862627b376668c360a5566fb324f5279474dc3@intel.com> (raw)
In-Reply-To: <20260225125108.31119-20-ville.syrjala@linux.intel.com>
On Wed, 25 Feb 2026, Ville Syrjala <ville.syrjala@linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> for_each_valid_output_on_pipe() is no unused. Get rid of it.
*now
>
> And with that we also lose the last caller of
> igt_pipe_connector_valid() so nuke that one too.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
> lib/igt_kms.h | 27 ---------------------------
> 1 file changed, 27 deletions(-)
>
> diff --git a/lib/igt_kms.h b/lib/igt_kms.h
> index 8a3919a55e77..fb2597193467 100644
> --- a/lib/igt_kms.h
> +++ b/lib/igt_kms.h
> @@ -670,19 +670,6 @@ static inline bool igt_output_is_connected(igt_output_t *output)
> return false;
> }
>
> -/**
> - * igt_pipe_connector_valid:
> - * @pipe: pipe to check.
> - * @output: #igt_output_t to check.
> - *
> - * Checks whether the given pipe and output can be used together.
> - */
> -static inline bool igt_pipe_connector_valid(enum pipe pipe, igt_output_t *output)
> -{
> - return igt_output_is_connected(output) &&
> - output->config.valid_crtc_index_mask & (1 << (pipe));
> -}
> -
> /**
> * igt_crtc_connector_valid:
> * @crtc: CRTC to check.
> @@ -801,20 +788,6 @@ igt_output_t **__igt_pipe_populate_outputs(igt_display_t *display,
> for_each_if (*__output && \
> ((crtc) = igt_crtc_for_pipe((display), (__output - __outputs)), (output) = *__output, 1))
>
> -/**
> - * for_each_valid_output_on_pipe:
> - * @display: a pointer to an #igt_display_t structure
> - * @pipe: Pipe to enumerate valid outputs over
> - * @output: The enumerated output.
> - *
> - * This for loop is called over all connected @output that can be used
> - * on this @pipe . If there are no valid outputs for this pipe, nothing
> - * happens.
> - */
> -#define for_each_valid_output_on_pipe(display, pipe, output) \
> - for_each_connected_output((display), (output)) \
> - for_each_if (igt_pipe_connector_valid((pipe), (output)))
> -
> /**
> * for_each_valid_output_on_crtc:
> * @display: a pointer to an #igt_display_t structure
--
Jani Nikula, Intel
next prev parent reply other threads:[~2026-02-25 14:06 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-25 12:50 [PATCH i-g-t 00/19] lib/kms: Clean up more of igt_kms API Ville Syrjala
2026-02-25 12:50 ` [PATCH i-g-t 01/19] tests/kms_plane_multiple: Clean up n_planes stuff Ville Syrjala
2026-02-25 12:50 ` [PATCH i-g-t 02/19] tests/kms_async_flips: Remove redundant data.crtc_id Ville Syrjala
2026-02-25 13:58 ` Jani Nikula
2026-02-25 12:50 ` [PATCH i-g-t 03/19] tests/kms_lease: Consolidate igt_crtc_for_pipe() calls Ville Syrjala
2026-02-25 12:50 ` [PATCH i-g-t 04/19] tests/kms: " Ville Syrjala
2026-02-25 12:50 ` [PATCH i-g-t 05/19] lib/kms: Introduce igt_first_crtc_with_single_output() Ville Syrjala
2026-02-25 13:59 ` Jani Nikula
2026-02-25 12:50 ` [PATCH i-g-t 06/19] tests/kms: Use igt_first_crtc_with_single_output() Ville Syrjala
2026-02-25 12:50 ` [PATCH i-g-t 07/19] lib/kms: Introduce and use igt_first_crtc() Ville Syrjala
2026-02-25 14:00 ` Jani Nikula
2026-02-25 12:50 ` [PATCH i-g-t 08/19] tests/kms: Stop using igt_require_pipe() Ville Syrjala
2026-02-25 12:50 ` [PATCH i-g-t 09/19] lib/kms: Replace get_num_scalers() with igt_crtc_num_scalers() Ville Syrjala
2026-02-25 12:50 ` [PATCH i-g-t 10/19] lib/kms: Pass igt_crtc_t* to igt_max_bpc_constraint() Ville Syrjala
2026-02-25 12:51 ` [PATCH i-g-t 11/19] lib/kms: Introduce for_each_plane_on_crtc() Ville Syrjala
2026-02-25 12:51 ` [PATCH i-g-t 12/19] tests/kms: Use for_each_plane_on_crtc() Ville Syrjala
2026-02-25 13:53 ` Jani Nikula
2026-02-25 12:51 ` [PATCH i-g-t 13/19] lib/kms: Nuke for_each_plane_on_pipe() Ville Syrjala
2026-02-25 12:51 ` [PATCH i-g-t 14/19] tests/kms: Switch to for_each_valid_output_on_crtc_local() Ville Syrjala
2026-02-25 12:51 ` [PATCH i-g-t 15/19] tests/kms: Replace igt_pipe_connector_valid() with igt_crtc_connector_valid() Ville Syrjala
2026-02-25 12:51 ` [PATCH i-g-t 16/19] lib/kms: Intreoduce for_each_valid_output_on_crtc() Ville Syrjala
2026-02-25 12:51 ` [PATCH i-g-t 17/19] tests/intel/kms_frontbuffer_tracking: Use for_each_valid_output_on_crtc() Ville Syrjala
2026-02-25 12:51 ` [PATCH i-g-t 18/19] tests/kms: " Ville Syrjala
2026-02-25 12:51 ` [PATCH i-g-t 19/19] lib/kms: Nuke for_each_valid_output_on_pipe() Ville Syrjala
2026-02-25 14:06 ` Jani Nikula [this message]
2026-02-25 14:07 ` [PATCH i-g-t 00/19] lib/kms: Clean up more of igt_kms API Jani Nikula
2026-02-25 23:34 ` ✗ Xe.CI.BAT: failure for " Patchwork
2026-02-26 0:05 ` ✓ i915.CI.BAT: success " Patchwork
2026-02-26 1:57 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-02-26 22:06 ` ✓ Xe.CI.BAT: success for lib/kms: Clean up more of igt_kms API (rev2) Patchwork
2026-02-26 22:09 ` ✓ i915.CI.BAT: " Patchwork
2026-02-27 2:55 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-02-27 4:24 ` ✗ i915.CI.Full: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bf862627b376668c360a5566fb324f5279474dc3@intel.com \
--to=jani.nikula@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=ville.syrjala@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox