[Intel-gfx] [PATCH] tests/gem_storedw_batches_loop: add subtest for cached mappings
Chris Wilson
chris at chris-wilson.co.uk
Mon Jun 8 09:34:23 PDT 2015
On Mon, Jun 08, 2015 at 07:29:30PM +0300, Imre Deak wrote:
> Signed-off-by: Imre Deak <imre.deak at intel.com>
> ---
> tests/gem_storedw_batches_loop.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/tests/gem_storedw_batches_loop.c b/tests/gem_storedw_batches_loop.c
> index dcc11a5..8706b80 100644
> --- a/tests/gem_storedw_batches_loop.c
> +++ b/tests/gem_storedw_batches_loop.c
> @@ -169,6 +169,14 @@ 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);
> + }
You probably want to also test uncached on llc as when then, i.e. 3
loops, one for default, one for cache-mapping one for uncached-mapping
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list