Skip to content

Commit 2b8b294

Browse files
vgovind2hogander
authored andcommitted
drm/i915/xe2lpd: update the scaler feature capability
Update the number of scalers per pipe based on the display capabilities reported. v1: define the field values instead of the magic number (JaniN) Bspec: 71161 Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com> Reviewed-by: Jouni Högander <jouni.hogander@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231001113155.80659-4-vinod.govindapillai@intel.com Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
1 parent 6d181a2 commit 2b8b294

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

drivers/gpu/drm/i915/display/intel_display_device.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,13 @@ static void __intel_display_device_info_runtime_init(struct drm_i915_private *i9
10781078
if (REG_FIELD_GET(XE2LPD_DE_CAP_DSC_MASK, cap) ==
10791079
XE2LPD_DE_CAP_DSC_REMOVED)
10801080
display_runtime->has_dsc = 0;
1081+
1082+
if (REG_FIELD_GET(XE2LPD_DE_CAP_SCALER_MASK, cap) ==
1083+
XE2LPD_DE_CAP_SCALER_SINGLE) {
1084+
for_each_pipe(i915, pipe)
1085+
if (display_runtime->num_scalers[pipe])
1086+
display_runtime->num_scalers[pipe] = 1;
1087+
}
10811088
}
10821089

10831090
return;

0 commit comments

Comments
 (0)