[COMMON] g2d: increase max extra regs for coefficient
authorhyesoo.yu <hyesoo.yu@samsung.com>
Thu, 31 May 2018 10:02:27 +0000 (19:02 +0900)
committerJanghyuck Kim <janghyuck.kim@samsung.com>
Mon, 23 Jul 2018 05:39:23 +0000 (14:39 +0900)
Change-Id: I3ab380c8663198e35d60ff9eb3fc7c9c61af150b
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
drivers/gpu/exynos/g2d/g2d_command.c

index 9999d3c033b09af51d7561944658281212544e02..cdd15e3b776fcb3307fccbcb7a0665171b155050 100644 (file)
  *   - 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