drm/i915: Move pipe/transcoder/abox masks under intel_device_info.display
Collect the dipslay related mask under the display sub-structure in intel_device_info. Note that there is a slight change in behaviour in that we zero out .display entirely when !HAS_DISPLAY (aka. pipe_mask==0), so now we also zero out the other masks (although cpu_transocder_mask should already be zero of pipe_mask is zero). abox_mask is only used by the display core init when HAS_DISPLAY is true, so the actual behaviour of the system shouldn't change despite the zeroing of these masks. There is a lot more display stuff directly in device info that could be moved over. Maybe someone else will be inspired to do it... Signed-off-by:Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20211210122726.12577-1-ville.syrjala@linux.intel.com Reviewed-by:
Jani Nikula <jani.nikula@intel.com>
Showing
- drivers/gpu/drm/i915/display/intel_display.h 2 additions, 2 deletionsdrivers/gpu/drm/i915/display/intel_display.h
- drivers/gpu/drm/i915/display/intel_display_power.c 2 additions, 2 deletionsdrivers/gpu/drm/i915/display/intel_display_power.c
- drivers/gpu/drm/i915/i915_drv.h 3 additions, 3 deletionsdrivers/gpu/drm/i915/i915_drv.h
- drivers/gpu/drm/i915/i915_pci.c 37 additions, 38 deletionsdrivers/gpu/drm/i915/i915_pci.c
- drivers/gpu/drm/i915/intel_device_info.c 12 additions, 12 deletionsdrivers/gpu/drm/i915/intel_device_info.c
- drivers/gpu/drm/i915/intel_device_info.h 4 additions, 5 deletionsdrivers/gpu/drm/i915/intel_device_info.h
Loading