Lines Matching refs:vdsc_cfg
1423 struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config; in intel_dp_dsc_compute_params() local
1433 vdsc_cfg->rc_model_size = DSC_RC_MODEL_SIZE_CONST; in intel_dp_dsc_compute_params()
1434 vdsc_cfg->pic_height = crtc_state->hw.adjusted_mode.crtc_vdisplay; in intel_dp_dsc_compute_params()
1441 if (vdsc_cfg->pic_height % 8 == 0) in intel_dp_dsc_compute_params()
1442 vdsc_cfg->slice_height = 8; in intel_dp_dsc_compute_params()
1443 else if (vdsc_cfg->pic_height % 4 == 0) in intel_dp_dsc_compute_params()
1444 vdsc_cfg->slice_height = 4; in intel_dp_dsc_compute_params()
1446 vdsc_cfg->slice_height = 2; in intel_dp_dsc_compute_params()
1452 vdsc_cfg->dsc_version_major = in intel_dp_dsc_compute_params()
1455 vdsc_cfg->dsc_version_minor = in intel_dp_dsc_compute_params()
1459 vdsc_cfg->convert_rgb = intel_dp->dsc_dpcd[DP_DSC_DEC_COLOR_FORMAT_CAP - DP_DSC_SUPPORT] & in intel_dp_dsc_compute_params()
1469 if (vdsc_cfg->dsc_version_minor == 2) in intel_dp_dsc_compute_params()
1470 vdsc_cfg->line_buf_depth = (line_buf_depth == DSC_1_2_MAX_LINEBUF_DEPTH_BITS) ? in intel_dp_dsc_compute_params()
1473 vdsc_cfg->line_buf_depth = (line_buf_depth > DSC_1_1_MAX_LINEBUF_DEPTH_BITS) ? in intel_dp_dsc_compute_params()
1476 vdsc_cfg->block_pred_enable = in intel_dp_dsc_compute_params()
1480 return drm_dsc_compute_rc_parameters(vdsc_cfg); in intel_dp_dsc_compute_params()