drm/radeon: fix r600 writeback setup.
authorDave Airlie <airlied@redhat.com>
Mon, 9 Mar 2009 05:31:20 +0000 (15:31 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 13 Mar 2009 04:24:20 +0000 (14:24 +1000)
commit6546bf6d6cbf1f9ac350fd278a1d937d4bb9ad06
treea5bfc5c549f92c38fa7eff49b5aa2bc729073172
parent1847a549ac4db1272dea13d86331c492a2640b3b
drm/radeon: fix r600 writeback setup.

This fixes 2 bugs:
1. the AGP calculation wasn't consistent with the PCI(E) calc for the
RPTR_ADDR registers. This consolidates the writes and fixes it up.

2. The scratch address was being incorrectly calculated, this breaks
it out into a lot more linear steps.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r600_cp.c