tests/gem_storedw_batches_loop: add subtest for cached mappings

v2:
- add a subtest for uncached mappings too for LLC platforms where the
  default is cached mapping (Chris)

Signed-off-by: Imre Deak <imre.deak@intel.com>
This commit is contained in:
Imre Deak 2015-06-08 19:08:06 +03:00
parent c5a6147a1b
commit 6b418f0264

View File

@ -169,6 +169,22 @@ igt_main
store_dword_loop(5, SECURE_DISPATCH);
}
igt_subtest("cached-mapping") {
gem_set_caching(fd, target_bo->handle, 1);
store_dword_loop(1, 0);
store_dword_loop(2, 0);
store_dword_loop(3, 0);
store_dword_loop(5, 0);
}
igt_subtest("uncached-mapping") {
gem_set_caching(fd, target_bo->handle, 0);
store_dword_loop(1, 0);
store_dword_loop(2, 0);
store_dword_loop(3, 0);
store_dword_loop(5, 0);
}
igt_fixture {
drm_intel_bo_unreference(target_bo);
drm_intel_bufmgr_destroy(bufmgr);