disp: msm: sde: add checks for hfc feature enablement of demura

HFC feature of demura needs a skip blend plane to be set. If skip blend
plane is not set and HFC feature is requested to be enabled, driver
should skip turning on HFC demura feature. Change adds checks to ensure
that HFC is always enabled with skip blend plane staged.

Change-Id: I923359c7cb143867660b4c1e667f56ed42fa51c9
这个提交包含在:
Gopikrishnaiah Anandan
2021-02-25 09:38:01 -08:00
父节点 15cc307f2a
当前提交 1d39b8a5a9
修改 7 个文件,包含 148 行新增6 行删除

查看文件

@@ -296,6 +296,11 @@ struct sde_crtc_misr_info {
* @cache_state : Current static image cache state
* @dspp_blob_info : blob containing dspp hw capability information
* @cached_encoder_mask : cached encoder_mask for vblank work
* @valid_skip_blend_plane: flag to indicate if skip blend plane is valid
* @skip_blend_plane: enabled plane that has skip blending
* @skip_blend_plane_w: skip blend plane width
* @skip_blend_plane_h: skip blend plane height
*
*/
struct sde_crtc {
struct drm_crtc base;
@@ -387,6 +392,11 @@ struct sde_crtc {
struct drm_property_blob *dspp_blob_info;
u32 cached_encoder_mask;
bool valid_skip_blend_plane;
enum sde_sspp skip_blend_plane;
u32 skip_blend_plane_w;
u32 skip_blend_plane_h;
};
enum sde_crtc_dirty_flags {