Skip to contentSkip to conversation

lib/igt_kms: Skip joiner exception modes in boundary non-joiner search

PATCH Reddy Guddati, Santhosh 1 participant 1 message Aug 4 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

Reddy Guddati, Santhosh

author Reviewed-by
#2 lore raw
Quoted 5 lines · Sowmiya S

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.

Quoted 18 lines
---
  lib/igt_kms.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
lib/igt_kms.c +2 -1
index d591e696d..2475f0916 100644
@@ -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;
  		}