From: hyesoo.yu Date: Thu, 31 May 2018 10:02:27 +0000 (+0900) Subject: [COMMON] g2d: increase max extra regs for coefficient X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=39711d71af774a248b51a4bee2847d4b18bf11c7;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] g2d: increase max extra regs for coefficient Change-Id: I3ab380c8663198e35d60ff9eb3fc7c9c61af150b Signed-off-by: hyesoo.yu --- 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