Searched refs:vdsc_cfg (Results 1 – 6 of 6) sorted by relevance
292 if (vdsc_cfg->native_420 || vdsc_cfg->native_422) { in drm_dsc_compute_rc_parameters()298 vdsc_cfg->slice_chunk_size = DIV_ROUND_UP(vdsc_cfg->slice_width / 2 * in drm_dsc_compute_rc_parameters()307 vdsc_cfg->slice_chunk_size = DIV_ROUND_UP(vdsc_cfg->slice_width * in drm_dsc_compute_rc_parameters()325 slice_bits = 8 * vdsc_cfg->slice_chunk_size * vdsc_cfg->slice_height; in drm_dsc_compute_rc_parameters()341 vdsc_cfg->final_offset = vdsc_cfg->rc_model_size - in drm_dsc_compute_rc_parameters()345 if (vdsc_cfg->final_offset >= vdsc_cfg->rc_model_size) { in drm_dsc_compute_rc_parameters()351 (vdsc_cfg->rc_model_size - vdsc_cfg->final_offset); in drm_dsc_compute_rc_parameters()367 vdsc_cfg->slice_bpg_offset = DIV_ROUND_UP(((vdsc_cfg->rc_model_size - in drm_dsc_compute_rc_parameters()397 rbs_min = vdsc_cfg->rc_model_size - vdsc_cfg->initial_offset + in drm_dsc_compute_rc_parameters()403 vdsc_cfg->rc_bits = (hrd_delay * vdsc_cfg->bits_per_pixel) / 16; in drm_dsc_compute_rc_parameters()[all …]
391 if (vdsc_cfg->slice_height >= 8) in calculate_rc_params()457 vdsc_cfg->slice_width = DIV_ROUND_UP(vdsc_cfg->pic_width, in intel_dsc_compute_params()461 vdsc_cfg->simple_422 = false; in intel_dsc_compute_params()463 vdsc_cfg->vbr_enable = false; in intel_dsc_compute_params()539 vdsc_cfg->initial_scale_value = (vdsc_cfg->rc_model_size << 3) / in intel_dsc_compute_params()540 (vdsc_cfg->rc_model_size - vdsc_cfg->initial_offset); in intel_dsc_compute_params()595 if (vdsc_cfg->convert_rgb) in intel_dsc_pps_configure()597 if (vdsc_cfg->simple_422) in intel_dsc_pps_configure()599 if (vdsc_cfg->vbr_enable) in intel_dsc_pps_configure()879 vdsc_cfg->slice_width) | in intel_dsc_pps_configure()[all …]
1605 struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config; in gen11_dsi_dsc_compute_config() local1621 vdsc_cfg->convert_rgb = true; in gen11_dsi_dsc_compute_config()1624 vdsc_cfg->rc_model_size = DSC_RC_MODEL_SIZE_CONST; in gen11_dsi_dsc_compute_config()1631 drm_WARN_ON(&dev_priv->drm, vdsc_cfg->vbr_enable); in gen11_dsi_dsc_compute_config()1632 drm_WARN_ON(&dev_priv->drm, vdsc_cfg->simple_422); in gen11_dsi_dsc_compute_config()1634 vdsc_cfg->pic_width % vdsc_cfg->slice_width); in gen11_dsi_dsc_compute_config()1635 drm_WARN_ON(&dev_priv->drm, vdsc_cfg->slice_height < 8); in gen11_dsi_dsc_compute_config()1637 vdsc_cfg->pic_height % vdsc_cfg->slice_height); in gen11_dsi_dsc_compute_config()1639 ret = drm_dsc_compute_rc_parameters(vdsc_cfg); in gen11_dsi_dsc_compute_config()
1273 vdsc_cfg->rc_model_size = DSC_RC_MODEL_SIZE_CONST; in intel_dp_dsc_compute_params()1280 if (vdsc_cfg->pic_height % 8 == 0) in intel_dp_dsc_compute_params()1281 vdsc_cfg->slice_height = 8; in intel_dp_dsc_compute_params()1282 else if (vdsc_cfg->pic_height % 4 == 0) in intel_dp_dsc_compute_params()1283 vdsc_cfg->slice_height = 4; in intel_dp_dsc_compute_params()1285 vdsc_cfg->slice_height = 2; in intel_dp_dsc_compute_params()1291 vdsc_cfg->dsc_version_major = in intel_dp_dsc_compute_params()1294 vdsc_cfg->dsc_version_minor = in intel_dp_dsc_compute_params()1309 if (vdsc_cfg->dsc_version_minor == 2) in intel_dp_dsc_compute_params()1316 vdsc_cfg->block_pred_enable = in intel_dp_dsc_compute_params()[all …]
2759 struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config; in fill_dsc() local2762 vdsc_cfg->dsc_version_major = dsc->version_major; in fill_dsc()2763 vdsc_cfg->dsc_version_minor = dsc->version_minor; in fill_dsc()2808 vdsc_cfg->rc_model_size = drm_dsc_dp_rc_buffer_size(dsc->rc_buffer_block_size, in fill_dsc()2812 vdsc_cfg->line_buf_depth = VBT_DSC_LINE_BUFFER_DEPTH(dsc->line_buffer_depth); in fill_dsc()2814 vdsc_cfg->block_pred_enable = dsc->block_prediction_enable; in fill_dsc()2816 vdsc_cfg->slice_height = dsc->slice_height; in fill_dsc()
609 int drm_dsc_compute_rc_parameters(struct drm_dsc_config *vdsc_cfg);
Completed in 27 milliseconds