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)
commite43a432c018a9a2c2641e1f8c08a836cc83982cd
treef5fa445dec6b64d059b49c6afe798fdac7e9d809
parent754e3673201eb192be68b8a07f2e448d75f69dfe
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