summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorWenjing Liu <Wenjing.Liu@amd.com>2019-05-22 11:50:20 -0400
committerAlex Deucher <alexander.deucher@amd.com>2019-06-22 09:34:13 -0500
commite710fdb134ad4c08ae2cabc6731fba6fb72fa0b8 (patch)
treeb04e7784f2deb3656ed2af32abd2e04e38ac4fe2 /drivers/gpu
parentf82c916c41974c4e786c7311c34c33ca67373092 (diff)
downloadlinux-stable-e710fdb134ad4c08ae2cabc6731fba6fb72fa0b8.tar.gz
linux-stable-e710fdb134ad4c08ae2cabc6731fba6fb72fa0b8.tar.bz2
linux-stable-e710fdb134ad4c08ae2cabc6731fba6fb72fa0b8.zip
drm/amd/display: update dsc max_target_bpp to 16 bpp
[why] According to the latest specs, the max_target bpp sink can support is 16 bpp. [how] update dsc max_target_bpp to 16 Signed-off-by: Wenjing Liu <Wenjing.Liu@amd.com> Reviewed-by: Jun Lei <Jun.Lei@amd.com> Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c b/drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c
index 96b18bb3b1cc..77e7a0f8a527 100644
--- a/drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c
+++ b/drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c
@@ -242,9 +242,6 @@ static bool intersect_dsc_caps(
}
struct dc_dsc_policy {
- float max_compression_ratio_legacy;
- float sst_compression_legacy; // Maximum quality if 0.0
- float mst_compression_legacy;
bool use_min_slices_h;
int max_slices_h; // Maximum available if 0
int num_slices_v;
@@ -274,18 +271,14 @@ static inline uint32_t calc_dsc_bpp_x16(uint32_t stream_bandwidth_kbps, uint32_t
}
const struct dc_dsc_policy dsc_policy = {
- .max_compression_ratio_legacy = 3.0f, // DSC Policy: Limit compression to 3:1 at most in all cases
- .sst_compression_legacy = 0.0f, // DSC Policy: SST - Maximum quality (0.0)
- .mst_compression_legacy = 3.0f, // DSC Policy: MST - always 3:1 compression
.use_min_slices_h = true, // DSC Policy: Use minimum number of slices that fits the pixel clock
.max_slices_h = 0, // DSC Policy: Use max available slices (in our case 4 for or 8, depending on the mode)
-
/* DSC Policy: Number of vertical slices set to 2 for no particular reason.
* Seems small enough to not affect the quality too much, while still providing some error
* propagation control (which may also help debugging).
*/
.num_slices_v = 16,
- .max_target_bpp = 24,
+ .max_target_bpp = 16,
.min_target_bpp = 8,
};