mirror_ubuntu-kernels/drivers/gpu/drm/amd/display
Josip Pavic f9b9b6d972 drm/amd/display: fix dcc swath size calculations on dcn1
[Why]
Swath sizes are being calculated incorrectly. The horizontal swath size
should be the product of block height, viewport width, and bytes per
element, but the calculation uses viewport height instead of width. The
vertical swath size is similarly incorrectly calculated. The effect of
this is that we report the wrong DCC caps.

[How]
Use viewport width in the horizontal swath size calculation and viewport
height in the vertical swath size calculation.

Signed-off-by: Josip Pavic <Josip.Pavic@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-03-05 00:30:29 -05:00
..
amdgpu_dm drm/amd/display: fix typo "to found" -> "to find" 2020-03-05 00:29:28 -05:00
dc drm/amd/display: fix dcc swath size calculations on dcn1 2020-03-05 00:30:29 -05:00
dmub drm/amd/display: Add driver support for enabling PSR on DMCUB 2020-02-25 11:09:06 -05:00
include drm/amd/display: Fix RV2 Variant Detection 2020-02-25 11:09:12 -05:00
modules drm/amd/display: Workaround to do HDCP authentication twice on certain displays 2020-03-05 00:30:04 -05:00
Kconfig amdgpu: Enable initial DCN support on POWER 2019-12-18 16:09:05 -05:00
Makefile drm/amd/display: Drop CONFIG_DRM_AMD_DC_DMUB guards 2019-11-13 15:29:42 -05:00
TODO drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00