linux_dsm_epyc7002/drivers/gpu/drm/amd
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
..
acp drm/amdgpu: fix license on Kconfig and Makefiles 2019-12-11 15:22:08 -05:00
amdgpu drm/amdgpu/vcn: remove JPEG related code from idle handler and begin use 2019-12-18 16:09:07 -05:00
amdkfd drm/amdkfd: queue kfd interrupt work to different CPU 2019-12-18 16:09:05 -05:00
display drm/amd/display: fix regamma build optimization 2019-12-18 16:09:09 -05:00
include drm/amdgpu: add dpcs20 registers 2019-12-18 16:09:06 -05:00
powerplay drm/amdgpu/sriov: Tonga sriov also need load firmware with smu 2019-12-18 16:09:06 -05:00