Signed-off-by: Ian Romanick <[email protected]>
---
 src/i830_dri.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/i830_dri.c b/src/i830_dri.c
index 6a32492..9ede0fb 100644
--- a/src/i830_dri.c
+++ b/src/i830_dri.c
@@ -1554,11 +1554,16 @@ I830DRI2CreateBuffers(DrawablePtr pDraw, unsigned int 
*attachments, int count)
 
     pDepthPixmap = NULL;
     for (i = 0; i < count; i++) {
+       int flags = 0;
+
        if (attachments[i] == DRI2BufferFrontLeft) {
            if (pDraw->type == DRAWABLE_PIXMAP)
                pPixmap = (PixmapPtr) pDraw;
-           else
+           else {
+               flags = DRI2_BUFFER_DONT_SEND;
                pPixmap = (*pScreen->GetWindowPixmap)((WindowPtr) pDraw);
+           }
+
            pPixmap->refcnt++;
        } else if (attachments[i] == DRI2BufferStencil && pDepthPixmap) {
            pPixmap = pDepthPixmap;
@@ -1600,7 +1605,7 @@ I830DRI2CreateBuffers(DrawablePtr pDraw, unsigned int 
*attachments, int count)
        buffers[i].pitch = pPixmap->devKind;
        buffers[i].cpp = pPixmap->drawable.bitsPerPixel / 8;
        buffers[i].driverPrivate = &privates[i];
-       buffers[i].flags = 0; /* not tiled */
+       buffers[i].flags = flags;
        privates[i].pPixmap = pPixmap;
 
        bo = i830_get_pixmap_bo (pPixmap);
-- 
1.6.0.6


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to