diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-02-10 08:58:55 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-02-12 20:51:31 +0000 |
commit | 80abd583985507cab3824100a6999dee8ec11cfc (patch) | |
tree | c3393b650ccf92fb8f5f679e20945fd49290a88d | |
parent | 3f62e3da85b792ff74c0420e62f2d39a09ddcc1f (diff) |
igt/gem_exec_schedule: Limit smoketest to the desired engines
We run the per-engine scheduling smoketests across all engines, the
opposite of what was intended!
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: vinay.belgaumkar@intel.com
-rw-r--r-- | tests/gem_exec_schedule.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/gem_exec_schedule.c b/tests/gem_exec_schedule.c index aeb7610b..05f7ae38 100644 --- a/tests/gem_exec_schedule.c +++ b/tests/gem_exec_schedule.c @@ -206,11 +206,15 @@ static void smoketest(int fd, unsigned ring, unsigned timeout) uint32_t *ptr; nengine = 0; - for_each_engine(fd, engine) { - if (ignore_engine(fd, engine)) - continue; + if (ring == -1) { + for_each_engine(fd, engine) { + if (ignore_engine(fd, engine)) + continue; - engines[nengine++] = engine; + engines[nengine++] = engine; + } + } else { + engines[nengine++] = ring; } igt_require(nengine); |