From 203b4cb49eb6b401893d1b6160380d3a4faa1856 Mon Sep 17 00:00:00 2001 From: Cho KyongHo Date: Mon, 16 Oct 2017 15:58:53 +0900 Subject: [PATCH] [COMMON] g2d: add support for custom tone mapping LUT The look-up table for tone mapping can be overwritten by the superuser through the module parameter of hdr_tunables module intorduced by "video: hdr: add tunable parameters for HDR" commit. Once tone mapping LUT has been written to the parameter and becomes valid, it is immediately applied to every tasks executed by G2D. All tone mapping coefficients are overwritten with the values in the paramter. Change-Id: I871bfe6d9ab4740ad8519b09f0a5b1bce257d1c3 Signed-off-by: Cho KyongHo --- drivers/gpu/exynos/g2d/g2d_command.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/exynos/g2d/g2d_command.c b/drivers/gpu/exynos/g2d/g2d_command.c index b03018e28886..3fc110201a05 100644 --- a/drivers/gpu/exynos/g2d/g2d_command.c +++ b/drivers/gpu/exynos/g2d/g2d_command.c @@ -17,6 +17,8 @@ #include #include +#include