diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-03-21 11:00:52 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-03-21 11:14:27 +0000 |
commit | 3b22b89dd89245b9d174365b43ff53cfb995f210 (patch) | |
tree | 41c354e000e0a4467e881653db43ae62fac99d14 /tests/gem_exec_whisper.c | |
parent | c19b049d9c2ea54e248c064171f4c5c419e4252b (diff) |
igt/gem_exec_whisper: Prevent MI_STORE_DWORD on gen6/bsd again
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_exec_whisper.c')
-rw-r--r-- | tests/gem_exec_whisper.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/gem_exec_whisper.c b/tests/gem_exec_whisper.c index 8d2569a0..60eb1ff1 100644 --- a/tests/gem_exec_whisper.c +++ b/tests/gem_exec_whisper.c @@ -94,12 +94,17 @@ static int __gem_context_create(int fd, uint32_t *ctx_id) return ret; } +static bool can_mi_store_dword(int gen, unsigned engine) +{ + return !(gen == 6 && (engine & ~(3<<13)) == I915_EXEC_BSD); +} + static bool ignore_engine(int gen, unsigned engine) { if (engine == 0) return true; - if (gen == 6 && (engine & ~(3<<13)) == I915_EXEC_BSD) + if (!can_mi_store_dword(gen, engine)) return true; return false; @@ -135,6 +140,7 @@ static void whisper(int fd, unsigned engine, unsigned flags) } } else { igt_require(gem_has_ring(fd, engine)); + igt_require(can_mi_store_dword(fd, engine)); engines[nengine++] = engine; } igt_require(nengine); |