[igt-dev] [PATCH i-g-t] kms_psr2_su: Skip page-flip tests if FB_DAMAGE_CLIPS not supported

Jouni Högander jouni.hogander at intel.com
Fri Apr 22 06:02:40 UTC 2022


Currently we are seeing failures in ICL platforms due to
missing support for IGT_PLANE_FB_DAMAGE_CLIPS. Skip page-flip
tests if IGT_PLANE_FB_DAMAGE_CLIPS is not supported.

Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/4148

Signed-off-by: Jouni Högander <jouni.hogander at intel.com>
Cc: Petri Latvala <petri.latvala at intel.com>
Cc: José Roberto de Souza <jose.souza at intel.com>
---
 tests/i915/kms_psr2_su.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/i915/kms_psr2_su.c b/tests/i915/kms_psr2_su.c
index 474b1dfd..0ce1f924 100644
--- a/tests/i915/kms_psr2_su.c
+++ b/tests/i915/kms_psr2_su.c
@@ -322,6 +322,13 @@ igt_main
 					 */
 					igt_skip("PSR2 selective fetch is doing full frame fetches for frontbuffer rendering\n");
 				}
+				if (data.op == PAGE_FLIP &&
+				    !igt_plane_has_prop(igt_output_get_plane_type(
+								data.output,
+								DRM_PLANE_TYPE_PRIMARY),
+							IGT_PLANE_FB_DAMAGE_CLIPS)) {
+					igt_skip("FB_DAMAGE_CLIPS not supported\n");
+				}
 				prepare(&data);
 				run(&data);
 				cleanup(&data);
-- 
2.25.1



More information about the igt-dev mailing list