diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-05-23 15:44:40 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-05-23 15:45:01 +0100 |
commit | cf279439727b0b32e268698e072045e6f98abba2 (patch) | |
tree | 2bb1d83d7f7e9beefd2888c5d3a0208967d72d2c /tests/gem_exec_latency.c | |
parent | a25e83f3c7aa1a0a8a1774d28afb6dbda8ccbcbc (diff) |
igt/gem_exec_latency: Check for WC mmaps before use
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_exec_latency.c')
-rw-r--r-- | tests/gem_exec_latency.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/gem_exec_latency.c b/tests/gem_exec_latency.c index dd6703f4..f86dfcb5 100644 --- a/tests/gem_exec_latency.c +++ b/tests/gem_exec_latency.c @@ -444,7 +444,8 @@ igt_main igt_fixture { device = drm_open_driver(DRIVER_INTEL); igt_require_gem(device); - intel_register_access_init(intel_get_pci_device(), false, device); + gem_require_mmap_wc(device); + print_welcome(device); ring_size = measure_ring_size(device); @@ -453,6 +454,8 @@ igt_main ring_size -= 8; /* leave some spare */ if (ring_size > 1024) ring_size = 1024; + + intel_register_access_init(intel_get_pci_device(), false, device); } igt_subtest_group { |