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>
Thu, 6 Aug 2020 20:49:29 +0000 (16:49 -0400)
commitab2cf4c86b24821b6a4164a20d46961da1686634
treee356047bce394bf9913eed2109567c457925ebe4
parentbd42538f1f40a6de16eead6ab01a1c214e6894e4
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