]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteda0d526708320fa5853027f7d61bb22654b912c
tree459fd50b7e4af59af71e0e93bd602c243209983d
parent8563042132955fda6b3bff8e6fef4e02af23f6b3
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