tests: add store dword tests
authorJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 12 Aug 2011 19:51:34 +0000 (12:51 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 12 Aug 2011 19:51:34 +0000 (12:51 -0700)
commit922214f9869220373c3768cfcbd0e243e6ac07b6
tree8c7cd464feb16f387914a4673bcbc16ad396ec68
parent6857a1af816e18981515b942faaba65e85c40cc5
tests: add store dword tests

Add a couple of simple store dword tests to test memory coherence.

gem_storedw_loop simply executes a batch that continually stores an
incremented value to a target buffer object, checking the results after
each batch completes.

gem_storedw_batches_loop does the same thing, but creates a new command
batch buffer for each iteration, which can exercise the buffer creation
code.  This test is based on one from Andrzej Kacprowski from Intel.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
tests/Makefile.am
tests/gem_storedw_batches_loop.c [new file with mode: 0644]
tests/gem_storedw_loop.c [new file with mode: 0644]