drm/mgag200: Fix framebuffer pitch calculation
authorTakashi Iwai <tiwai@suse.com>
Wed, 17 Jul 2013 13:07:26 +0000 (15:07 +0200)
committerDave Airlie <airlied@redhat.com>
Mon, 29 Jul 2013 23:44:30 +0000 (09:44 +1000)
commitda55839870263563cc70e700a7f58090a860576d
tree6b89810f61008e81d4a7e6393a33b4464f34cdcb
parent3d5a1c5e300483df005c81c55792268d4a7bff9f
drm/mgag200: Fix framebuffer pitch calculation

The framebuffer pitch calculation needs to be done differently for bpp == 24
- check xf86-video-mga for reference.

Signed-off-by: Egbert Eich <eich@suse.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/mgag200/mgag200_mode.c