summaryrefslogtreecommitdiff
path: root/shared-core/nouveau_notifier.c
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2007-07-12 10:15:16 +1000
committerBen Skeggs <skeggsb@gmail.com>2007-07-12 10:46:57 +1000
commit750371cb6ea9a64c9d4d4d3b9716c3c68d810d48 (patch)
treec7ce6b65caf4fba9b8dad69dc236cef0964795f7 /shared-core/nouveau_notifier.c
parent5fbdf9da8bda996c0a474d13fe69d260f12ffce7 (diff)
nouveau: separate region_offset into map_handle and offset.
Diffstat (limited to 'shared-core/nouveau_notifier.c')
-rw-r--r--shared-core/nouveau_notifier.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/shared-core/nouveau_notifier.c b/shared-core/nouveau_notifier.c
index 30216293..7d892064 100644
--- a/shared-core/nouveau_notifier.c
+++ b/shared-core/nouveau_notifier.c
@@ -95,10 +95,8 @@ nouveau_notifier_alloc(drm_device_t *dev, int channel, uint32_t handle,
offset = chan->notifier_block->start + mem->start;
if (chan->notifier_block->flags & NOUVEAU_MEM_FB) {
- offset -= drm_get_resource_start(dev, 1);
target = NV_DMA_TARGET_VIDMEM;
} else if (chan->notifier_block->flags & NOUVEAU_MEM_AGP) {
- offset -= dev_priv->agp_phys;
target = NV_DMA_TARGET_AGP;
} else {
DRM_ERROR("Bad DMA target, flags 0x%08x!\n",