Home
last modified time | relevance | path

Searched refs:dsc_cfg (Results 1 – 16 of 16) sorted by relevance

/Linux-v5.4/drivers/gpu/drm/
Ddrm_dsc.c70 const struct drm_dsc_config *dsc_cfg) in drm_dsc_pps_payload_pack() argument
82 dsc_cfg->dsc_version_minor | in drm_dsc_pps_payload_pack()
83 dsc_cfg->dsc_version_major << DSC_PPS_VERSION_MAJOR_SHIFT; in drm_dsc_pps_payload_pack()
89 dsc_cfg->line_buf_depth | in drm_dsc_pps_payload_pack()
90 dsc_cfg->bits_per_component << DSC_PPS_BPC_SHIFT; in drm_dsc_pps_payload_pack()
94 ((dsc_cfg->bits_per_pixel & DSC_PPS_BPP_HIGH_MASK) >> in drm_dsc_pps_payload_pack()
96 dsc_cfg->vbr_enable << DSC_PPS_VBR_EN_SHIFT | in drm_dsc_pps_payload_pack()
97 dsc_cfg->simple_422 << DSC_PPS_SIMPLE422_SHIFT | in drm_dsc_pps_payload_pack()
98 dsc_cfg->convert_rgb << DSC_PPS_CONVERT_RGB_SHIFT | in drm_dsc_pps_payload_pack()
99 dsc_cfg->block_pred_enable << DSC_PPS_BLOCK_PRED_EN_SHIFT; in drm_dsc_pps_payload_pack()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dsc/
Drc_calc_dpi.c75 static void copy_rc_to_cfg(struct drm_dsc_config *dsc_cfg, const struct rc_params *rc) in copy_rc_to_cfg() argument
79 dsc_cfg->rc_quant_incr_limit0 = rc->rc_quant_incr_limit0; in copy_rc_to_cfg()
80 dsc_cfg->rc_quant_incr_limit1 = rc->rc_quant_incr_limit1; in copy_rc_to_cfg()
81 dsc_cfg->initial_offset = rc->initial_fullness_offset; in copy_rc_to_cfg()
82 dsc_cfg->initial_xmit_delay = rc->initial_xmit_delay; in copy_rc_to_cfg()
83 dsc_cfg->first_line_bpg_offset = rc->first_line_bpg_offset; in copy_rc_to_cfg()
84 dsc_cfg->second_line_bpg_offset = rc->second_line_bpg_offset; in copy_rc_to_cfg()
85 dsc_cfg->flatness_min_qp = rc->flatness_min_qp; in copy_rc_to_cfg()
86 dsc_cfg->flatness_max_qp = rc->flatness_max_qp; in copy_rc_to_cfg()
88 dsc_cfg->rc_range_params[i].range_min_qp = rc->qp_min[i]; in copy_rc_to_cfg()
[all …]
Ddc_dsc.c515 struct dc_dsc_config *dsc_cfg) in setup_dsc_config() argument
530 memset(dsc_cfg, 0, sizeof(struct dc_dsc_config)); in setup_dsc_config()
548 dsc_cfg->bits_per_pixel = target_bpp; in setup_dsc_config()
558 dsc_cfg->ycbcr422_simple = false; in setup_dsc_config()
576 dsc_cfg->ycbcr422_simple = is_dsc_possible; in setup_dsc_config()
674 dsc_cfg->num_slices_h = num_slices_h; in setup_dsc_config()
695 dsc_cfg->num_slices_v = pic_height/slice_height; in setup_dsc_config()
700 dsc_cfg->block_pred_enable = dsc_common_caps.is_block_pred_supported; in setup_dsc_config()
701 dsc_cfg->linebuf_depth = dsc_common_caps.lb_bit_depth; in setup_dsc_config()
702 dsc_cfg->version_minor = (dsc_common_caps.dsc_version & 0xf0) >> 4; in setup_dsc_config()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_dsc.c32 static bool dsc_prepare_config(const struct dsc_config *dsc_cfg, struct dsc_reg_values *dsc_reg_val…
43 …bool dsc2_validate_stream(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg);
44 static void dsc2_set_config(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg,
46 …cked_pps(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg, uint8_t *dsc_pac…
164 … bool dsc2_validate_stream(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg) in dsc2_validate_stream() argument
169 if (dsc_cfg->pic_width > dsc20->max_image_width) in dsc2_validate_stream()
172 return dsc_prepare_config(dsc_cfg, &dsc20->reg_vals, &dsc_optc_cfg); in dsc2_validate_stream()
187 static void dsc2_set_config(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg, in dsc2_set_config() argument
195 dsc_config_log(dsc, dsc_cfg); in dsc2_set_config()
196 is_config_ok = dsc_prepare_config(dsc_cfg, &dsc20->reg_vals, dsc_optc_cfg); in dsc2_set_config()
[all …]
Ddcn20_resource.c1790 pipes[pipe_cnt].dout.dsc_slices = res_ctx->pipe_ctx[i].stream->timing.dsc_cfg.num_slices_h; in dcn20_populate_dml_pipes_from_context()
2143 struct dsc_config dsc_cfg; in dcn20_validate_dsc() local
2154 dsc_cfg.pic_width = (stream->timing.h_addressable + stream->timing.h_border_left in dcn20_validate_dsc()
2156 dsc_cfg.pic_height = stream->timing.v_addressable + stream->timing.v_border_top in dcn20_validate_dsc()
2158 dsc_cfg.pixel_encoding = stream->timing.pixel_encoding; in dcn20_validate_dsc()
2159 dsc_cfg.color_depth = stream->timing.display_color_depth; in dcn20_validate_dsc()
2160 dsc_cfg.dc_dsc_cfg = stream->timing.dsc_cfg; in dcn20_validate_dsc()
2161 dsc_cfg.dc_dsc_cfg.num_slices_h /= opp_cnt; in dcn20_validate_dsc()
2163 if (!pipe_ctx->stream_res.dsc->funcs->dsc_validate_stream(pipe_ctx->stream_res.dsc, &dsc_cfg)) in dcn20_validate_dsc()
Ddcn20_stream_encoder.c445 && !timing->dsc_cfg.ycbcr422_simple); in is_two_pixels_per_containter()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/core/
Ddc_link_hwss.c393 struct dsc_config dsc_cfg; in dp_set_dsc_on_stream() local
398dsc_cfg.pic_width = (stream->timing.h_addressable + stream->timing.h_border_left + stream->timing.… in dp_set_dsc_on_stream()
399dsc_cfg.pic_height = stream->timing.v_addressable + stream->timing.v_border_top + stream->timing.v… in dp_set_dsc_on_stream()
400 dsc_cfg.pixel_encoding = stream->timing.pixel_encoding; in dp_set_dsc_on_stream()
401 dsc_cfg.color_depth = stream->timing.display_color_depth; in dp_set_dsc_on_stream()
402 dsc_cfg.dc_dsc_cfg = stream->timing.dsc_cfg; in dp_set_dsc_on_stream()
403 ASSERT(dsc_cfg.dc_dsc_cfg.num_slices_h % opp_cnt == 0); in dp_set_dsc_on_stream()
404 dsc_cfg.dc_dsc_cfg.num_slices_h /= opp_cnt; in dp_set_dsc_on_stream()
406 dsc->funcs->dsc_set_config(dsc, &dsc_cfg, &dsc_optc_cfg); in dp_set_dsc_on_stream()
411 odm_dsc->funcs->dsc_set_config(odm_dsc, &dsc_cfg, &dsc_optc_cfg); in dp_set_dsc_on_stream()
[all …]
Ddc_stream.c112 memset(&stream->timing.dsc_cfg, 0, sizeof(stream->timing.dsc_cfg)); in construct()
113 stream->timing.dsc_cfg.num_slices_h = 0; in construct()
114 stream->timing.dsc_cfg.num_slices_v = 0; in construct()
115 stream->timing.dsc_cfg.bits_per_pixel = 128; in construct()
116 stream->timing.dsc_cfg.block_pred_enable = 1; in construct()
117 stream->timing.dsc_cfg.linebuf_depth = 9; in construct()
118 stream->timing.dsc_cfg.version_minor = 2; in construct()
119 stream->timing.dsc_cfg.ycbcr422_simple = 0; in construct()
Ddc.c1852 struct dc_dsc_config old_dsc_cfg = stream->timing.dsc_cfg; in copy_stream_update_to_stream()
1857 stream->timing.dsc_cfg = *update->dsc_config; in copy_stream_update_to_stream()
1861 stream->timing.dsc_cfg = old_dsc_cfg; in copy_stream_update_to_stream()
Ddc_link.c2920 kbps = (timing->pix_clk_100hz * timing->dsc_cfg.bits_per_pixel); in dc_bandwidth_in_kbps_from_timing()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/inc/hw/
Ddsc.h93 …ol (*dsc_validate_stream)(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg);
94 void (*dsc_set_config)(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg,
96 bool (*dsc_get_packed_pps)(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg,
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/
Ddc_dsc.h60 struct dc_dsc_config *dsc_cfg);
Ddc_hw_types.h803 struct dc_dsc_config dsc_cfg; member
/Linux-v5.4/include/drm/
Ddrm_dsc.h606 const struct drm_dsc_config *dsc_cfg);
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_optc.c1554 && !timing->dsc_cfg.ycbcr422_simple); in optc1_is_two_pixels_per_containter()
/Linux-v5.4/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm.c3628 &stream->timing.dsc_cfg)) in create_stream_for_sink()