drm/radeon/kms: fix calculation of h/v scaling factors
authorAlex Deucher <alexdeucher@gmail.com>
Tue, 3 Aug 2010 23:58:49 +0000 (19:58 -0400)
committerDave Airlie <airlied@redhat.com>
Wed, 4 Aug 2010 00:03:47 +0000 (10:03 +1000)
commitd65d65b175a29bd7ea2bb69c046419329c4a5db7
tree459fd50b7e4af59af71e0e93bd602c243209983d
parentfa0a6024da61d96a12fab18991b9897292b43253
drm/radeon/kms: fix calculation of h/v scaling factors

Prior to this patch the code was dividing the src_v by the dst_h
and vice versa, rather than src_v/dst_v and src_h/dst_h.

This could lead to problems in the calculation of the display
watermarks.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_display.c