[igt-dev] [PATCH] tests/kms: Skip kms test cases for DCC and DCC_RETILE
Alex Hung
alex.hung at amd.com
Wed Apr 6 17:06:59 UTC 2022
Skip the KMS test cases for planes that has modifiers with
DCC and DCC_RETILE on AMDGPU.
Signed-off-by: Alex Hung <alex.hung at amd.com>
---
tests/kms_plane.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/tests/kms_plane.c b/tests/kms_plane.c
index 137f23a8..1a71822a 100644
--- a/tests/kms_plane.c
+++ b/tests/kms_plane.c
@@ -1004,6 +1004,14 @@ static bool skip_plane(data_t *data, igt_plane_t *plane)
{
int index = plane->index;
+ for (int i = 0; i < plane->format_mod_count; i++) {
+ if (AMD_FMT_MOD_GET(DCC, plane->modifiers[i]) ||
+ AMD_FMT_MOD_GET(DCC_RETILE, plane->modifiers[i])) {
+ igt_debug("Skipping planes with DCC or DCC_RETILE\n");
+ return true;
+ }
+ }
+
if (data->extended)
return false;
--
2.35.1
More information about the igt-dev
mailing list