aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/modules/inc/mod_shared.h
diff options
context:
space:
mode:
authorNicholas Kazlauskas <[email protected]>2020-03-31 20:45:31 +0000
committerAlex Deucher <[email protected]>2020-04-22 22:11:47 +0000
commitd652509e7a244761755403a2ae3fb6c96183226e (patch)
tree811a5c021bc0d1f166111b51f4b472b8bbbd8642 /drivers/gpu/drm/amd/display/modules/inc/mod_shared.h
parentdrm/amd/display: Unify psr feature flags (diff)
downloadkernel-d652509e7a244761755403a2ae3fb6c96183226e.tar.gz
kernel-d652509e7a244761755403a2ae3fb6c96183226e.zip
drm/amd/display: Check ramp != NULL before applying lut1d for degamma
[Why] A NULL ramp is a valid configuration for passing into mod_color_calculate_degamma_params but we'll hit a NULL pointer if we do so. We need this in order to get the right transfer function to do degamma on NV12 formats where we aren't supplied with a custom user degamma. [How] Add the NULL check. Signed-off-by: Nicholas Kazlauskas <[email protected]> Reviewed-by: Zhan Liu <[email protected]> Acked-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/inc/mod_shared.h')
0 files changed, 0 insertions, 0 deletions