From 9eff6b735ce70ec11034859acb6b9337ae26e89c Mon Sep 17 00:00:00 2001 From: Zbigniew Kempczyński Date: Thu, 30 Jan 2020 16:17:57 +0100 Subject: i915/gem_tiled_.*blits: skip the tests on newer gens MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Skip the tests on newer gens when no fences are available and gem_set_tiling() cannot succeed. Note that the primary purpose of these tests is to ensure that the tiling remains consistent across movement of the buffers in the GTT due to aperture thrashing. As such we would be much better served by a small selftest to verify position-independent tiling of both physical and virtual addressing (and where the HW doesn't have such position-independent tiling, we check we either fixup the swizzling across relocations, or prevent such relocations.) Signed-off-by: Zbigniew Kempczyński Cc: Chris Wilson Reviewed-by: Chris Wilson Signed-off-by: Chris Wilson --- tests/i915/gem_tiled_blits.c | 1 + tests/i915/gem_tiled_fence_blits.c | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/i915/gem_tiled_blits.c b/tests/i915/gem_tiled_blits.c index df0699f3..ba0920da 100644 --- a/tests/i915/gem_tiled_blits.c +++ b/tests/i915/gem_tiled_blits.c @@ -204,6 +204,7 @@ igt_main fd = drm_open_driver(DRIVER_INTEL); igt_require_gem(fd); gem_require_blitter(fd); + gem_require_mappable_ggtt(fd); bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); drm_intel_bufmgr_gem_enable_reuse(bufmgr); diff --git a/tests/i915/gem_tiled_fence_blits.c b/tests/i915/gem_tiled_fence_blits.c index 93c79dc2..62fd1328 100644 --- a/tests/i915/gem_tiled_fence_blits.c +++ b/tests/i915/gem_tiled_fence_blits.c @@ -214,6 +214,7 @@ igt_main fd = drm_open_driver(DRIVER_INTEL); igt_require_gem(fd); gem_require_blitter(fd); + gem_require_mappable_ggtt(fd); } igt_subtest("basic") -- cgit v1.2.3