[igt-dev] [PATCH 07/10] tests/kms_frontbuffer_tracking: Skip set tiling calls if not supported
Vanshidhar Konda
vanshidhar.r.konda at intel.com
Wed Dec 18 05:59:22 UTC 2019
Skip the method that is setting tiling with invalid strides if the
hardware does not support HW for tiling/de-tiling.
Signed-off-by: Vanshidhar Konda <vanshidhar.r.konda at intel.com>
---
tests/kms_frontbuffer_tracking.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index ae3b087e..89023bbe 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -2833,7 +2833,8 @@ static void badstride_subtest(const struct test_mode *t)
struct modeset_params *params = pick_params(t);
int rc;
- try_invalid_strides();
+ if (gem_has_legacy_hw_tiling(drm.fd))
+ try_invalid_strides();
prepare_subtest(t, NULL);
--
2.24.0
More information about the igt-dev
mailing list