diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-09-27 14:53:46 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-09-27 14:53:46 +0100 |
commit | cb0b72c4fbb7b1bc941522d8679fef856f2f8936 (patch) | |
tree | 28a0c5d6917773afdba87b8ff6ecca493389a83b | |
parent | feef53005b57d6b4489a15f8d0db8245dcb0cfaa (diff) |
uxa: Fixup the last couple of commits after realising I didn't have uxa enabled
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/intel_dri.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/intel_dri.c b/src/intel_dri.c index b0e48304..64cb5678 100644 --- a/src/intel_dri.c +++ b/src/intel_dri.c @@ -924,7 +924,8 @@ I830DRI2ScheduleFlip(struct intel_screen_private *intel, static Bool can_exchange(DrawablePtr drawable, DRI2BufferPtr front, DRI2BufferPtr back) { - struct intel_screen_private *intel = intel_get_screen_private(xf86ScreenToScrn(drawable->pScreen)); + ScrnInfoPtr pScrn = xf86ScreenToScrn(drawable->pScreen); + struct intel_screen_private *intel = intel_get_screen_private(pScrn); I830DRI2BufferPrivatePtr front_priv = front->driverPrivate; I830DRI2BufferPrivatePtr back_priv = back->driverPrivate; PixmapPtr front_pixmap = front_priv->pixmap; @@ -935,7 +936,7 @@ can_exchange(DrawablePtr drawable, DRI2BufferPtr front, DRI2BufferPtr back) if (!pScrn->vtSema) return FALSE; - if (I830DRI2DrawablePipe(draw) < 0) + if (I830DRI2DrawablePipe(drawable) < 0) return FALSE; if (!DRI2CanFlip(drawable)) |