summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/intel_dri.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/intel_dri.c b/src/intel_dri.c
index 4b5567e1..32d4f3b1 100644
--- a/src/intel_dri.c
+++ b/src/intel_dri.c
@@ -656,6 +656,8 @@ can_exchange(DRI2BufferPtr front, DRI2BufferPtr back)
I830DRI2BufferPrivatePtr back_priv = back->driverPrivate;
PixmapPtr front_pixmap = front_priv->pixmap;
PixmapPtr back_pixmap = back_priv->pixmap;
+ struct intel_pixmap *front_intel = intel_get_pixmap_private(front_pixmap);
+ struct intel_pixmap *back_intel = intel_get_pixmap_private(back_pixmap);
if (front_pixmap->drawable.width != back_pixmap->drawable.width)
return FALSE;
@@ -672,6 +674,10 @@ can_exchange(DRI2BufferPtr front, DRI2BufferPtr back)
return FALSE;
#endif
+ /* prevent an implicit tiling mode change */
+ if (front_intel->tiling != back_intel->tiling)
+ return FALSE;
+
return TRUE;
}