[igt-dev] [PATCH i-g-t] tests/kms_big_fb: Fix hw stride length tests
Vidya Srinivas
vidya.srinivas at intel.com
Fri Jul 23 09:38:44 UTC 2021
We see the HW stride length tests are crashing
when run in sequence. Individually, they PASS.
This is happening due to missing data.ibb creation
before the test_scanout. Patch fixes the same.
Signed-off-by: Lin Charlton <charlton.lin at intel.com>
Signed-off-by: Vidya Srinivas <vidya.srinivas at intel.com>
---
tests/kms_big_fb.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/kms_big_fb.c b/tests/kms_big_fb.c
index c6f374bdd073..91439ceb34b6 100644
--- a/tests/kms_big_fb.c
+++ b/tests/kms_big_fb.c
@@ -978,7 +978,9 @@ igt_main
igt_require(data.format == DRM_FORMAT_C8 ||
igt_fb_supported_format(data.format));
igt_require(igt_display_has_format_mod(&data.display, data.format, data.modifier));
+ data.ibb = intel_bb_create(data.drm_fd, 4096);
test_scanout(&data);
+ intel_bb_destroy(data.ibb);
}
// async flip doesn't support linear fbs.
@@ -994,7 +996,9 @@ igt_main
igt_require(igt_display_has_format_mod(&data.display, data.format, data.modifier));
igt_require_f(data.async_flip_support, "Async Flip is not supported\n");
data.max_hw_fb_width = min(data.hw_stride / (formats[j].bpp >> 3), data.max_fb_width);
+ data.ibb = intel_bb_create(data.drm_fd, 4096);
test_scanout(&data);
+ intel_bb_destroy(data.ibb);
}
data.async_flip_test = false;
}
--
2.32.0
More information about the igt-dev
mailing list