drm/amd/display: Correct degamma coefficients
authorJaehyun Chung <jaehyun.chung@amd.com>
Fri, 27 Aug 2021 20:10:54 +0000 (16:10 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Sep 2021 19:57:10 +0000 (15:57 -0400)
[Why]
Some incorrect coefficients were being used

Reviewed-by: Michael Strauss <michael.strauss@amd.com>
Acked-by: Mikita Lipski <mikita.lipski@amd.com>
Signed-off-by: Jaehyun Chung <jaehyun.chung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/color/color_gamma.c

index 275f11f8bea3f56e779f857ad96cfcaa03f633fd..2465c88e28793f9ecebed3c7506eaf9ab1bc5e74 100644 (file)
@@ -61,7 +61,7 @@ static const int32_t regamma_numerator03[] = { 55,      99,     0,  0,  0};
 static const int32_t regamma_numerator04[] = { 55,      99,     0,  0,  0};
 static const int32_t regamma_numerator05[] = { 2400,    2200,   2200, 2400, 2600};
 
-static const int32_t degamma_numerator01[] = { 40450,   810000, 0,  0,  0};
+static const int32_t degamma_numerator01[] = { 404500,  180000, 0,  0,  0};
 static const int32_t degamma_numerator02[] = { 12920,   4500,   0,  0,  0};
 static const int32_t degamma_numerator03[] = { 55,      99,     0,  0,  0};
 static const int32_t degamma_numerator04[] = { 55,      99,     0,  0,  0};