@@ -174,24 +174,18 @@ static int config_rdma_frame(struct mdp_comp_ctx *ctx,
((width + 31) >> 5) << 5, 0x001FFFFF);
MM_REG_WRITE(cmd, subsys_id, base, MDP_RDMA_MF_BKGD_H_SIZE_IN_PXL,
((height + 7) >> 3) << 3, 0x001FFFFF);
-
- /* Setup Compression Control */
- MM_REG_WRITE(cmd, subsys_id, base, MDP_RDMA_COMP_CON,
- rdma->comp_ctrl, write_mask);
- }
-
- if (mdp_cfg->rdma_support_afbc &&
- (MDP_COLOR_IS_COMPRESS(colorformat))) {
+ } else if (mdp_cfg->rdma_support_afbc &&
+ (MDP_COLOR_IS_COMPRESS(colorformat))) {
MM_REG_WRITE(cmd, subsys_id, base, MDP_RDMA_MF_BKGD_SIZE_IN_PXL,
((width + 31) >> 5) << 5, 0x001FFFFF);
MM_REG_WRITE(cmd, subsys_id, base, MDP_RDMA_MF_BKGD_H_SIZE_IN_PXL,
((height + 7) >> 3) << 3, 0x001FFFFF);
-
- /* Setup Compression Control */
- MM_REG_WRITE(cmd, subsys_id, base, MDP_RDMA_COMP_CON,
- rdma->comp_ctrl, write_mask);
}
+ /* Setup Compression Control */
+ MM_REG_WRITE(cmd, subsys_id, base, MDP_RDMA_COMP_CON,
+ rdma->comp_ctrl, write_mask);
+
if (mdp_cfg->rdma_esl_setting) {
MM_REG_WRITE(cmd, subsys_id, base, MDP_RDMA_DMABUF_CON_0,
rdma->dmabuf_con0, 0x0FFF00FF);
@@ -34,7 +34,7 @@ static const struct mdp_platform_config mt8195_plat_cfg = {
.rdma_support_afbc = true,
.rdma_esl_setting = true,
.rdma_rsz1_sram_sharing = false,
- .rdma_upsample_repeat_only = true,
+ .rdma_upsample_repeat_only = false,
.rsz_disable_dcm_small_sample = false,
.rsz_etc_control = true,
.wrot_filter_constraint = false,