Lines Matching full:dsc
50 /* There's no pipe A DSC engine on ICL */ in is_pipe_dsc()
70 * We are using the method provided in DSC 1.2a C-Model in codec_main.c
71 * Above method use a common formula to derive values for any combination of DSC
99 * According to DSC 1.2 spec in Section 4.1 if native_420 is set: in calculate_rc_params()
267 struct drm_dsc_config *vdsc_cfg = &pipe_config->dsc.config; in intel_dsc_compute_params()
268 u16 compressed_bpp = fxp_q4_to_int(pipe_config->dsc.compressed_bpp_x16); in intel_dsc_compute_params()
274 pipe_config->dsc.slice_count); in intel_dsc_compute_params()
284 * According to DSC 1.2 specs if colorspace is YCbCr then convert_rgb is 0 in intel_dsc_compute_params()
299 vdsc_cfg->bits_per_pixel = pipe_config->dsc.compressed_bpp_x16; in intel_dsc_compute_params()
302 * According to DSC 1.2 specs in Section 4.1 if native_420 is set in intel_dsc_compute_params()
311 drm_dbg_kms(&dev_priv->drm, "DSC bpc requirements not met bpc: %d\n", in intel_dsc_compute_params()
383 return crtc_state->dsc.num_streams; in intel_dsc_get_vdsc_per_pipe()
439 const struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config; in intel_dsc_pps_configure()
695 const struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config; in intel_dsc_dsi_pps_write()
701 if (!crtc_state->dsc.compression_enable) in intel_dsc_dsi_pps_write()
718 const struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config; in intel_dsc_dp_pps_write()
721 if (!crtc_state->dsc.compression_enable) in intel_dsc_dp_pps_write()
727 /* Fill the PPS payload bytes as per DSC spec 1.2 Table 4-1 */ in intel_dsc_dp_pps_write()
753 if (crtc_state->joiner_pipes && !crtc_state->dsc.compression_enable) { in intel_uncompressed_joiner_enable()
771 if (!crtc_state->dsc.compression_enable) in intel_dsc_enable()
809 if (old_crtc_state->dsc.compression_enable || in intel_dsc_disable()
861 struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config; in intel_dsc_get_pps_config()
887 crtc_state->dsc.compressed_bpp_x16 = vdsc_cfg->bits_per_pixel; in intel_dsc_get_pps_config()
984 crtc_state->dsc.compression_enable = dss_ctl2 & VDSC0_ENABLE; in intel_dsc_get_config()
985 if (!crtc_state->dsc.compression_enable) in intel_dsc_get_config()
989 crtc_state->dsc.num_streams = 3; in intel_dsc_get_config()
991 crtc_state->dsc.num_streams = 2; in intel_dsc_get_config()
993 crtc_state->dsc.num_streams = 1; in intel_dsc_get_config()
1004 "dsc-dss: compressed-bpp:" FXP_Q4_FMT ", slice-count: %d, num_streams: %d\n", in intel_vdsc_dump_state()
1005 FXP_Q4_ARGS(crtc_state->dsc.compressed_bpp_x16), in intel_vdsc_dump_state()
1006 crtc_state->dsc.slice_count, in intel_vdsc_dump_state()
1007 crtc_state->dsc.num_streams); in intel_vdsc_dump_state()
1013 if (!crtc_state->dsc.compression_enable) in intel_vdsc_state_dump()
1017 drm_dsc_dump_config(p, indent, &crtc_state->dsc.config); in intel_vdsc_state_dump()
1027 if (!crtc_state->dsc.compression_enable) in intel_vdsc_min_cdclk()
1056 (fxp_q4_to_int_roundup(crtc_state->dsc.compressed_bpp_x16) * in intel_vdsc_min_cdclk()