Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/i915/display/
H A Dintel_vdsc.c109 intel_vdsc_set_min_max_qp(struct drm_dsc_config *vdsc_cfg, int buf, in intel_vdsc_set_min_max_qp() argument
112 int bpc = vdsc_cfg->bits_per_component; in intel_vdsc_set_min_max_qp()
115 vdsc_cfg->rc_range_params[buf].range_min_qp = in intel_vdsc_set_min_max_qp()
116 intel_lookup_range_min_qp(bpc, buf, bpp, vdsc_cfg->native_420); in intel_vdsc_set_min_max_qp()
117 vdsc_cfg->rc_range_params[buf].range_max_qp = in intel_vdsc_set_min_max_qp()
118 intel_lookup_range_max_qp(bpc, buf, bpp, vdsc_cfg->native_420); in intel_vdsc_set_min_max_qp()
138 calculate_rc_params(struct drm_dsc_config *vdsc_cfg) in calculate_rc_params() argument
140 int bpp = fxp_q4_to_int(vdsc_cfg->bits_per_pixel); in calculate_rc_params()
141 int bpc = vdsc_cfg->bits_per_component; in calculate_rc_params()
147 if (vdsc_cfg->slice_height >= 8) in calculate_rc_params()
[all …]
H A Dicl_dsi.c1621 struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config; in gen11_dsi_dsc_compute_config() local
1634 vdsc_cfg->rc_model_size = DSC_RC_MODEL_SIZE_CONST; in gen11_dsi_dsc_compute_config()
1636 vdsc_cfg->pic_height = crtc_state->hw.adjusted_mode.crtc_vdisplay; in gen11_dsi_dsc_compute_config()
1643 drm_WARN_ON(display->drm, vdsc_cfg->vbr_enable); in gen11_dsi_dsc_compute_config()
1644 drm_WARN_ON(display->drm, vdsc_cfg->simple_422); in gen11_dsi_dsc_compute_config()
1646 vdsc_cfg->pic_width % vdsc_cfg->slice_width); in gen11_dsi_dsc_compute_config()
1647 drm_WARN_ON(display->drm, vdsc_cfg->slice_height < 8); in gen11_dsi_dsc_compute_config()
1649 vdsc_cfg->pic_height % vdsc_cfg->slice_height); in gen11_dsi_dsc_compute_config()
1651 ret = drm_dsc_compute_rc_parameters(vdsc_cfg); in gen11_dsi_dsc_compute_config()
H A Dintel_dp.c1977 struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config; in intel_dp_dsc_compute_params() local
1986 vdsc_cfg->rc_model_size = DSC_RC_MODEL_SIZE_CONST; in intel_dp_dsc_compute_params()
1987 vdsc_cfg->pic_height = crtc_state->hw.adjusted_mode.crtc_vdisplay; in intel_dp_dsc_compute_params()
1989 vdsc_cfg->slice_height = intel_dp_get_slice_height(vdsc_cfg->pic_height); in intel_dp_dsc_compute_params()
1995 vdsc_cfg->dsc_version_major = in intel_dp_dsc_compute_params()
1998 vdsc_cfg->dsc_version_minor = in intel_dp_dsc_compute_params()
2001 if (vdsc_cfg->convert_rgb) in intel_dp_dsc_compute_params()
2002 vdsc_cfg->convert_rgb = in intel_dp_dsc_compute_params()
2006 vdsc_cfg->line_buf_depth = min(INTEL_DP_DSC_MAX_LINE_BUF_DEPTH, in intel_dp_dsc_compute_params()
2008 if (!vdsc_cfg->line_buf_depth) { in intel_dp_dsc_compute_params()
[all …]
H A Dintel_psr.c1311 const struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config; in psr2_granularity_check() local
1354 vdsc_cfg->slice_height % y_granularity) in psr2_granularity_check()
2713 const struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config; in intel_psr2_sel_fetch_pipe_alignment() local
2720 y_alignment = vdsc_cfg->slice_height; in intel_psr2_sel_fetch_pipe_alignment()
/linux/include/drm/display/
H A Ddrm_dsc_helper.h26 void drm_dsc_set_const_params(struct drm_dsc_config *vdsc_cfg);
27 void drm_dsc_set_rc_buf_thresh(struct drm_dsc_config *vdsc_cfg);
28 int drm_dsc_setup_rc_params(struct drm_dsc_config *vdsc_cfg, enum drm_dsc_params_type type);
29 int drm_dsc_compute_rc_parameters(struct drm_dsc_config *vdsc_cfg);
32 u32 drm_dsc_get_bpp_int(const struct drm_dsc_config *vdsc_cfg);