diff options
author | Hong Liu <hong.liu@intel.com> | 2007-09-20 11:28:52 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2007-09-20 11:28:52 +0800 |
commit | b73235f40497cfb10792ba191d4f6eac3a5df009 (patch) | |
tree | b4f122a0315d0852d96a632f889f7d2231254919 /src/i915_video.c | |
parent | bda3c69a7a044869ea63514b97f8aa9260d6b5a7 (diff) |
Fix pixmap offset
Use consistent interface for counting pixmap offset.
Diffstat (limited to 'src/i915_video.c')
-rw-r--r-- | src/i915_video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i915_video.c b/src/i915_video.c index a6447b1c..00494a7b 100644 --- a/src/i915_video.c +++ b/src/i915_video.c @@ -127,8 +127,8 @@ I915DisplayVideoTextured(ScrnInfoPtr pScrn, I830PortPrivPtr pPriv, int id, /* front buffer, pitch, offset */ OUT_RING(_3DSTATE_BUF_INFO_CMD); OUT_RING(BUF_3D_ID_COLOR_BACK | BUF_3D_USE_FENCE | - BUF_3D_PITCH(pPixmap->devKind)); - OUT_RING(BUF_3D_ADDR((long)pPixmap->devPrivate.ptr - (long)pI830->FbBase)); + BUF_3D_PITCH(intel_get_pixmap_pitch(pPixmap))); + OUT_RING(BUF_3D_ADDR(intel_get_pixmap_offset(pPixmap))); ADVANCE_LP_RING(); if (!planar) { |