summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/inc/compressor.h
diff options
context:
space:
mode:
authorBhawanpreet Lakha2017-06-27 22:34:27 +0200
committerAlex Deucher2017-09-27 00:08:24 +0200
commit1663ae1c4288da81b9f1668d204aa8ed55ebf849 (patch)
tree2979cceca693cfb179d0e4452ed1f7b1eca8add8 /drivers/gpu/drm/amd/display/dc/inc/compressor.h
parentdrm/amd/display: add hyst frames for fixed refresh (diff)
downloadkernel-qcow2-linux-1663ae1c4288da81b9f1668d204aa8ed55ebf849.tar.gz
kernel-qcow2-linux-1663ae1c4288da81b9f1668d204aa8ed55ebf849.tar.xz
kernel-qcow2-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.h6
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 {