drm: Replace pitch with pitches[] in drm_framebuffer
[deliverable/linux.git] / drivers / gpu / drm / radeon / radeon_display.c
index 96d9ba96c87dc6c442134727d9eae68fc31d81c9..d3ffc18774a611df74a66ea136fbd12906eeaa63 100644 (file)
@@ -406,7 +406,7 @@ static int radeon_crtc_page_flip(struct drm_crtc *crtc,
        if (!ASIC_IS_AVIVO(rdev)) {
                /* crtc offset is from display base addr not FB location */
                base -= radeon_crtc->legacy_display_base_addr;
-               pitch_pixels = fb->pitch / (fb->bits_per_pixel / 8);
+               pitch_pixels = fb->pitches[0] / (fb->bits_per_pixel / 8);
 
                if (tiling_flags & RADEON_TILING_MACRO) {
                        if (ASIC_IS_R300(rdev)) {
This page took 0.02865 seconds and 5 git commands to generate.