]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/display: Bitwise or the conversion colour specifier together
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 23 Dec 2020 10:39:17 +0000 (10:39 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 15 Jan 2021 08:18:30 +0000 (08:18 +0000)
commit6b20b734bbf126781ce27deb236d06961117060c
tree2fa526891db5dacb178086e54be87f89bb938c54
parentba8ef8c0b95856d7f5df5580f283d74ee20f6382
drm/i915/display: Bitwise or the conversion colour specifier together

drivers/gpu/drm/i915/display/intel_dp.c:6922 intel_dp_update_420() warn: should this be a bitwise op?
drivers/gpu/drm/i915/display/intel_dp.c:6922 intel_dp_update_420() warn: should this be a bitwise op?
drivers/gpu/drm/i915/display/intel_dp.c:6923 intel_dp_update_420() warn: should this be a bitwise op?

Inside drm_dp_downstream_rgb_to_ycbcr_conversion(), that parameter
'color_spc' is used as return port_cap[3] & color_spc, implying that it
is indeed a mask and not a boolean value.

Fixes: 522508b665df ("drm/i915/display: Let PCON convert from RGB to YCbCr if it can")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Uma Shankar <uma.shankar@intel.com>
Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201223103917.14687-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/display/intel_dp.c