summaryrefslogtreecommitdiff
path: root/src/i830_exa.c
diff options
context:
space:
mode:
authorHong Liu <hong.liu@intel.com>2007-09-20 11:28:52 +0800
committerZhenyu Wang <zhenyu.z.wang@intel.com>2007-09-20 11:28:52 +0800
commitb73235f40497cfb10792ba191d4f6eac3a5df009 (patch)
treeb4f122a0315d0852d96a632f889f7d2231254919 /src/i830_exa.c
parentbda3c69a7a044869ea63514b97f8aa9260d6b5a7 (diff)
Fix pixmap offset
Use consistent interface for counting pixmap offset.
Diffstat (limited to 'src/i830_exa.c')
-rw-r--r--src/i830_exa.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/i830_exa.c b/src/i830_exa.c
index 273c6260..88503829 100644
--- a/src/i830_exa.c
+++ b/src/i830_exa.c
@@ -112,9 +112,7 @@ i830_pixmap_tiled(PixmapPtr pPixmap)
I830Ptr pI830 = I830PTR(pScrn);
unsigned long offset;
- /* Don't use exaGetPixmapOffset becuase we might be called from XAA code. */
- offset = (long)pPixmap->devPrivate.ptr -
- (long)pI830->FbBase;
+ offset = intel_get_pixmap_offset(pPixmap);
if (offset == pI830->front_buffer->offset &&
pI830->front_buffer->tiling != TILE_NONE)
{