mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-18 06:15:12 +00:00
drm/amd/display: Check other planes for iflip only if GSL already enabled
[Why] We don't want GSL to be enabled when only updating plane address [How] Only check other pipes for immediate flip if GSL is already enabled Signed-off-by: Alvin Lee <alvin.lee2@amd.com> Acked-by: Bindu Ramamurthy <bindu.r@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
5c68c65295
commit
4f6274b3b9
@ -1163,11 +1163,13 @@ void dcn20_pipe_control_lock(
|
||||
if (pipe->plane_state != NULL)
|
||||
flip_immediate = pipe->plane_state->flip_immediate;
|
||||
|
||||
temp_pipe = pipe->bottom_pipe;
|
||||
while (!flip_immediate && temp_pipe) {
|
||||
if (temp_pipe->plane_state != NULL)
|
||||
flip_immediate = temp_pipe->plane_state->flip_immediate;
|
||||
temp_pipe = temp_pipe->bottom_pipe;
|
||||
if (pipe->stream_res.gsl_group > 0) {
|
||||
temp_pipe = pipe->bottom_pipe;
|
||||
while (!flip_immediate && temp_pipe) {
|
||||
if (temp_pipe->plane_state != NULL)
|
||||
flip_immediate = temp_pipe->plane_state->flip_immediate;
|
||||
temp_pipe = temp_pipe->bottom_pipe;
|
||||
}
|
||||
}
|
||||
|
||||
if (flip_immediate && lock) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user