]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix incorrect DML output_bpp value
authorIlya Bakoulin <Ilya.Bakoulin@amd.com>
Fri, 3 May 2019 21:22:32 +0000 (17:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 22 Jun 2019 14:34:13 +0000 (09:34 -0500)
commit39a7d1fee7d611ec3bbc1f65c8d86162f9ff468f
treedccf25485e8fb3a9aaf2d420dbd473d82fdedcbe
parentda67f38308b63ef6ba66e16b4d5feccb90ec7c87
drm/amd/display: Fix incorrect DML output_bpp value

[Why]
The output_bpp pipe parameter was assigned an incorrect value
(color depth enum), and subsequently used to overwrite
the OutputBpp parameter calculated by DML. Seems like this had no
effect except with DSC enabled, which would make DML produce
bad outputs.

[How]
Removed assignment to OutputBpp, fixed output_bpp assignment,
and properly set ForcedOutputLinkBPP instead of OutputBpp.
Also removed condition in DML that prevented forcing of
Output BPP with DSC enabled.

Signed-off-by: Ilya Bakoulin <Ilya.Bakoulin@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c