diff options
author | Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> | 2019-01-10 09:51:54 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-02-05 21:16:22 -0500 |
commit | c7af5f77aecdfe95633327cffc7f0c9dd1b64ab1 (patch) | |
tree | c0e6cf11cfd08c90a51d7e730fec80d709d24b34 /drivers/gpu/drm/amd/display/modules/power/power_helpers.c | |
parent | f3e3698d05454f2aeb9ef9969fc58a68090441ad (diff) |
drm/amd/display: Use the right surface for flip and FreeSync
[Why]
We were always passing the first surface on the stream status for
flip updates when we should be using the surface associated with
the plane.
[How]
Use the dc_plane_state from the plane that's being updated.
FreeSync should also only keep track of updates from the primary
plane, so the check needed to be updated.
The acrtc->stream state doesn't need to be checked for NULL before
updating FreeSync either since there needs to be a stream to be
inside this function as a prerequisite.
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: David Francis <David.Francis@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/modules/power/power_helpers.c')
0 files changed, 0 insertions, 0 deletions