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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user