tests: basic ring<->cpu and ring<->ring tests

Using a dummy reloc that doesn't matter to trick the kernel into
synchroizing the rings.

v2: properly apply MI_NOOP workaround to MI_FLUSH_DW and
switch to MI_COND_BATCH_BUFFER_END as a dummy command on the
render ring to avoid PIPE_CONTROL errata.

v3: somebody clever decided that in C, you cound from 1,
i.e. I915_EXEC_RENDER == 1. It works now ...

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2011-09-09 20:44:27 +02:00
parent 32f49c7c0d
commit 61b9806f4e
4 changed files with 341 additions and 0 deletions
+2
View File
@@ -46,6 +46,8 @@ TESTS = getversion \
gem_storedw_loop_blt \
gem_storedw_loop_bsd \
gem_storedw_batches_loop \
gem_dummy_reloc_loop \
gem_ring_sync_loop \
$(NULL)
HANG = \