]> bbs.cooldavid.org Git - net-next-2.6.git/commit
drm/i915: Refactor panel fitting on the LVDS. (v2)
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 18 Jul 2010 11:05:54 +0000 (12:05 +0100)
committerEric Anholt <eric@anholt.net>
Mon, 2 Aug 2010 02:35:17 +0000 (19:35 -0700)
commit49be663f9952d0fc50bb0a4a75c3fd201e40ec59
tree368f935fe959b8eabb8480ff3660334b798af025
parent71677043350874c55f60dce06a03ab61e3af6e93
drm/i915: Refactor panel fitting on the LVDS. (v2)

Move the common routines into separate functions to not only increase
readability, but also throwaway surplus code.

In doing so, we review the calculation of the aspect preserving scaling
and avoid the use of fixed-point until we need to calculate the accurate
scale factor.

v2: Improve comments as suggested by Jesse.

1 files changed, 105 insertions(+), 194 deletions(-)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_lvds.c