]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Have DC manage its own allocation of gamma
authorAnthony Koo <Anthony.Koo@amd.com>
Tue, 27 Mar 2018 20:43:56 +0000 (16:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:43:01 +0000 (13:43 -0500)
commitf8a1232ac67b1bf60c7cb20132e81d5e71049782
treef5fa445dec6b64d059b49c6afe798fdac7e9d809
parent900dedb726fada1beb1d6f5cf291fa82bb4b068a
drm/amd/display: Have DC manage its own allocation of gamma

Creating plane will also allocate gamma and input TF
Creating stream will also allocate outputTF

Fix issue with gamma not applied
OS may call SetGamma before surface committed, so need to store
in target and apply later.

Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
drivers/gpu/drm/amd/display/dc/core/dc_surface.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c