Mesa (mesa_7_7_branch): st/dri: Make sure we always request a fake front.

Thomas Hellstrom thomash at kemper.freedesktop.org
Wed Jan 13 16:45:14 UTC 2010


Module: Mesa
Branch: mesa_7_7_branch
Commit: a9086f2d17a58bd2597d34a6cc886dc111997e4e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a9086f2d17a58bd2597d34a6cc886dc111997e4e

Author: Thomas Hellstrom <thellstrom at vmware.com>
Date:   Wed Jan 13 17:40:41 2010 +0100

st/dri: Make sure we always request a fake front.

This should be the correct, but sub-optimal way to handle things on
pre-1.7 servers. For servers that automatically adds a fake front
we should never request the fake front and handle the reply differently.

Signed-off-by: Thomas Hellstrom <thellstrom at vmware.com>

---

 src/gallium/state_trackers/dri/dri_drawable.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/gallium/state_trackers/dri/dri_drawable.c b/src/gallium/state_trackers/dri/dri_drawable.c
index c4dfb0c..3c17ccd 100644
--- a/src/gallium/state_trackers/dri/dri_drawable.c
+++ b/src/gallium/state_trackers/dri/dri_drawable.c
@@ -365,11 +365,10 @@ dri_create_buffer(__DRIscreenPrivate * sPriv,
    /* TODO incase of double buffer visual, delay fake creation */
    i = 0;
    drawable->attachments[i++] = __DRI_BUFFER_FRONT_LEFT;
+   drawable->attachments[i++] = __DRI_BUFFER_FAKE_FRONT_LEFT;
 
    if (visual->doubleBufferMode)
       drawable->attachments[i++] = __DRI_BUFFER_BACK_LEFT;
-   else
-      drawable->attachments[i++] = __DRI_BUFFER_FAKE_FRONT_LEFT;
    if (visual->depthBits && visual->stencilBits)
       drawable->attachments[i++] = __DRI_BUFFER_DEPTH_STENCIL;
    else if (visual->depthBits)




More information about the mesa-commit mailing list