summaryrefslogtreecommitdiff
path: root/linux/r128_bufs.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/r128_bufs.c')
-rw-r--r--linux/r128_bufs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/r128_bufs.c b/linux/r128_bufs.c
index a060749e..3c549e16 100644
--- a/linux/r128_bufs.c
+++ b/linux/r128_bufs.c
@@ -74,7 +74,7 @@ int r128_addbufs_agp(struct inode *inode, struct file *filp, unsigned int cmd,
total = PAGE_SIZE << page_order;
byte_count = 0;
- agp_offset = dev->agp->base + request.agp_start;
+ agp_offset = request.agp_start;
DRM_DEBUG("count: %d\n", count);
DRM_DEBUG("order: %d\n", order);
@@ -125,7 +125,8 @@ int r128_addbufs_agp(struct inode *inode, struct file *filp, unsigned int cmd,
buf->order = order;
buf->used = 0;
buf->offset = (dma->byte_count + offset);
- buf->address = (void *)(agp_offset + offset);
+ buf->bus_address = agp_offset + offset;
+ buf->address = (void *)(agp_offset + offset + dev->agp->base);
buf->next = NULL;
buf->waiting = 0;
buf->pending = 0;