From d98698cd697cd6d712c501a32855c63bb8e07a09 Mon Sep 17 00:00:00 2001 From: Ville Syrjälä Date: Thu, 7 Sep 2017 18:10:26 +0300 Subject: tests/kms_draw_crc: Skip mmap_wc tests if the platforms doesn't support mmap_wc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Chris Wilson Signed-off-by: Ville Syrjälä --- tests/kms_draw_crc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/kms_draw_crc.c') diff --git a/tests/kms_draw_crc.c b/tests/kms_draw_crc.c index 906d89f9..260950c7 100644 --- a/tests/kms_draw_crc.c +++ b/tests/kms_draw_crc.c @@ -161,6 +161,8 @@ static void draw_method_subtest(enum igt_draw_method method, if (tiling == LOCAL_I915_FORMAT_MOD_Y_TILED) igt_require(intel_gen(intel_get_drm_devid(drm_fd)) >= 9); + igt_skip_on(method == IGT_DRAW_MMAP_WC && !gem_mmap__has_wc(drm_fd)); + /* Use IGT_DRAW_MMAP_GTT on an untiled buffer as the parameter for * comparison. Cache the value so we don't recompute it for every single * subtest. */ -- cgit v1.2.3