summaryrefslogtreecommitdiff
path: root/tests/kms_frontbuffer_tracking.c
diff options
context:
space:
mode:
authorVanshidhar Konda <vanshidhar.r.konda@intel.com>2019-12-18 11:39:12 -0800
committerImre Deak <imre.deak@intel.com>2020-02-13 10:20:45 +0200
commit08556c5dede85ba18eb29345000fcde413254b4f (patch)
tree438a668f6a3ba6391157538293aa1e42cb1714a5 /tests/kms_frontbuffer_tracking.c
parentca614f87196204fbd19b69e691360d8049eccfe0 (diff)
tests/kms_frontbuffer_tracking: Skip set tiling calls if not supported
Skip the method that is setting tiling with invalid strides if the hardware does not support HW for tiling/de-tiling. v2: - Use gem_available_fences() to check for HW detiling. Cc: Ashutosh Dixit <ashutosh.dixit@intel.com> Cc: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Vanshidhar Konda <vanshidhar.r.konda@intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Diffstat (limited to 'tests/kms_frontbuffer_tracking.c')
-rw-r--r--tests/kms_frontbuffer_tracking.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index 9c2c3a5d..724f5d16 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_available_fences(drm.fd))
+ try_invalid_strides();
prepare_subtest(t, NULL);