drm: fd.o bug #11895: Only add the AGP base to map offset if the caller didn't.
authorEric Anholt <eric@anholt.net>
Thu, 22 Nov 2007 06:55:15 +0000 (16:55 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 7 Feb 2008 05:09:38 +0000 (15:09 +1000)
commit47a184a80800dd69abd1206eea1b961070ce2ca3
tree8153346752a78eb81749478bfae3088dfc7d2144
parentba8bbcf6ff4650712f64c0ef61139c73898e2165
drm: fd.o bug #11895: Only add the AGP base to map offset if the caller didn't.

The i830 and newer intel 2D code adds the AGP base to map offsets already,
because it wasn't doing the AGP enable which used to set dev->agp->base.

Credit goes to Zhenyu for finding the issue.

Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drm_bufs.c