Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Fix handling of linear transfer function

Signed-off-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Vitaly Prosyak and committed by
Alex Deucher
9eee2137 3f7194bc

+4 -2
+4 -2
drivers/gpu/drm/amd/display/modules/color/color_gamma.c
··· 1267 1267 bool ret = false; 1268 1268 struct pwl_float_data_ex *rgb_regamma = NULL; 1269 1269 1270 - if (trans == TRANSFER_FUNCTION_UNITY) { 1270 + if (trans == TRANSFER_FUNCTION_UNITY || 1271 + trans == TRANSFER_FUNCTION_LINEAR) { 1271 1272 points->end_exponent = 0; 1272 1273 points->x_point_at_y1_red = 1; 1273 1274 points->x_point_at_y1_green = 1; ··· 1338 1337 bool ret = false; 1339 1338 struct pwl_float_data_ex *rgb_degamma = NULL; 1340 1339 1341 - if (trans == TRANSFER_FUNCTION_UNITY) { 1340 + if (trans == TRANSFER_FUNCTION_UNITY || 1341 + trans == TRANSFER_FUNCTION_LINEAR) { 1342 1342 1343 1343 for (i = 0; i <= MAX_HW_POINTS ; i++) { 1344 1344 points->red[i] = coordinates_x[i].x;