From 39711d71af774a248b51a4bee2847d4b18bf11c7 Mon Sep 17 00:00:00 2001 From: "hyesoo.yu" Date: Thu, 31 May 2018 19:02:27 +0900 Subject: [PATCH] [COMMON] g2d: increase max extra regs for coefficient Change-Id: I3ab380c8663198e35d60ff9eb3fc7c9c61af150b Signed-off-by: hyesoo.yu --- drivers/gpu/exynos/g2d/g2d_command.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/exynos/g2d/g2d_command.c b/drivers/gpu/exynos/g2d/g2d_command.c index 9999d3c033b0..cdd15e3b776f 100644 --- a/drivers/gpu/exynos/g2d/g2d_command.c +++ b/drivers/gpu/exynos/g2d/g2d_command.c @@ -44,8 +44,10 @@ * - 2 matrices of EOTF * - 2 matrices of Gamut mapping * - 2 matrices Tone mappings + * - 2 set HDR Coefficient + * - 2 matrices of SET0/1 HDR Coefficient */ -#define MAX_EXTRA_REGS (9 * 5 + (65 + 9 + 33) * 2) +#define MAX_EXTRA_REGS (9 * 5 + (65 + 9 + 33) * 2 + 160 * 2) enum { TASK_REG_SOFT_RESET, @@ -566,6 +568,7 @@ static u16 extra_cmd_range[][2] = { /* {first, last} */ {0x3500, 0x3520}, /* Degamma 2.2 Coefficients */ {0x3600, 0x3680}, /* HDR Tone Mapping Coefficients */ {0x3700, 0x3780}, /* Degamma Tone Mapping Coefficients */ + {0x5000, 0x5B8C}, /* SET 0,1,2 Coefficients */ }; #define TARGET_OFFSET 0x120 -- 2.20.1