[PATCH i-g-t 31/37] tests/kms_plane: Skip 10bpc formats with media compression

Ville Syrjala ville.syrjala at linux.intel.com
Tue Jul 2 23:28:11 UTC 2024


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

The VEBOX just hangs if we try to use a 10bpc format.
Skip 10bpc with media compression as that would require
using the VEBOX.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 tests/kms_plane.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/kms_plane.c b/tests/kms_plane.c
index 8b6fc1cf6aa4..6b5fb7266ef3 100644
--- a/tests/kms_plane.c
+++ b/tests/kms_plane.c
@@ -1011,6 +1011,11 @@ static bool skip_format_mod(data_t *data,
 	    modifier == DRM_FORMAT_MOD_QCOM_COMPRESSED)
 		return true;
 
+	/* VEBOX just hangs with an actual 10bpc format */
+	if (igt_fb_is_gen12_mc_ccs_modifier(modifier) &&
+	    igt_reduce_format(format) == DRM_FORMAT_XRGB2101010)
+		return true;
+
 	/* test each format "class" only once in non-extended tests */
 	if (!data->extended && modifier != DRM_FORMAT_MOD_LINEAR) {
 		struct format_mod rf = {
-- 
2.44.2



More information about the igt-dev mailing list