OSDN Git Service

drm/amd/display: Refactor use_lut() from dce110 to dce
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>
Tue, 16 May 2017 17:52:28 +0000 (13:52 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:07:19 +0000 (18:07 -0400)
commit98489c026edc48d9c783f783cc82f2e8811e0ee4
tree26c21cd93adb919d295c5ec7e6d1655d500236b9
parentafc8935ef0fc04c87cd7e7749ff28c32be4f712a
drm/amd/display: Refactor use_lut() from dce110 to dce

use_lut() checks if the input surface's pixel format is compatible with
a 256 entry LUT. This function can be used across different versions and
not just dce11.

Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.c
drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.h
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c