[igt-dev] [i-g-t] tests/intel/kms_fbt: Convert basic test to dynamic
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Mon Sep 11 09:27:31 UTC 2023
Convert basic test to dynamic to cover all tiling methods.
Cc: Jouni Högander <jouni.hogander at intel.com>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
tests/intel/kms_frontbuffer_tracking.c | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/tests/intel/kms_frontbuffer_tracking.c b/tests/intel/kms_frontbuffer_tracking.c
index 40b3d4cb5..059d43519 100644
--- a/tests/intel/kms_frontbuffer_tracking.c
+++ b/tests/intel/kms_frontbuffer_tracking.c
@@ -5532,10 +5532,19 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
t.format = FORMAT_DEFAULT;
t.flip = FLIP_PAGEFLIP;
t.tiling = opt.tiling;
- igt_subtest("basic") {
+ igt_subtest_with_dynamic("basic") {
if (!is_xe_device(drm.fd))
igt_require_gem(drm.fd);
- basic_subtest(&t);
+
+ if (t.tiling != TILING_DEFAULT) {
+ igt_dynamic_f("%s", tiling_str(t.tiling))
+ basic_subtest(&t);
+ } else {
+ for (t.tiling = TILING_LINEAR; t.tiling < TILING_COUNT; t.tiling++) {
+ igt_dynamic_f("%s", tiling_str(t.tiling))
+ basic_subtest(&t);
+ }
+ }
}
igt_fixture
--
2.40.0
More information about the igt-dev
mailing list