diff options
author | Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> | 2017-06-27 16:34:27 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-26 18:08:24 -0400 |
commit | 1663ae1c4288da81b9f1668d204aa8ed55ebf849 (patch) | |
tree | 2979cceca693cfb179d0e4452ed1f7b1eca8add8 /drivers/gpu/drm/amd/display/dc/inc/compressor.h | |
parent | d09fec0f94376b1c0048215e14838295730ed6d3 (diff) | |
download | linux-1663ae1c4288da81b9f1668d204aa8ed55ebf849.tar.gz linux-1663ae1c4288da81b9f1668d204aa8ed55ebf849.tar.bz2 linux-1663ae1c4288da81b9f1668d204aa8ed55ebf849.zip |
drm/amd/display: Connect DC resource to FBC compressor
- Connected DC resource to FBC compressor,
- Initial Implementation of FBC for Stoney/Carrizo
- Code is currently guarded with "ENABLE_FBC" compile time flag
Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Roman Li <Roman.Li@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/compressor.h')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/inc/compressor.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/compressor.h b/drivers/gpu/drm/amd/display/dc/inc/compressor.h index 5fdc2fc10231..24cca18f3c8f 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/compressor.h +++ b/drivers/gpu/drm/amd/display/dc/inc/compressor.h @@ -45,7 +45,7 @@ union fbc_physical_address { }; struct compr_addr_and_pitch_params { - enum controller_id controller_id; + /* enum controller_id controller_id; */ uint32_t inst; uint32_t source_view_width; uint32_t source_view_height; @@ -63,7 +63,7 @@ struct compressor; struct compressor_funcs { void (*power_up_fbc)(struct compressor *cp); - void (*enable_fbc)(struct compressor *cp, uint32_t paths_num, + void (*enable_fbc)(struct compressor *cp, struct compr_addr_and_pitch_params *params); void (*disable_fbc)(struct compressor *cp); void (*set_fbc_invalidation_triggers)(struct compressor *cp, @@ -78,7 +78,7 @@ struct compressor { struct dc_context *ctx; uint32_t attached_inst; bool is_enabled; - const struct compressor_funcs funcs; + const struct compressor_funcs *funcs; union { uint32_t raw; struct { |