[PATCH i-g-t v5 8/8] benchmarks/kms_fb_stress: Create a benchmark for formats

Arthur Grillo arthurgrillo at riseup.net
Mon Apr 22 22:18:23 UTC 2024


Create a benchmark that tests the performance of each supported format
for the primary plane.

For VKMS, it tests the performance of the conversion of formats to/from
the ARGB1616161 baseline format.

Signed-off-by: Arthur Grillo <arthurgrillo at riseup.net>
---
 benchmarks/kms_fb_stress.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/benchmarks/kms_fb_stress.c b/benchmarks/kms_fb_stress.c
index d2d6b3e65eae..5535339cd287 100644
--- a/benchmarks/kms_fb_stress.c
+++ b/benchmarks/kms_fb_stress.c
@@ -295,6 +295,14 @@ igt_main
 
 	}
 
+	igt_subtest("formats") {
+		data.use_overlay = false;
+		for (size_t i = 0; i < data.kms.primary.base->format_mod_count; i++) {
+			data.kms.primary.format = data.kms.primary.base->formats[i];
+			data.kms.writeback.format = data.kms.primary.base->formats[i];
+			stress_driver(&data);
+		}
+	}
 
 	igt_fixture {
 		igt_display_fini(&data.display);

-- 
2.44.0



More information about the igt-dev mailing list