diff options
author | Roman Li <roman.li@amd.com> | 2020-01-13 10:26:19 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-01-22 16:55:28 -0500 |
commit | 7527791e1fbd595a294cf6e6f41999d8acf6c43f (patch) | |
tree | 87f1d2606c9910962077162a93e03698efb2d76d /drivers/gpu/drm/amd/display/dmub/src | |
parent | 022205ffbb8fc48bb12c7941f07c6e19bdf11155 (diff) | |
download | linux-7527791e1fbd595a294cf6e6f41999d8acf6c43f.tar.gz linux-7527791e1fbd595a294cf6e6f41999d8acf6c43f.tar.bz2 linux-7527791e1fbd595a294cf6e6f41999d8acf6c43f.zip |
drm/amd/display: Fix update type for multiple planes
[Why]
determine_update_type_for_commit() uses pointers to single instance
of local variable to fill scaling/color info for all planes updates.
This is a bug, that leads to incorrect update type for commit in case
of multiple planes per crtc.
Each plane should refer to separate scaling/color data.
[How]
Use arrays for plane properties.
Bundle all properties into a single structure to simplify memory allocation.
Signed-off-by: Roman Li <roman.li@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dmub/src')
0 files changed, 0 insertions, 0 deletions