OSDN Git Service

drm/amd/display: Change null plane state swizzle mode to 4kb_s
authorGeorge Shen <george.shen@amd.com>
Fri, 17 Jul 2020 17:19:27 +0000 (13:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Aug 2020 21:29:28 +0000 (17:29 -0400)
commit0914d1154f0ff03944d485f610efa3158aee4a06
tree3b8013e94c2cf39ae76c4d7b408a2e720868c59b
parent519d91d87f2e19727de772402ac0977633bbd13a
drm/amd/display: Change null plane state swizzle mode to 4kb_s

[Why]
During SetPathMode and UpdatePlanes, the plane state can be null. We default
to linear swizzle mode when plane state is null. This resulted in bandwidth
validation failing when trying to set 8K60 mode (which previously passed validation
during rebuild timing list).

[How]
Change the default swizzle mode from linear to 4kb_s and update pitch accordingly.

Signed-off-by: George Shen <george.shen@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c