From 310f99ceb86a13d10665cd7c7861bfd1cbeff8ed Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 4 Mar 2016 15:03:42 +0000 Subject: lib: Flush BSD2 as well when available When flushing work and idling the GPU, we need to flush all engines, including the forgotten BSD2. Signed-off-by: Chris Wilson --- lib/drmtest.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/drmtest.c') diff --git a/lib/drmtest.c b/lib/drmtest.c index 7b2227fe..60f2431e 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -183,6 +183,11 @@ void gem_quiescent_gpu(int fd) gem_execbuf(fd, &execbuf); } + if (gem_has_bsd2(fd)) { + execbuf.flags = I915_EXEC_BSD | (2 << 13); + gem_execbuf(fd, &execbuf); + } + if (gem_has_vebox(fd)) { execbuf.flags = LOCAL_I915_EXEC_VEBOX; gem_execbuf(fd, &execbuf); -- cgit v1.2.3