diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-02-03 21:57:33 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-02-03 21:08:03 +0000 |
commit | ee6a40fd01871b79a391646e15ce76bd9d5c1138 (patch) | |
tree | 75d2ffffa9baa7cbd64c10a040014ce3d3982b82 /tests/gem_exec_whisper.c | |
parent | ba0d1dcb2b6e6a5ec6cb1645988df7c8eccec5c3 (diff) |
igt: Skip MI_STORE_DWORD_IMM on gen2
On gen2 MI_STORE_DWORD_IMM operates on a physical, not virtual, address
i.e. we can't use it.
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 63e76303..500bd611 100644 --- a/tests/gem_exec_whisper.c +++ b/tests/gem_exec_whisper.c @@ -97,7 +97,7 @@ static int __gem_context_create(int fd, uint32_t *ctx_id) static bool can_mi_store_dword(int gen, unsigned engine) { - return !(gen == 6 && (engine & ~(3<<13)) == I915_EXEC_BSD); + return gen > 2 && !(gen == 6 && (engine & ~(3<<13)) == I915_EXEC_BSD); } static bool ignore_engine(int gen, unsigned engine) @@ -516,6 +516,11 @@ out: close(dir); } +static bool can_store_dword_imm(int fd) +{ + return intel_gen(intel_gen(intel_get_drm_devid(fd))) > 2; +} + igt_main { const struct mode { @@ -542,6 +547,7 @@ igt_main igt_fixture { fd = drm_open_driver_master(DRIVER_INTEL); + igt_require(can_store_dword_imm(fd)); print_welcome(fd); igt_fork_hang_detector(fd); |