[igt-dev] [PATCH igt] igt/kms_frontbuffer_tracking: Use smallest mode by default

Chris Wilson chris at chris-wilson.co.uk
Thu Feb 15 10:30:35 UTC 2018


A situation we have in the CI farm is that the only machine capable of
performing PSR also happens to have a large panel, too large for PSR to
handle. Flip the small-mode option to enable using the smallest mode by
default, and selecting the preferred mode as the option.

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
 tests/kms_frontbuffer_tracking.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index 6d3fe8d0..2468ff6b 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -267,7 +267,7 @@ struct {
 	.fbc_check_compression = true,
 	.fbc_check_last_action = true,
 	.no_edp = false,
-	.small_modes = false,
+	.small_modes = true,
 	.show_hidden= false,
 	.step = 0,
 	.only_pipes = PIPE_COUNT,
@@ -3398,7 +3398,7 @@ static int opt_handler(int option, int option_index, void *data)
 		opt.no_edp = true;
 		break;
 	case 'm':
-		opt.small_modes = true;
+		opt.small_modes = false;
 		break;
 	case 'i':
 		opt.show_hidden = true;
@@ -3593,7 +3593,7 @@ int main(int argc, char *argv[])
 		{ "no-fbc-compression-check", 0, 0, 'o'},
 		{ "no-fbc-action-check",      0, 0, 'a'},
 		{ "no-edp",                   0, 0, 'e'},
-		{ "use-small-modes",          0, 0, 'm'},
+		{ "use-preferred-modes",      0, 0, 'm'},
 		{ "show-hidden",              0, 0, 'i'},
 		{ "step",                     0, 0, 't'},
 		{ "shared-fb-x",              1, 0, 'x'},
-- 
2.16.1



More information about the igt-dev mailing list