Re: [PATCH i-g-t v2 2/2] lib/igt_kms: Skip joiner exception modes in boundary non-joiner search

"Reddy Guddati, Santhosh" <[email protected]> Tue, 4 Aug 2026 11:32:35 +0530
Newsgroups org.freedesktop.lists.igt-dev
Message-ID <[email protected]>

On 27-07-2026 11:33, Sowmiya S wrote:
> Fix intel_boundary_non_joiner_mode_found() to skip exception modes,
> preventing test_basic_max_non_joiner from incorrectly selecting a
> joiner-required mode as a non-joiner boundary mode.
> 
> Signed-off-by: Sowmiya S <[email protected]>
Reviewed-by: Santhosh Reddy Guddati <[email protected]>
> ---
>   lib/igt_kms.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/lib/igt_kms.c b/lib/igt_kms.c
> index d591e696d..2475f0916 100644
> --- a/lib/igt_kms.c
> +++ b/lib/igt_kms.c
> @@ -7192,7 +7192,8 @@ bool intel_boundary_non_joiner_mode_found(int drm_fd, drmModeConnector *connecto
>   		drmModeModeInfo *current_mode = &connector->modes[i];
>   
>   		if (current_mode->hdisplay == max_hdisplay &&
> -		    current_mode->clock < max_dotclock) {
> +		    current_mode->clock < max_dotclock &&
> +		    !mode_needs_joiner_exception(drm_fd, current_mode)) {
>   			*mode = *current_mode;
>   			return true;
>   		}