diff options
author | Zhipeng Gong <zhipeng.gong@intel.com> | 2015-01-13 08:50:21 +0800 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-01-22 09:27:52 +0100 |
commit | 9f952940c00f002acb0cef5a5d6251d45be8ff2c (patch) | |
tree | edb428092462eac80879918705474f80ca0ab5fb /tests/gem_dummy_reloc_loop.c | |
parent | f8d47cb70dae434571c6fe5ae39a0fc4909ba7fa (diff) |
test/gem_dummy_reloc_loop: add tests for dual bsd ring
Signed-off-by: Zhipeng Gong <zhipeng.gong@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_dummy_reloc_loop.c')
-rw-r--r-- | tests/gem_dummy_reloc_loop.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/gem_dummy_reloc_loop.c b/tests/gem_dummy_reloc_loop.c index 335700d3..5e0a10a5 100644 --- a/tests/gem_dummy_reloc_loop.c +++ b/tests/gem_dummy_reloc_loop.c @@ -43,6 +43,8 @@ #include "intel_chipset.h" #define LOCAL_I915_EXEC_VEBOX (4<<0) +#define LOCAL_I915_EXEC_BSD_RING1 (1<<13) +#define LOCAL_I915_EXEC_BSD_RING2 (2<<13) static drm_intel_bufmgr *bufmgr; struct intel_batchbuffer *batch; @@ -260,6 +262,22 @@ igt_main } #endif + igt_subtest("bsd-ring1") { + igt_require(gem_has_bsd2(fd)); + sleep(2); + igt_info("running dummy loop on bsd-ring1\n"); + dummy_reloc_loop(I915_EXEC_BSD|LOCAL_I915_EXEC_BSD_RING1); + igt_info("dummy loop run on bsd-ring1 completed\n"); + } + + igt_subtest("bsd-ring2") { + igt_require(gem_has_bsd2(fd)); + sleep(2); + igt_info("running dummy loop on bsd-ring2\n"); + dummy_reloc_loop(I915_EXEC_BSD|LOCAL_I915_EXEC_BSD_RING2); + igt_info("dummy loop run on bsd-ring2 completed\n"); + } + igt_subtest("mixed") { if (num_rings > 1) { sleep(2); |