Update the number of scalers per pipe based on the display capabilities reported. Bspec: 71161 Signed-off-by: Vinod Govindapillai <vinod.govindapillai@xxxxxxxxx> --- drivers/gpu/drm/i915/display/intel_display_device.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_display_device.c b/drivers/gpu/drm/i915/display/intel_display_device.c index e51506e37384..dea9b6ab069e 100644 --- a/drivers/gpu/drm/i915/display/intel_display_device.c +++ b/drivers/gpu/drm/i915/display/intel_display_device.c @@ -1070,6 +1070,12 @@ void intel_display_device_info_runtime_init(struct drm_i915_private *i915) if (REG_FIELD_GET(XE2LPD_DE_CAP_DSC_MASK, cap) == 1) display_runtime->has_dsc = 0; + + if (REG_FIELD_GET(XE2LPD_DE_CAP_SCALER_MASK, cap) == 1) { + for_each_pipe(i915, pipe) + if (display_runtime->num_scalers[pipe]) + display_runtime->num_scalers[pipe] = 1; + } } return; -- 2.34.1