diff options
author | Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> | 2017-06-02 19:00:45 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-26 18:07:49 -0400 |
commit | 1a2c82a2f161f68deb5f0519c315bfc92ede8e01 (patch) | |
tree | 6e0318b2dbafde9e86d67d65f9369a375bd2ae2e /drivers/gpu/drm/amd/display/dc/inc/hw | |
parent | 8eee20139a63c6b53abc71c9a937f2b2047176c2 (diff) |
drm/amd/display: fix mpc alpha programming
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')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h b/drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h index 2e86ebe5eeda..ec1a201747f2 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h +++ b/drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h @@ -25,19 +25,6 @@ #ifndef __DC_MPC_H__ #define __DC_MPC_H__ -/* define the maximum number of pipes - * MAX_NUM_PIPPES = MAX_PIPES defined in core_type.h - */ -enum { - MAX_NUM_PIPPES = 6 -}; - -enum blend_mode { - DIGI_BYPASS = 0, /* digital bypass */ - TOP_PASSTHRU, /* top layer pass through */ - TOP_BLND /* top layer blend */ -}; - /* This structure define the mpc tree configuration * num_pipes - number of pipes of the tree * opp_id - instance id of OPP to drive MPC @@ -60,10 +47,10 @@ struct mpc_tree_cfg { uint8_t num_pipes; uint8_t opp_id; /* dpp pipes for blend */ - uint8_t dpp[MAX_NUM_PIPPES]; + uint8_t dpp[6]; /* mpcc insatnces for blend */ - uint8_t mpcc[MAX_NUM_PIPPES]; - enum blend_mode mode; + uint8_t mpcc[6]; + bool per_pixel_alpha[6]; }; struct mpcc_blnd_cfg { |