Home
last modified time | relevance | path

Searched refs:vdsc_cfg (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.15/drivers/gpu/drm/
Ddrm_dsc.c282 int drm_dsc_compute_rc_parameters(struct drm_dsc_config *vdsc_cfg) in drm_dsc_compute_rc_parameters() argument
292 if (vdsc_cfg->native_420 || vdsc_cfg->native_422) { in drm_dsc_compute_rc_parameters()
294 groups_per_line = DIV_ROUND_UP(vdsc_cfg->slice_width / 2, 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()
299 vdsc_cfg->bits_per_pixel, in drm_dsc_compute_rc_parameters()
303 groups_per_line = DIV_ROUND_UP(vdsc_cfg->slice_width, 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()
308 vdsc_cfg->bits_per_pixel, in drm_dsc_compute_rc_parameters()
312 if (vdsc_cfg->convert_rgb) in drm_dsc_compute_rc_parameters()
313 num_extra_mux_bits = 3 * (vdsc_cfg->mux_word_size + in drm_dsc_compute_rc_parameters()
[all …]
/Linux-v5.15/drivers/gpu/drm/i915/display/
Dintel_vdsc.c382 struct drm_dsc_config *vdsc_cfg) in calculate_rc_params() argument
384 int bpc = vdsc_cfg->bits_per_component; in calculate_rc_params()
385 int bpp = vdsc_cfg->bits_per_pixel >> 4; in calculate_rc_params()
393 if (vdsc_cfg->slice_height >= 8) in calculate_rc_params()
395 12 + DIV_ROUND_UP((9 * min(34, vdsc_cfg->slice_height - 8)), 100); in calculate_rc_params()
397 rc->first_line_bpg_offset = 2 * (vdsc_cfg->slice_height - 1); in calculate_rc_params()
451 struct drm_dsc_config *vdsc_cfg = &pipe_config->dsc.config; in intel_dsc_compute_params() local
457 vdsc_cfg->pic_width = pipe_config->hw.adjusted_mode.crtc_hdisplay; in intel_dsc_compute_params()
458 vdsc_cfg->pic_height = pipe_config->hw.adjusted_mode.crtc_vdisplay; in intel_dsc_compute_params()
459 vdsc_cfg->slice_width = DIV_ROUND_UP(vdsc_cfg->pic_width, in intel_dsc_compute_params()
[all …]
Dicl_dsi.c1602 struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config; in gen11_dsi_dsc_compute_config() local
1618 vdsc_cfg->convert_rgb = true; in gen11_dsi_dsc_compute_config()
1621 vdsc_cfg->rc_model_size = DSC_RC_MODEL_SIZE_CONST; in gen11_dsi_dsc_compute_config()
1628 drm_WARN_ON(&dev_priv->drm, vdsc_cfg->vbr_enable); in gen11_dsi_dsc_compute_config()
1629 drm_WARN_ON(&dev_priv->drm, vdsc_cfg->simple_422); in gen11_dsi_dsc_compute_config()
1631 vdsc_cfg->pic_width % vdsc_cfg->slice_width); in gen11_dsi_dsc_compute_config()
1632 drm_WARN_ON(&dev_priv->drm, vdsc_cfg->slice_height < 8); in gen11_dsi_dsc_compute_config()
1634 vdsc_cfg->pic_height % vdsc_cfg->slice_height); in gen11_dsi_dsc_compute_config()
1636 ret = drm_dsc_compute_rc_parameters(vdsc_cfg); in gen11_dsi_dsc_compute_config()
Dintel_dp.c1122 struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config; in intel_dp_dsc_compute_params() local
1132 vdsc_cfg->rc_model_size = DSC_RC_MODEL_SIZE_CONST; in intel_dp_dsc_compute_params()
1139 if (vdsc_cfg->pic_height % 8 == 0) in intel_dp_dsc_compute_params()
1140 vdsc_cfg->slice_height = 8; in intel_dp_dsc_compute_params()
1141 else if (vdsc_cfg->pic_height % 4 == 0) in intel_dp_dsc_compute_params()
1142 vdsc_cfg->slice_height = 4; in intel_dp_dsc_compute_params()
1144 vdsc_cfg->slice_height = 2; in intel_dp_dsc_compute_params()
1150 vdsc_cfg->dsc_version_major = in intel_dp_dsc_compute_params()
1153 vdsc_cfg->dsc_version_minor = in intel_dp_dsc_compute_params()
1158 vdsc_cfg->convert_rgb = intel_dp->dsc_dpcd[DP_DSC_DEC_COLOR_FORMAT_CAP - DP_DSC_SUPPORT] & in intel_dp_dsc_compute_params()
[all …]
Dintel_bios.c2717 struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config; in fill_dsc() local
2720 vdsc_cfg->dsc_version_major = dsc->version_major; in fill_dsc()
2721 vdsc_cfg->dsc_version_minor = dsc->version_minor; in fill_dsc()
2766 vdsc_cfg->rc_model_size = drm_dsc_dp_rc_buffer_size(dsc->rc_buffer_block_size, in fill_dsc()
2770 vdsc_cfg->line_buf_depth = VBT_DSC_LINE_BUFFER_DEPTH(dsc->line_buffer_depth); in fill_dsc()
2772 vdsc_cfg->block_pred_enable = dsc->block_prediction_enable; in fill_dsc()
2774 vdsc_cfg->slice_height = dsc->slice_height; in fill_dsc()
/Linux-v5.15/include/drm/
Ddrm_dsc.h609 int drm_dsc_compute_rc_parameters(struct drm_dsc_config *vdsc_cfg);