tests: fixup storedw tests
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 15 Feb 2012 16:50:57 +0000 (17:50 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 15 Feb 2012 16:50:57 +0000 (17:50 +0100)
We need to use _INSTRUCTION as the reloc domain because otherwise the
ppgtt pipe_control w/a for snb won't kick in and the test fails.

The storedw tests for blt and bsd are still disabled because the
corresponding patch to flag ppgtt support isn't merged upstream yet.
Without ppgtt these hang my snb here.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/gem_storedw_loop_blt.c
tests/gem_storedw_loop_bsd.c
tests/gem_storedw_loop_render.c

index c67c2b3..88b12d3 100644 (file)
@@ -62,8 +62,8 @@ store_dword_loop(void)
                BEGIN_BATCH(4);
                OUT_BATCH(cmd);
                OUT_BATCH(0); /* reserved */
-               OUT_RELOC(target_buffer, I915_GEM_DOMAIN_RENDER,
-                         I915_GEM_DOMAIN_RENDER, 0);
+               OUT_RELOC(target_buffer, I915_GEM_DOMAIN_INSTRUCTION,
+                         I915_GEM_DOMAIN_INSTRUCTION, 0);
                OUT_BATCH(val);
                ADVANCE_BATCH();
 
index 91e4e59..09351e2 100644 (file)
@@ -62,8 +62,8 @@ store_dword_loop(void)
                BEGIN_BATCH(4);
                OUT_BATCH(cmd);
                OUT_BATCH(0); /* reserved */
-               OUT_RELOC(target_buffer, I915_GEM_DOMAIN_RENDER,
-                         I915_GEM_DOMAIN_RENDER, 0);
+               OUT_RELOC(target_buffer, I915_GEM_DOMAIN_INSTRUCTION,
+                         I915_GEM_DOMAIN_INSTRUCTION, 0);
                OUT_BATCH(val);
                ADVANCE_BATCH();
 
index b3d7df2..b3b7417 100644 (file)
@@ -62,8 +62,8 @@ store_dword_loop(void)
                BEGIN_BATCH(4);
                OUT_BATCH(cmd);
                OUT_BATCH(0); /* reserved */
-               OUT_RELOC(target_buffer, I915_GEM_DOMAIN_RENDER,
-                         I915_GEM_DOMAIN_RENDER, 0);
+               OUT_RELOC(target_buffer, I915_GEM_DOMAIN_INSTRUCTION,
+                         I915_GEM_DOMAIN_INSTRUCTION, 0);
                OUT_BATCH(val);
                ADVANCE_BATCH();