]> Git Repo - linux.git/commitdiff
drm/i915/display: Bitwise or the conversion colour specifier together
authorChris Wilson <[email protected]>
Wed, 23 Dec 2020 10:39:17 +0000 (10:39 +0000)
committerChris Wilson <[email protected]>
Fri, 15 Jan 2021 08:18:30 +0000 (08:18 +0000)
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 <[email protected]>
Cc: Uma Shankar <[email protected]>
Cc: Ankit Nautiyal <[email protected]>
Cc: Jani Nikula <[email protected]>
Reviewed-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/display/intel_dp.c

index ec94ebdaf7b86589a2589b0dba1275984e66047f..cf88b85200d1d4194e517a1edbdbb1384d342426 100644 (file)
@@ -5979,8 +5979,8 @@ intel_dp_update_420(struct intel_dp *intel_dp)
                                                        intel_dp->downstream_ports);
        rgb_to_ycbcr = drm_dp_downstream_rgb_to_ycbcr_conversion(intel_dp->dpcd,
                                                                 intel_dp->downstream_ports,
-                                                                DP_DS_HDMI_BT601_RGB_YCBCR_CONV ||
-                                                                DP_DS_HDMI_BT709_RGB_YCBCR_CONV ||
+                                                                DP_DS_HDMI_BT601_RGB_YCBCR_CONV |
+                                                                DP_DS_HDMI_BT709_RGB_YCBCR_CONV |
                                                                 DP_DS_HDMI_BT2020_RGB_YCBCR_CONV);
 
        if (INTEL_GEN(i915) >= 11) {
This page took 0.102352 seconds and 4 git commands to generate.