summaryrefslogtreecommitdiff
path: root/src/i830_hwmc.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2010-03-02 09:22:40 +0100
committerCarl Worth <cworth@cworth.org>2010-03-04 09:38:37 -0800
commit2fb8feeb56fae364380ffd91749eeb69fb461cff (patch)
treebc8f092b497fe8751377be0030237b04efe18882 /src/i830_hwmc.c
parent4d4d763b3d96e2cac99a0b7b03ad9bcaf4465c61 (diff)
i830_memory: rip out field "size"
Use the one in the drm bo instead. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/i830_hwmc.c')
-rw-r--r--src/i830_hwmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_hwmc.c b/src/i830_hwmc.c
index 184c3aaf..e60bbb2e 100644
--- a/src/i830_hwmc.c
+++ b/src/i830_hwmc.c
@@ -153,7 +153,7 @@ Bool intel_xvmc_init_batch(ScrnInfoPtr scrn)
if (drmAddMap(intel->drmSubFD,
(drm_handle_t) (xvmc_driver->batch->bo->offset +
intel->LinearAddr),
- xvmc_driver->batch->size, DRM_AGP, 0,
+ xvmc_driver->batch->bo->size, DRM_AGP, 0,
&xvmc_driver->batch_handle) < 0) {
xf86DrvMsg(scrn->scrnIndex, X_ERROR,
"[drm] drmAddMap(batchbuffer_handle) failed!\n");