[Intel-gfx] [PATCH i-g-t 4/5] tests/kms_draw_crc: Skip mmap_wc tests if the platforms doesn't support mmap_wc

ville.syrjala at linux.intel.com ville.syrjala at linux.intel.com
Thu Sep 7 16:11:19 UTC 2017


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 tests/kms_draw_crc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/kms_draw_crc.c b/tests/kms_draw_crc.c
index 906d89f9b77d..260950c76e00 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. */
-- 
2.13.5



More information about the Intel-gfx mailing list