disp: msm: sde: use pp dsc api only if hw supports

This change checks the capabilities of pingpong block to
check if it needs to call the pingpong api to enable or
disable the dsc. Certain hw versions do not have support
in pingpong block to enable/disable the dsc instead the
dsc block itself have the hooks to control the DSC.

Change-Id: I17dd45479cc33ff2e81f6a6e5a5a8704562dfd24
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
This commit is contained in:
Abhijit Kulkarni
2019-06-14 10:26:15 -07:00
parent a00714beae
commit d3d3f808d4
5 changed files with 48 additions and 22 deletions

View File

@@ -32,6 +32,7 @@ struct sde_hw_dsc_cfg {
* @disable_dsc : disables DSC encoder
* @setup_dither : function to program the dither hw block
* @get_line_count: obtain current vertical line counter
* @get_hw_caps: returns features supported by this pp block
*/
struct sde_hw_pingpong_ops {
/**
@@ -126,6 +127,11 @@ struct sde_hw_pingpong_ops {
* reset 3d blend configuration
*/
void (*reset_3d_mode)(struct sde_hw_pingpong *pp);
/**
* get PP features supported by this instance
*/
unsigned long (*get_hw_caps)(struct sde_hw_pingpong *pp);
};
struct sde_hw_merge_3d_ops {