Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/kms_flip_scaled: on mode selection choose mode with lowest vertical refresh
@ 2021-02-01 18:40 Juha-Pekka Heikkila
  2021-02-01 19:36 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Juha-Pekka Heikkila @ 2021-02-01 18:40 UTC (permalink / raw)
  To: igt-dev

Use mode with lowest vertical refresh to keep needed cdclk down.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
---
 tests/kms_flip_scaled_crc.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tests/kms_flip_scaled_crc.c b/tests/kms_flip_scaled_crc.c
index f77484063..c41709b68 100644
--- a/tests/kms_flip_scaled_crc.c
+++ b/tests/kms_flip_scaled_crc.c
@@ -174,9 +174,12 @@ static void test_flip_to_scaled(data_t *data, uint32_t index, enum pipe pipe,
 	for (int i = 0; i < output->config.connector->count_modes; i++) {
 		if (output->config.connector->modes[i].hdisplay == data->attemptmodewidth &&
 		   output->config.connector->modes[i].vdisplay == data->attemptmodeheight) {
+			if (modetoset &&
+			    modetoset->vrefresh < output->config.connector->modes[i].vrefresh)
+				continue;
+
 			modetoset = &output->config.connector->modes[i];
-			break;
-		   }
+		}
 	}
 
 	if (!modetoset)
-- 
2.28.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-02-02 11:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-01 18:40 [igt-dev] [PATCH i-g-t] tests/kms_flip_scaled: on mode selection choose mode with lowest vertical refresh Juha-Pekka Heikkila
2021-02-01 19:36 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-02-02  1:20 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2021-02-02 11:03 ` [igt-dev] [PATCH i-g-t] " Kahola, Mika

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox