linux/drivers/gpu/drm/amd/display/modules
Josip Pavic d87dedb1ec drm/amd/display: fix regamma build optimization
[Why]
When the global variable pow_buffer_ptr is set to -1, by definition
optimizations should not be used to build the regamma. Since
translate_from_linear_space unconditionally increments this global, it
inadvertently enables the optimization.

[How]
Increment pow_buffer_ptr only if it is not -1.

Signed-off-by: Josip Pavic <Josip.Pavic@amd.com>
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-12-18 16:09:09 -05:00
..
color drm/amd/display: fix regamma build optimization 2019-12-18 16:09:09 -05:00
freesync drm/amd/display: Reinstate LFC optimization 2019-12-18 16:09:08 -05:00
hdcp drm/amd/display: Remove unneeded semicolon in hdcp.c 2019-12-02 17:55:08 -05:00
inc drm/amd/display: Reinstate LFC optimization 2019-12-18 16:09:08 -05:00
info_packet drm/amd/display: set MSA MISC1 bit 6 while sending colorimetry in VSC SDP 2019-11-13 15:29:43 -05:00
power drm/amd/display: set minimum abm backlight level 2019-10-03 09:10:57 -05:00
stats drm/amd/display: remove redundant null pointer check before kfree 2018-09-26 21:09:12 -05:00
vmid drm/amd/display: add missing mod_vmid destructor 2019-06-22 09:34:14 -05:00