diff options
author | Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> | 2017-10-27 17:55:03 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-12-06 12:47:28 -0500 |
commit | 6334ac93a1e1ff8b99dac98bb7ef790b5786ea3c (patch) | |
tree | 364fed24cbacf1ba11c87387c1d39168e4a5685b /drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h | |
parent | 069d418f412ec4b33056dc7d84b63c80c2e50abf (diff) | |
download | linux-6334ac93a1e1ff8b99dac98bb7ef790b5786ea3c.tar.gz linux-6334ac93a1e1ff8b99dac98bb7ef790b5786ea3c.tar.bz2 linux-6334ac93a1e1ff8b99dac98bb7ef790b5786ea3c.zip |
drm/amd/display: cache pwl params and scl_data to avoid extra programming
This saves us about 5000 reg writes per full update. This translates to about
40000 writes over the course of single eDP bootup.
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h b/drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h index 6eca95931ee1..71078d184289 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h +++ b/drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h @@ -92,11 +92,9 @@ struct dpp_funcs { const struct pwl_params *params); void (*opp_program_regamma_pwl)( - struct dpp *dpp, const struct pwl_params *params); - - void (*opp_set_regamma_mode)( - struct dpp *dpp_base, - enum opp_regamma mode); + struct dpp *dpp, + const struct pwl_params *params, + enum opp_regamma mode); void (*ipp_program_bias_and_scale)( struct dpp *dpp, |