Commit ab487ea8 authored by Mike Hsieh's avatar Mike Hsieh Committed by Alex Deucher

drm/amd/display: fix typo in dc_dsc_config_options structure

[WHY]
There is a typo in dc_dsc_config_options structure

[HOW]
Fix the typo
Reviewed-by: default avatarWenjing Liu <Wenjing.Liu@amd.com>
Acked-by: default avatarQingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: default avatarMike Hsieh <Mike.Hsieh@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 11efe095
......@@ -57,7 +57,7 @@ struct dc_dsc_policy {
struct dc_dsc_config_options {
uint32_t dsc_min_slice_height_override;
uint32_t max_target_bpp_limit_override_x16;
uint32_t slight_height_granularity;
uint32_t slice_height_granularity;
};
bool dc_dsc_parse_dsc_dpcd(const struct dc *dc,
......
......@@ -355,7 +355,7 @@ bool dc_dsc_compute_bandwidth_range(
options.dsc_min_slice_height_override = dsc_min_slice_height_override;
options.max_target_bpp_limit_override_x16 = max_bpp_x16;
options.slight_height_granularity = 1;
options.slice_height_granularity = 1;
get_dsc_enc_caps(dsc, &dsc_enc_caps, timing->pix_clk_100hz);
......@@ -918,7 +918,7 @@ static bool setup_dsc_config(
slice_height = min((int)(options->dsc_min_slice_height_override), pic_height);
while (slice_height < pic_height && (pic_height % slice_height != 0 ||
slice_height % options->slight_height_granularity != 0 ||
slice_height % options->slice_height_granularity != 0 ||
(timing->pixel_encoding == PIXEL_ENCODING_YCBCR420 && slice_height % 2 != 0)))
slice_height++;
......@@ -1111,5 +1111,5 @@ void dc_dsc_get_default_config_option(const struct dc *dc, struct dc_dsc_config_
{
options->dsc_min_slice_height_override = dc->debug.dsc_min_slice_height_override;
options->max_target_bpp_limit_override_x16 = 0;
options->slight_height_granularity = 1;
options->slice_height_granularity = 1;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment