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>
This commit is contained in:
Chris Wilson 2016-03-04 15:03:42 +00:00
parent 2d2b61e160
commit 310f99ceb8

View File

@ -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);