summaryrefslogtreecommitdiff
path: root/tests/gem_ringfill.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gem_ringfill.c')
-rw-r--r--tests/gem_ringfill.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gem_ringfill.c b/tests/gem_ringfill.c
index 36a05c6e..4d7f7cef 100644
--- a/tests/gem_ringfill.c
+++ b/tests/gem_ringfill.c
@@ -130,7 +130,7 @@ static int setup_execbuf(int fd,
reloc[i].write_domain = I915_GEM_DOMAIN_INSTRUCTION;
offset = obj[0].offset + reloc[i].delta;
- *b++ = MI_STORE_DWORD_IMM | (gen < 6 ? 1 << 22 : 0);
+ *b++ = MI_STORE_DWORD_IMM;
if (gen >= 8) {
*b++ = offset;
*b++ = offset >> 32;
@@ -139,6 +139,7 @@ static int setup_execbuf(int fd,
*b++ = offset;
reloc[i].offset += sizeof(*batch);
} else {
+ b[-1] |= 1 << 22;
b[-1] -= 1;
*b++ = offset;
}