Tyler DiBattista
7cef6a120e
drm/amd/display: Add function to create 4d19 fixed point
...
[Why]
Implemented for future use
Signed-off-by: Tyler DiBattista <[email protected] >
Reviewed-by: Eric Bernstein <[email protected] >
Acked-by: Bhawanpreet Lakha <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2019-03-19 15:04:02 -05:00
Reza Amini
8de94233f4
drm/amd/display: Prefix TIMING_STANDARD entries with DC_
...
Signed-off-by: Reza Amini <[email protected] >
Reviewed-by: Aric Cyr <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2018-06-15 12:20:27 -05:00
Dmytro Laktyushkin
0b19fdc45f
drm/amd/display: fix dscl_manual_ratio_init
...
This change will fix wb and display scaling when ratios of
4 or more are involved
Signed-off-by: Dmytro Laktyushkin <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2018-05-29 13:28:29 -05:00
David Francis
b8f3439fa5
drm/amd/display: Remove use of division operator for long longs
...
In fixed31_32.h, in dc_fixpt_shl,'/' was used for division of one long
long int by another long long int. As there is no inbuilt long long
int division function in c, gcc inserted its own. However, gcc does not
link the library that contains this function. To avoid this, use
bitwise operators instead of /
Reviewed-by: Alex Deucher <[email protected] >
Signed-off-by: David Francis <[email protected] >
Reviewed-by: Dmytro Laktyushkin <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2018-05-24 10:07:56 -05:00
Dmytro Laktyushkin
7ea034ce81
drm/amd/display: fix a 32 bit shift meant to be 64 warning
...
Signed-off-by: Dmytro Laktyushkin <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2018-05-18 16:08:24 -05:00
Dmytro Laktyushkin
a21ddec61c
drm/amd/display: fix 31_32_fixpt shift functions
...
Signed-off-by: Dmytro Laktyushkin <[email protected] >
Reviewed-by: Eric Yang <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2018-05-18 16:08:24 -05:00
Dmytro Laktyushkin
ab9c2062d9
drm/amd/display: add fixed point fractional bit truncation function
...
Signed-off-by: Dmytro Laktyushkin <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2018-05-18 16:08:23 -05:00
Dmytro Laktyushkin
f3ba7a2fd1
drm/amd/display: inline more of fixed point code
...
Signed-off-by: Dmytro Laktyushkin <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2018-05-18 16:08:22 -05:00
Dmytro Laktyushkin
eb0e515464
drm/amd/display: get rid of 32.32 unsigned fixed point
...
32.32 is redundant, 31.32 does everything we use 32.32 for
Signed-off-by: Dmytro Laktyushkin <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2018-05-18 16:08:21 -05:00
Anthony Koo
5c6161162a
drm/amd/display: Do not use os types
...
Signed-off-by: Anthony Koo <[email protected] >
Reviewed-by: Anthony Koo <[email protected] >
Reviewed-by: Aric Cyr <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2018-05-15 13:42:53 -05:00
Ken Chalmers
a6e59fa806
drm/amd/display: WBSCL filter init calculation fixes
...
* Previous code did some calculations with a mix of normal integers and
integers aligned as U2.24 fixed-point values.
* There were bugs in the conversion of the final result into the
S4.19 values required for the registers.
Signed-off-by: Ken Chalmers <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2018-02-19 14:19:29 -05:00
Dmytro Laktyushkin
78b56c5234
drm/amd/display: use clamping rather than truncation for CM fp conversions
...
Signed-off-by: Dmytro Laktyushkin <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-12-14 11:00:53 -05:00
Vitaly Prosyak
b629596072
drm/amd/display: Build unity lut for shaper
...
Add color module to diagnostic compilation
Signed-off-by: Vitaly Prosyak <[email protected] >
Reviewed-by: Charlene Liu <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-12-14 10:53:51 -05:00
Dave Airlie
bd6d15769e
amdgpu/dc: inline fixed31_32 div_int
...
Signed-off-by: Dave Airlie <[email protected] >
Reviewed-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-29 13:03:49 -04:00
Dave Airlie
c233e91b0f
amdgpu/dc: use the builtin constant p trick on the 31/32 fixed point.
...
This only gets us 100 bytes, but may as well be consistent.
Signed-off-by: Dave Airlie <[email protected] >
Reviewed-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-29 13:03:43 -04:00
Dave Airlie
204de25fd0
amdgpu/dc: inline a bunch of the fixed 31_32 helpers.
...
This decreases code size by a few hundred bytes.
Signed-off-by: Dave Airlie <[email protected] >
Reviewed-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-29 13:03:09 -04:00
Amy Zhang
fcd2f4bf8b
drm/amd/display: Output Transfer Function Regamma Refactor
...
- Create translation function to translate logical format to hw format
- Refactor to use transfer function in dc instead of input gamma
Signed-off-by: Amy Zhang <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Reviewed-by: Anthony Koo <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 17:09:48 -04:00
Harry Wentland
4562236b3b
drm/amd/dc: Add dc display driver (v2)
...
Supported DCE versions: 8.0, 10.0, 11.0, 11.2
v2: rebase against 4.11
Signed-off-by: Harry Wentland <[email protected] >
Acked-by: Alex Deucher <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 17:01:32 -04:00