summaryrefslogtreecommitdiff
path: root/src/sna/kgem.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-05-20 16:36:31 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-05-20 22:19:35 +0100
commitc548427e6d3a3fb50acec4b405b9d0ea977d3cc9 (patch)
treedb862169b7dddbd887a956ab18b51832a013ac92 /src/sna/kgem.c
parent61df0ffc0be8d934d86ac45c67da910479998cc7 (diff)
sna: Only mark the scanout as being busy for writes (not solitary reads)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/kgem.c')
-rw-r--r--src/sna/kgem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 7e906e83..f635150a 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -2486,7 +2486,7 @@ static void kgem_commit(struct kgem *kgem)
__kgem_bo_clear_busy(bo);
}
- kgem->scanout_busy |= bo->scanout;
+ kgem->scanout_busy |= bo->scanout && bo->needs_flush;
}
if (rq == &kgem->static_request) {