]> 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)
commit5165a05464c12177e0f8edfedfe2207582d42446
treef5fa445dec6b64d059b49c6afe798fdac7e9d809
parente43afcdb672212f1fe00f9308eb89bf09f4a42fa
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