drm/amd/display: Don't use optimized gamma22 with eetf
authorAidan Yang <Aidan.Yang@amd.com>
Wed, 25 Sep 2019 20:57:37 +0000 (16:57 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 25 Oct 2019 20:50:07 +0000 (16:50 -0400)
commit6ac48490baec36aa58f246145d9671a916011c4e
tree27d47a8db631947ecb65ac9d95930b4d4d530e65
parent6f29c3588b41fab68aa807ff06da79c79b5bcdf7
drm/amd/display: Don't use optimized gamma22 with eetf

[why]
Optimized gamma22 assumes fixed point distribution which is not true
for eetf true.

[how]
Use long calculation for eetf.

Signed-off-by: Aidan Yang <Aidan.Yang@amd.com>
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Acked-by: Reza Amini <Reza.Amini@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/color/color_gamma.c