diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-01-19 11:06:31 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-01-19 11:07:28 +0000 |
commit | 792c64f6b00696285f39f8c409d29506cde703cb (patch) | |
tree | 9170a41fa35dc9e0781c31d566b6454259f980e3 /tests | |
parent | b123d58597325bda8d0a3e5613a2aac60cddaaa4 (diff) |
igt/gem_ringfill: Restrict BIT(22) to gen2/3 as it changed meaning on gen4+
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gem_ringfill.c | 3 |
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; } |