summaryrefslogtreecommitdiff
path: root/tests/prime_busy.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-05-18 12:11:59 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2017-05-18 13:06:17 +0100
commitbc7877660c7d7a733ec484e91e2096b8daf2cf0d (patch)
tree4ade2c9751497fac6a87081920863cce63d14704 /tests/prime_busy.c
parent49e083a29a0942309c877ea8e9275fa985a5bf25 (diff)
lib: Refactor testing for ability to use MI_STORE_DATA_IMM
Rather than have the code in multiple locations, put a copy in lib/ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/prime_busy.c')
-rw-r--r--tests/prime_busy.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/prime_busy.c b/tests/prime_busy.c
index f0c8740a..cbc91545 100644
--- a/tests/prime_busy.c
+++ b/tests/prime_busy.c
@@ -178,10 +178,9 @@ static void run_busy(int fd,
{
igt_fixture {
gem_require_ring(fd, e->exec_id | e->flags);
- igt_skip_on_f(intel_gen(intel_get_drm_devid(fd)) == 6 &&
- e->exec_id == I915_EXEC_BSD,
- "MI_STORE_DATA broken on gen6 bsd\n");
+ igt_require(gem_can_store_dword(fd, e->exec_id | e->flags));
gem_quiescent_gpu(fd);
+
if ((flags & HANG) == 0)
igt_fork_hang_detector(fd);
}
@@ -204,9 +203,8 @@ static void run_poll(int fd,
{
igt_fixture {
gem_require_ring(fd, e->exec_id | e->flags);
- igt_skip_on_f(intel_gen(intel_get_drm_devid(fd)) == 6 &&
- e->exec_id == I915_EXEC_BSD,
- "MI_STORE_DATA broken on gen6 bsd\n");
+ igt_require(gem_can_store_dword(fd, e->exec_id | e->flags));
+
gem_quiescent_gpu(fd);
if ((flags & HANG) == 0)
igt_fork_hang_detector(fd);