[PATCH v2 2/3] exynos: fix G2D_DOUBLE_TO_FIXED for non-integer input

2014-06-13 Thread Inki Dae
On 2014? 06? 02? 01:04, Tobias Jakobi wrote: > The hardware accepts scaling factors formatted in a > fixed-point format. The current macro casts to integer > first, then multiplies by the fp conversion factor. > > This does not make any sense. In particular, truly > 'fractional' inputs, like 1.5,

[PATCH v2 2/3] exynos: fix G2D_DOUBLE_TO_FIXED for non-integer input

2014-06-01 Thread Tobias Jakobi
The hardware accepts scaling factors formatted in a fixed-point format. The current macro casts to integer first, then multiplies by the fp conversion factor. This does not make any sense. In particular, truly 'fractional' inputs, like 1.5, won't work that way. Signed-off-by: Tobias Jakobi ---