summaryrefslogtreecommitdiff
path: root/src/sna/kgem.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-06-04 08:29:51 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-06-05 12:28:22 +0100
commit8369166349c92a20d9a2e7d0256e63f66fe2682b (patch)
treed8474a46e9b4fad974f36b1ddb0826d26555734b /src/sna/kgem.c
parent08148896196443a8582c30b47ff546acca78d69c (diff)
sna/dri2: Enable immediate buffer exchanges
The primary benefit of this is avoid the extra blit when using a compositor and instead propagate the compositor flip on the frontbuffer to the scanout, or equivalently allows a fullscreen game to flip onto the scanout without intervention by TearFree. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/kgem.c')
-rw-r--r--src/sna/kgem.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index ea114f4c..a45dedda 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -2222,6 +2222,7 @@ static void __kgem_bo_destroy(struct kgem *kgem, struct kgem_bo *bo)
assert(list_is_empty(&bo->list));
assert(bo->refcnt == 0);
assert(bo->proxy == NULL);
+ assert(bo->active_scanout == 0);
assert_tiling(kgem, bo);
bo->binding.offset = 0;
@@ -5832,13 +5833,6 @@ uint32_t kgem_bo_flink(struct kgem *kgem, struct kgem_bo *bo)
kgem_bo_unclean(kgem, bo);
- /* Henceforth, we need to broadcast all updates to clients and
- * flush our rendering before doing so.
- */
- bo->flush = true;
- if (bo->exec)
- kgem->flush = 1;
-
return flink.name;
}