]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amd/display: Update plane scaling parameters for fast updates
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Mon, 25 Mar 2019 16:06:23 +0000 (12:06 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Apr 2019 05:20:35 +0000 (00:20 -0500)
commit7817183227798d32e0f49f2bfe865da05e48623a
tree8c8731984374f56e6d0a2572a3eb7c0c45651900
parent0a8d85e0a16051c06aa8ae6286dd434e719c55c6
drm/amd/display: Update plane scaling parameters for fast updates

[Why]
Plane scaling parameters are not correctly filled or updated when
performing fast updates.

They're filled when creating the dc plane state and during atomic check.

While the atomic check code path happens for the plane even during fast
updates, the issue is that they're done in place on the dc_plane_state
directly. This dc_plane_state may be the current state plane state
being used by the hardware, so these parameters won't be correctly
programmed.

The new scaling parameters should instead be passed as an update
to the plane.

[How]
Update fill_rects_from_plane_state to not modify dc_plane_state
directly. Update the call sites that use this to fill in the appropriate
values.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Sun peng Li <Sunpeng.Li@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c