summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/dri/intel/intel_swapbuffers.c
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@tungstengraphics.com>2008-06-11 14:52:55 +0100
committerAlan Hourihane <alanh@tungstengraphics.com>2008-06-11 14:52:55 +0100
commit1bcb817167773d6a148dd4b2cd63777d0f072c08 (patch)
treefea9712a6aff0f880943da6207d11163a6592e7b /src/gallium/winsys/dri/intel/intel_swapbuffers.c
parent4dd1917e4be3ae48b436ed333bd2fcd37603d1ed (diff)
Hook gallium i915 up to DRI2
Diffstat (limited to 'src/gallium/winsys/dri/intel/intel_swapbuffers.c')
-rw-r--r--src/gallium/winsys/dri/intel/intel_swapbuffers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/winsys/dri/intel/intel_swapbuffers.c b/src/gallium/winsys/dri/intel/intel_swapbuffers.c
index 7f3babd98e..8b17154cf9 100644
--- a/src/gallium/winsys/dri/intel/intel_swapbuffers.c
+++ b/src/gallium/winsys/dri/intel/intel_swapbuffers.c
@@ -78,7 +78,8 @@ intelDisplaySurface(__DRIdrawablePrivate *dPriv,
* current context (which is what intelScreenContext should return) might
* not get a contended lock and thus cliprects not updated (tests/manywin)
*/
- if (intel_context(dPriv->driContextPriv) != intel)
+ if (!intel->driScreen->dri2.enabled &&
+ intel_context(dPriv->driContextPriv) != intel)
DRI_VALIDATE_DRAWABLE_INFO(intel->driScreen, dPriv);