summaryrefslogtreecommitdiff
path: root/src/sna/sna_render.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/sna_render.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/sna_render.c')
-rw-r--r--src/sna/sna_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_render.c b/src/sna/sna_render.c
index bf170690..b03134d6 100644
--- a/src/sna/sna_render.c
+++ b/src/sna/sna_render.c
@@ -777,7 +777,7 @@ static int sna_render_picture_downsample(struct sna *sna,
goto fixup;
}
- if (!sna_pixmap_force_to_gpu(pixmap, MOVE_SOURCE_HINT | MOVE_READ)) {
+ if (!sna_pixmap_move_to_gpu(pixmap, MOVE_SOURCE_HINT | MOVE_READ)) {
fixup:
DBG(("%s: unable to create GPU bo for target or temporary pixmaps\n",
__FUNCTION__));