summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Feceoru <gabriel.feceoru@intel.com>2016-01-26 19:40:58 +0200
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2016-01-27 13:32:48 +0100
commit711398e82af469394559105a4f4c6dc21f582ffe (patch)
tree8870159b2861975d32d77de359eb0760209edc9a
parent336235c0a8554ccd3d276718ba5bacf811da3e49 (diff)
igt/gem_ringfill: Allow listing subtests in gem_ringfill
Moved gem_quiescent_gpu() call to the run path. Signed-off-by: Gabriel Feceoru <gabriel.feceoru@intel.com> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
-rw-r--r--tests/gem_ringfill.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gem_ringfill.c b/tests/gem_ringfill.c
index 1108b6be..9236543d 100644
--- a/tests/gem_ringfill.c
+++ b/tests/gem_ringfill.c
@@ -99,6 +99,8 @@ static void run_test(int fd, unsigned ring, unsigned flags)
igt_skip_on_f(gen == 6 && (ring & ~(3<<13)) == I915_EXEC_BSD,
"MI_STORE_DATA broken on gen6 bsd\n");
+ gem_quiescent_gpu(fd);
+
memset(&execbuf, 0, sizeof(execbuf));
execbuf.buffers_ptr = (uintptr_t)obj;
execbuf.buffer_count = 2;
@@ -228,7 +230,6 @@ igt_main
for (mode = modes; mode->prefix; mode++) {
for (ring = rings; ring->name; ring++) {
- gem_quiescent_gpu(fd);
igt_subtest_f("%s%s%s",
ring->flags || mode->flags ? "" : mode->prefix,
ring->name,