summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-09-06 20:46:36 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-09-06 23:55:55 +0100
commit0485cdfb6dc8e51d57406f633d55f8a8ac1a0208 (patch)
treed590039c9a603f711f5265ac6a2e198d171bce21
parent489a93e4cc2e14e25339693933dddf4946717f11 (diff)
downloadxf86-video-intel-0485cdfb6dc8e51d57406f633d55f8a8ac1a0208.tar.gz
xf86-video-intel-0485cdfb6dc8e51d57406f633d55f8a8ac1a0208.tar.bz2
xf86-video-intel-0485cdfb6dc8e51d57406f633d55f8a8ac1a0208.zip
sna/dri: Only the BackLeft merits special allocation flags
As the BackLeft is the only that couled be flipped, it is the only one that may end up as the scanout and so is the only one that should be allocated from the scanout cache. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_dri.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sna/sna_dri.c b/src/sna/sna_dri.c
index 5870452be..f3a5d9c04 100644
--- a/src/sna/sna_dri.c
+++ b/src/sna/sna_dri.c
@@ -301,15 +301,15 @@ sna_dri_create_buffer(DrawablePtr draw,
break;
case DRI2BufferBackLeft:
+ if (draw->width == sna->front->drawable.width &&
+ draw->height == sna->front->drawable.height &&
+ (sna->flags & SNA_NO_FLIP) == 0)
+ flags |= CREATE_SCANOUT;
case DRI2BufferBackRight:
case DRI2BufferFrontRight:
case DRI2BufferFakeFrontLeft:
case DRI2BufferFakeFrontRight:
bpp = draw->bitsPerPixel;
- if (draw->width == sna->front->drawable.width &&
- draw->height == sna->front->drawable.height &&
- (sna->flags & SNA_NO_FLIP) == 0)
- flags |= CREATE_SCANOUT;
DBG(("%s: creating back buffer %dx%d, suitable for scanout? %d\n",
__FUNCTION__,
draw->width, draw->height,