diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-03-04 15:03:42 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-03-08 09:57:33 +0000 |
commit | 310f99ceb86a13d10665cd7c7861bfd1cbeff8ed (patch) | |
tree | 441f765027a4d6c6bcd44ec925ef0da40fcc8061 /lib/drmtest.c | |
parent | 2d2b61e1608433733de3d04a492d0d85a93933cd (diff) |
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/drmtest.c')
-rw-r--r-- | lib/drmtest.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |