[PATCH v2 1/1] tests/kms_plane: Restricting number of pixel formats for simulation

Samala, Pranay pranay.samala at intel.com
Wed Feb 14 08:53:28 UTC 2024


The pixel-format subtest runs on all pixel formats, reducing it to single
format to reduce execution time on simulation.

Cc: B S, Karthik <karthik.b.s at intel.com>
Cc: B, Jeevan <jeevan.b at intel.com>

Signed-off-by: Samala, Pranay <pranay.samala at intel.com>
---
 tests/kms_plane.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/kms_plane.c b/tests/kms_plane.c
index 406aecc04..fbffc3cb0 100644
--- a/tests/kms_plane.c
+++ b/tests/kms_plane.c
@@ -1081,6 +1081,9 @@ static bool test_format_plane(data_t *data, enum pipe pipe,
 		    f.modifier == ref.modifier)
 			continue;
 
+		if (f.format != DRM_FORMAT_XRGB8888 && igt_run_in_simulation())
+			continue;
+
 		/* test each format "class" only once in non-extended tests */
 		if (!data->extended && f.modifier != DRM_FORMAT_MOD_LINEAR) {
 			struct format_mod rf = {
-- 
2.34.1



More information about the igt-dev mailing list