drm/gma500: Add fb gtt offset to fb base
authorPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Tue, 14 May 2013 12:37:10 +0000 (14:37 +0200)
committerPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Wed, 15 May 2013 12:23:09 +0000 (14:23 +0200)
commit61bb3fea44b71dd9935227920b036fdb96936f4d
treee168d5a377a6abe7e885f49e27e46dc671521923
parent307b9c022720f9de90d58e51743e01e9a42aec59
drm/gma500: Add fb gtt offset to fb base

Old code assumed framebuffer starts at base of stolen memory. Since the
addition of hardware cursors, this might not be true anymore so add the
gtt offset to the calculation.

Reported-by: Holger Schurig <holgerschurig@gmail.com>
Tested-by: Holger Schurig <holgerschurig@gmail.com>
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
drivers/gpu/drm/gma500/framebuffer.c