Commit 6d181a28 authored by Vinod Govindapillai's avatar Vinod Govindapillai Committed by Jouni Högander
Browse files

drm/i915/xe2lpd: update the dsc feature capability



Update the global dsc flag based on the display capabilities
reported.

v1: define the field values instead of the magic number (JaniN)

Bspec: 71161
Signed-off-by: default avatarVinod Govindapillai <vinod.govindapillai@intel.com>
Reviewed-by: default avatarJouni Högander <jouni.hogander@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231001113155.80659-3-vinod.govindapillai@intel.com


Signed-off-by: default avatarJouni Högander <jouni.hogander@intel.com>
parent 9a3acd8c
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1072,6 +1072,14 @@ static void __intel_display_device_info_runtime_init(struct drm_i915_private *i9
			display_runtime->has_dsc = 0;
	}

	if (DISPLAY_VER(i915) >= 20) {
		u32 cap = intel_de_read(i915, XE2LPD_DE_CAP);

		if (REG_FIELD_GET(XE2LPD_DE_CAP_DSC_MASK, cap) ==
		    XE2LPD_DE_CAP_DSC_REMOVED)
			display_runtime->has_dsc = 0;
	}

	return;

display_fused_off: