From 6b418f0264883871955d82058b1d36f710f810b4 Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Mon, 8 Jun 2015 19:08:06 +0300 Subject: 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 --- tests/gem_storedw_batches_loop.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tests/gem_storedw_batches_loop.c') diff --git a/tests/gem_storedw_batches_loop.c b/tests/gem_storedw_batches_loop.c index dcc11a56..de553598 100644 --- a/tests/gem_storedw_batches_loop.c +++ b/tests/gem_storedw_batches_loop.c @@ -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); -- cgit v1.2.3