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_busy.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_busy.c')
-rw-r--r-- | tests/gem_busy.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/gem_busy.c b/tests/gem_busy.c index edd74d9e..edec7c9b 100644 --- a/tests/gem_busy.c +++ b/tests/gem_busy.c @@ -500,6 +500,11 @@ static void basic(int fd, unsigned ring, unsigned flags) igt_spin_batch_free(fd, spin); } +static bool can_store_dword_imm(int fd) +{ + return intel_gen(intel_gen(intel_get_drm_devid(fd))) > 2; +} + igt_main { const struct intel_execution_engine *e; @@ -509,6 +514,7 @@ igt_main igt_fixture { fd = drm_open_driver_master(DRIVER_INTEL); + igt_require(can_store_dword_imm(fd)); } igt_subtest_group { |