Searched refs:vdsc_cfg (Results 1 – 6 of 6) sorted by relevance
/linux-6.1.9/drivers/gpu/drm/display/ |
D | drm_dsc_helper.c | 283 int drm_dsc_compute_rc_parameters(struct drm_dsc_config *vdsc_cfg) in drm_dsc_compute_rc_parameters() argument 293 if (vdsc_cfg->native_420 || vdsc_cfg->native_422) { in drm_dsc_compute_rc_parameters() 295 groups_per_line = DIV_ROUND_UP(vdsc_cfg->slice_width / 2, in drm_dsc_compute_rc_parameters() 299 vdsc_cfg->slice_chunk_size = DIV_ROUND_UP(vdsc_cfg->slice_width / 2 * in drm_dsc_compute_rc_parameters() 300 vdsc_cfg->bits_per_pixel, in drm_dsc_compute_rc_parameters() 304 groups_per_line = DIV_ROUND_UP(vdsc_cfg->slice_width, in drm_dsc_compute_rc_parameters() 308 vdsc_cfg->slice_chunk_size = DIV_ROUND_UP(vdsc_cfg->slice_width * in drm_dsc_compute_rc_parameters() 309 vdsc_cfg->bits_per_pixel, in drm_dsc_compute_rc_parameters() 313 if (vdsc_cfg->convert_rgb) in drm_dsc_compute_rc_parameters() 314 num_extra_mux_bits = 3 * (vdsc_cfg->mux_word_size + in drm_dsc_compute_rc_parameters() [all …]
|
/linux-6.1.9/drivers/gpu/drm/i915/display/ |
D | intel_vdsc.c | 379 struct drm_dsc_config *vdsc_cfg) in calculate_rc_params() argument 381 int bpc = vdsc_cfg->bits_per_component; in calculate_rc_params() 382 int bpp = vdsc_cfg->bits_per_pixel >> 4; in calculate_rc_params() 398 if (vdsc_cfg->slice_height >= 8) in calculate_rc_params() 400 12 + DIV_ROUND_UP((9 * min(34, vdsc_cfg->slice_height - 8)), 100); in calculate_rc_params() 402 rc->first_line_bpg_offset = 2 * (vdsc_cfg->slice_height - 1); in calculate_rc_params() 456 struct drm_dsc_config *vdsc_cfg = &pipe_config->dsc.config; in intel_dsc_compute_params() local 462 vdsc_cfg->pic_width = pipe_config->hw.adjusted_mode.crtc_hdisplay; in intel_dsc_compute_params() 463 vdsc_cfg->slice_width = DIV_ROUND_UP(vdsc_cfg->pic_width, in intel_dsc_compute_params() 467 vdsc_cfg->simple_422 = false; in intel_dsc_compute_params() [all …]
|
D | icl_dsi.c | 1612 struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config; in gen11_dsi_dsc_compute_config() local 1628 vdsc_cfg->convert_rgb = true; in gen11_dsi_dsc_compute_config() 1631 vdsc_cfg->rc_model_size = DSC_RC_MODEL_SIZE_CONST; in gen11_dsi_dsc_compute_config() 1633 vdsc_cfg->pic_height = crtc_state->hw.adjusted_mode.crtc_vdisplay; in gen11_dsi_dsc_compute_config() 1640 drm_WARN_ON(&dev_priv->drm, vdsc_cfg->vbr_enable); in gen11_dsi_dsc_compute_config() 1641 drm_WARN_ON(&dev_priv->drm, vdsc_cfg->simple_422); in gen11_dsi_dsc_compute_config() 1643 vdsc_cfg->pic_width % vdsc_cfg->slice_width); in gen11_dsi_dsc_compute_config() 1644 drm_WARN_ON(&dev_priv->drm, vdsc_cfg->slice_height < 8); in gen11_dsi_dsc_compute_config() 1646 vdsc_cfg->pic_height % vdsc_cfg->slice_height); in gen11_dsi_dsc_compute_config() 1648 ret = drm_dsc_compute_rc_parameters(vdsc_cfg); in gen11_dsi_dsc_compute_config()
|
D | intel_dp.c | 1407 struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config; in intel_dp_dsc_compute_params() local 1417 vdsc_cfg->rc_model_size = DSC_RC_MODEL_SIZE_CONST; in intel_dp_dsc_compute_params() 1418 vdsc_cfg->pic_height = crtc_state->hw.adjusted_mode.crtc_vdisplay; in intel_dp_dsc_compute_params() 1425 if (vdsc_cfg->pic_height % 8 == 0) in intel_dp_dsc_compute_params() 1426 vdsc_cfg->slice_height = 8; in intel_dp_dsc_compute_params() 1427 else if (vdsc_cfg->pic_height % 4 == 0) in intel_dp_dsc_compute_params() 1428 vdsc_cfg->slice_height = 4; in intel_dp_dsc_compute_params() 1430 vdsc_cfg->slice_height = 2; in intel_dp_dsc_compute_params() 1436 vdsc_cfg->dsc_version_major = in intel_dp_dsc_compute_params() 1439 vdsc_cfg->dsc_version_minor = in intel_dp_dsc_compute_params() [all …]
|
D | intel_bios.c | 3431 struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config; in fill_dsc() local 3434 vdsc_cfg->dsc_version_major = dsc->version_major; in fill_dsc() 3435 vdsc_cfg->dsc_version_minor = dsc->version_minor; in fill_dsc() 3480 vdsc_cfg->rc_model_size = drm_dsc_dp_rc_buffer_size(dsc->rc_buffer_block_size, in fill_dsc() 3484 vdsc_cfg->line_buf_depth = VBT_DSC_LINE_BUFFER_DEPTH(dsc->line_buffer_depth); in fill_dsc() 3486 vdsc_cfg->block_pred_enable = dsc->block_prediction_enable; in fill_dsc() 3488 vdsc_cfg->slice_height = dsc->slice_height; in fill_dsc()
|
/linux-6.1.9/include/drm/display/ |
D | drm_dsc_helper.h | 17 int drm_dsc_compute_rc_parameters(struct drm_dsc_config *vdsc_cfg);
|