tests: basic ring<->cpu and ring<->ring tests
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 9 Sep 2011 18:44:27 +0000 (20:44 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 12 Sep 2011 07:39:16 +0000 (09:39 +0200)
commit61b9806f4e7b92031491f2c4b3454c1f3afe418c
tree1796c2baecf0eb19bb4517ec0efdc32b4fda14bb
parent32f49c7c0d91318c1993e381855ecf4bb02abc80
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>
lib/intel_chipset.h
tests/Makefile.am
tests/gem_dummy_reloc_loop.c [new file with mode: 0644]
tests/gem_ring_sync_loop.c [new file with mode: 0644]