diff mbox

[i-g-t] igt/gem_ringfill: Allow listing subtests in gem_ringfill

Message ID 1453830058-2513-1-git-send-email-gabriel.feceoru@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Feceoru, Gabriel Jan. 26, 2016, 5:40 p.m. UTC
Moved gem_quiescent_gpu() call to the run path.

Signed-off-by: Gabriel Feceoru <gabriel.feceoru@intel.com>
---
 tests/gem_ringfill.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Chris Wilson Jan. 27, 2016, 4:45 p.m. UTC | #1
On Tue, Jan 26, 2016 at 07:40:58PM +0200, Gabriel Feceoru wrote:
> Moved gem_quiescent_gpu() call to the run path.
> 
> Signed-off-by: Gabriel Feceoru <gabriel.feceoru@intel.com>

And pushed by Maarten. Thanks,
-Chris
diff mbox

Patch

diff --git a/tests/gem_ringfill.c b/tests/gem_ringfill.c
index 407b747..2e8c7c1 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,