aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h
diff options
context:
space:
mode:
authorDmytro Laktyushkin <[email protected]>2017-10-27 21:55:03 +0000
committerAlex Deucher <[email protected]>2017-12-06 17:47:28 +0000
commit6334ac93a1e1ff8b99dac98bb7ef790b5786ea3c (patch)
tree364fed24cbacf1ba11c87387c1d39168e4a5685b /drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h
parentdrm/amd/display: Don't use dc_link in link_encoder (diff)
downloadkernel-6334ac93a1e1ff8b99dac98bb7ef790b5786ea3c.tar.gz
kernel-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 <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
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.h8
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,