summaryrefslogtreecommitdiff
path: root/tests/gem_storedw_loop_vebox.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gem_storedw_loop_vebox.c')
-rw-r--r--tests/gem_storedw_loop_vebox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_storedw_loop_vebox.c b/tests/gem_storedw_loop_vebox.c
index 7f43167a..5e5536f9 100644
--- a/tests/gem_storedw_loop_vebox.c
+++ b/tests/gem_storedw_loop_vebox.c
@@ -62,9 +62,9 @@ store_dword_loop(int divider)
cmd = MI_STORE_DWORD_IMM;
for (i = 0; i < SLOW_QUICK(0x2000, 0x10); i++) {
- BEGIN_BATCH(4);
+ BEGIN_BATCH(4, 0);
OUT_BATCH(cmd);
- if (intel_gen(batch->devid) < 8)
+ if (batch->gen < 8)
OUT_BATCH(0); /* reserved */
OUT_RELOC(target_buffer, I915_GEM_DOMAIN_INSTRUCTION,
I915_GEM_DOMAIN_INSTRUCTION, 0);