diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-12-23 12:35:28 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-12-23 12:39:19 +0000 |
commit | 05dbccbbc2e57403730134580c4110bde85576f4 (patch) | |
tree | 3d979b96681da2399c3bb0514d6e474dacb45ed3 /tests/i915/gem_tiled_wb.c | |
parent | 277fcf91081233596f849a8237026827e94f851a (diff) |
i915/gem_tiled_w[bc]: Require some fences
In these tests we set the object via the GTT with an aperture detiling
fence, and then read them back with WC/WB cpu maps, verifying that the
read back is a linear view of the tiled buffer. These tests require both
GTT and a fence through which to detile, and are simply irrelevant if
there is no aperture detiling on the platform.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'tests/i915/gem_tiled_wb.c')
-rw-r--r-- | tests/i915/gem_tiled_wb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/i915/gem_tiled_wb.c b/tests/i915/gem_tiled_wb.c index b7f352fc..aedec4d4 100644 --- a/tests/i915/gem_tiled_wb.c +++ b/tests/i915/gem_tiled_wb.c @@ -139,6 +139,8 @@ igt_simple_main uint32_t handle; fd = drm_open_driver(DRIVER_INTEL); + gem_require_mappable_ggtt(fd); + igt_require(gem_available_fences(fd) > 0); handle = create_bo(fd); get_tiling(fd, handle, &tiling, &swizzle); |