--- zzzz-none-000/linux-2.6.39.4/drivers/gpu/drm/radeon/atombios_crtc.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/drivers/gpu/drm/radeon/atombios_crtc.c 2021-11-10 13:23:10.000000000 +0000 @@ -1011,7 +1011,7 @@ uint64_t fb_location; uint32_t fb_format, fb_pitch_pixels, tiling_flags; u32 fb_swap = EVERGREEN_GRPH_ENDIAN_SWAP(EVERGREEN_GRPH_ENDIAN_NONE); - u32 tmp, viewport_w, viewport_h; + u32 tmp; int r; /* no fb bound */ @@ -1137,10 +1137,8 @@ y &= ~1; WREG32(EVERGREEN_VIEWPORT_START + radeon_crtc->crtc_offset, (x << 16) | y); - viewport_w = crtc->mode.hdisplay; - viewport_h = (crtc->mode.vdisplay + 1) & ~1; WREG32(EVERGREEN_VIEWPORT_SIZE + radeon_crtc->crtc_offset, - (viewport_w << 16) | viewport_h); + (crtc->mode.hdisplay << 16) | crtc->mode.vdisplay); /* pageflip setup */ /* make sure flip is at vb rather than hb */ @@ -1181,7 +1179,7 @@ uint64_t fb_location; uint32_t fb_format, fb_pitch_pixels, tiling_flags; u32 fb_swap = R600_D1GRPH_SWAP_ENDIAN_NONE; - u32 tmp, viewport_w, viewport_h; + u32 tmp; int r; /* no fb bound */ @@ -1306,10 +1304,8 @@ y &= ~1; WREG32(AVIVO_D1MODE_VIEWPORT_START + radeon_crtc->crtc_offset, (x << 16) | y); - viewport_w = crtc->mode.hdisplay; - viewport_h = (crtc->mode.vdisplay + 1) & ~1; WREG32(AVIVO_D1MODE_VIEWPORT_SIZE + radeon_crtc->crtc_offset, - (viewport_w << 16) | viewport_h); + (crtc->mode.hdisplay << 16) | crtc->mode.vdisplay); /* pageflip setup */ /* make sure flip is at vb rather than hb */