summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h
diff options
context:
space:
mode:
authorJosip Pavic <Josip.Pavic@amd.com>2019-11-26 20:26:14 +0300
committerAlex Deucher <alexander.deucher@amd.com>2019-12-19 00:09:09 +0300
commitd87dedb1eca506adbb2647e96615676c2915952b (patch)
tree88abd6dfda3368dd4ea02c764927e13264c7cbb2 /drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h
parent8d5bc3a5b8fec50ff175cf59a411723ae98b8317 (diff)
downloadlinux-d87dedb1eca506adbb2647e96615676c2915952b.tar.xz
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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h')
0 files changed, 0 insertions, 0 deletions