[igt-dev] [PATCH i-g-t 5/6] tests/kms_flip_scaled_crc: Check that the plane supports the format+modifier
Ville Syrjala
ville.syrjala at linux.intel.com
Fri Apr 16 17:53:11 UTC 2021
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
On some gen9 platforms pipe C does not support compression
at all. Skip the test in that case.
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
tests/kms_flip_scaled_crc.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/kms_flip_scaled_crc.c b/tests/kms_flip_scaled_crc.c
index e94f083c5b9d..88919de2f426 100644
--- a/tests/kms_flip_scaled_crc.c
+++ b/tests/kms_flip_scaled_crc.c
@@ -143,6 +143,12 @@ static void test_flip_to_scaled(data_t *data, uint32_t index, enum pipe pipe,
igt_output_set_pipe(output, pipe);
primary = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY);
+ if (!igt_plane_has_format_mod(primary, data->small_fb.drm_format,
+ data->small_fb.modifier) ||
+ !igt_plane_has_format_mod(primary, data->big_fb.drm_format,
+ data->big_fb.modifier))
+ return;
+
igt_display_commit_atomic(&data->display, DRM_MODE_ATOMIC_ALLOW_MODESET,
NULL);
if (data->pipe_crc) {
--
2.26.3
More information about the igt-dev
mailing list