]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: get tail pipe before aquire free pipe
authorEric Bernstein <eric.bernstein@amd.com>
Mon, 29 Oct 2018 20:05:47 +0000 (16:05 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Nov 2018 20:27:40 +0000 (15:27 -0500)
commit061343f489de0ab63a187c8ba38ce779fadb2e0b
tree2e504ac04f6aad5446b03c930969e5d0bb07c5d1
parent2c1e98f8952bafdd56cc5670fc847a1ba323b623
drm/amd/display: get tail pipe before aquire free pipe

[Why]
For some complicated blending transition cases, the head
pipe of the second stream may end up being a higher pipe
index than the free pipe.  In those cases dc_add_plane_to_context
will incorrectly set the tail_pipe to the free pipe, which
will cause the top_pipe and bottom_pipe to be the same

[How]
Move the call to resource_get_tail_pipe_for_stream() to be
before call to acquire_free_pipe_for_stream().

Signed-off-by: Eric Bernstein <eric.bernstein@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c