summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/display/intel_dp.c
diff options
context:
space:
mode:
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>2024-09-12 15:29:31 +0200
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>2024-09-16 07:51:25 +0200
commit26fee9e09be346e93a2fc4126cac244de498ec5a (patch)
treee5c1b0bdf071a5c55fc45e4384f3934e7404b69c /drivers/gpu/drm/i915/display/intel_dp.c
parentdrm/i915/dp: Fix AUX IO power enabling for eDP PSR (diff)
downloadlinux-26fee9e09be346e93a2fc4126cac244de498ec5a.tar.xz
linux-26fee9e09be346e93a2fc4126cac244de498ec5a.zip
drm/i915/display: Check whether platform supports joiner
Add macros to check if platform supports bigjoiner/uncompressed joiner. Replace the existing DISPLAY_VER checks with these. Additionally use it before readout for joiner stuff, where its missing. Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240912132931.1320686-1-ankit.k.nautiyal@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_dp.c')
-rw-r--r--drivers/gpu/drm/i915/display/intel_dp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index cb0f6db5f8e7..c53eb8e165de 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -2520,7 +2520,7 @@ bool intel_dp_joiner_needs_dsc(struct drm_i915_private *i915, bool use_joiner)
* limitation. DG2 onwards pipe joiner can be enabled without
* compression.
*/
- return DISPLAY_VER(i915) < 13 && use_joiner;
+ return !HAS_UNCOMPRESSED_JOINER(i915) && use_joiner;
}
static int