Commit febb414
drm/amd/display: Trivial swizzle-related code clean-ups
This is a very trivial code clean-up related to commit 5468c36
("drm/amd/display: Filter Invalid 420 Modes for HDMI TMDS"). This commit
added a validation on driver probe to prevent invalid TMDS modes, but one
of the fake properties (swizzle) ended-up causing a warning on driver
probe; was reported here: https://gitlab.freedesktop.org/drm/amd/-/issues/2264.
It was fixed by commit a1cbe69 ("drm/amd/display: patch cases with
unknown plane state to prevent warning"), but the validation code had
a double variable assignment, which we hereby remove. Also, the fix relies
in the dcn2{0,1}patch_unknown_plane_state() callbacks, so while at it we
took the opportunity to perform a small code clean-up in such routines.
Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
Cc: Daniel Wheeler <daniel.wheeler@amd.com>
Cc: Fangzhi Zuo <Jerry.Zuo@amd.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Leo Li <sunpeng.li@amd.com>
Cc: Mark Broadworth <mark.broadworth@amd.com>
Cc: Melissa Wen <mwen@igalia.com>
Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Cc: Sung Joon Kim <Sungjoon.Kim@amd.com>
Cc: Swapnil Patel <Swapnil.Patel@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>1 parent 1c6d24b commit febb414
3 files changed
Lines changed: 4 additions & 11 deletions
File tree
- drivers/gpu/drm/amd/display
- amdgpu_dm
- dc
- dcn20
- dcn21
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6365 | 6365 | | |
6366 | 6366 | | |
6367 | 6367 | | |
6368 | | - | |
6369 | 6368 | | |
6370 | 6369 | | |
6371 | 6370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2225 | 2225 | | |
2226 | 2226 | | |
2227 | 2227 | | |
2228 | | - | |
2229 | | - | |
| 2228 | + | |
2230 | 2229 | | |
2231 | | - | |
2232 | | - | |
2233 | | - | |
| 2230 | + | |
2234 | 2231 | | |
2235 | | - | |
2236 | 2232 | | |
2237 | 2233 | | |
2238 | 2234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1393 | 1393 | | |
1394 | 1394 | | |
1395 | 1395 | | |
1396 | | - | |
1397 | | - | |
1398 | 1396 | | |
1399 | 1397 | | |
1400 | 1398 | | |
1401 | 1399 | | |
1402 | 1400 | | |
1403 | | - | |
1404 | | - | |
| 1401 | + | |
| 1402 | + | |
1405 | 1403 | | |
1406 | 1404 | | |
1407 | 1405 | | |
| |||
0 commit comments