summaryrefslogtreecommitdiff
path: root/src/i830_hwmc.c
diff options
context:
space:
mode:
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");