test: add gem_write_read_ring_switch
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 10 Jul 2013 08:35:10 +0000 (10:35 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 10 Jul 2013 08:35:10 +0000 (10:35 +0200)
This is meant to exercise the bug fixed in

https://patchwork.kernel.org/patch/2825192/

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
lib/i830_reg.h
tests/Makefile.am

index 93d03cf..4d4e618 100644 (file)
@@ -43,6 +43,9 @@
 /* broadwater flush bits */
 #define BRW_MI_GLOBAL_SNAPSHOT_RESET   (1 << 3)
 
+#define MI_COND_BATCH_BUFFER_END       (0x36<<23 | 1)
+#define MI_DO_COMPARE                  (1<<21)
+
 #define MI_BATCH_BUFFER_END    (0xA << 23)
 
 /* Noop */
index a422899..c78f2d1 100644 (file)
@@ -33,6 +33,7 @@ TESTS_progs_M = \
        gem_set_tiling_vs_blt \
        gem_tiled_blits \
        gem_tiled_partial_pwrite_pread \
+       gem_write_read_ring_switch \
        $(NOUVEAU_TESTS_M) \
        kms_flip \
        kms_render \