summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/dri/intel/intel_lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/winsys/dri/intel/intel_lock.c')
-rw-r--r--src/gallium/winsys/dri/intel/intel_lock.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/winsys/dri/intel/intel_lock.c b/src/gallium/winsys/dri/intel/intel_lock.c
index 406284c98f..469090c0e1 100644
--- a/src/gallium/winsys/dri/intel/intel_lock.c
+++ b/src/gallium/winsys/dri/intel/intel_lock.c
@@ -50,6 +50,9 @@ intelContendedLock(struct intel_context *intel, uint flags)
DBG(LOCK, "%s - got contended lock\n", __progname);
+ if (sPriv->dri2.enabled)
+ return;
+
/* If the window moved, may need to set a new cliprect now.
*
* NOTE: This releases and regains the hw lock, so all state
@@ -58,8 +61,8 @@ intelContendedLock(struct intel_context *intel, uint flags)
if (dPriv)
DRI_VALIDATE_DRAWABLE_INFO(sPriv, dPriv);
- if (sarea->width != intelScreen->front.width ||
- sarea->height != intelScreen->front.height) {
+ if (sarea && (sarea->width != intelScreen->front.width ||
+ sarea->height != intelScreen->front.height)) {
intelUpdateScreenRotation(sPriv, sarea);
}