drm/i915/fbc: Introduce device info fbc_mask
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 13 Dec 2021 13:44:49 +0000 (15:44 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 15 Dec 2021 15:02:23 +0000 (17:02 +0200)
commitb8ca477e51318d28f7514abfb5a369e11848a8cf
treed3935f401ff6f030619564863e4309d2bb4f3f99
parentc2a9682d2214e834b493c454e38809e571bb3045
drm/i915/fbc: Introduce device info fbc_mask

Declare which FBC instances are present via a fbc_mask
in device info. For the moment there is just the one.

TODO: Need to figure out how to expose multiple FBC
instances in debugs. Just different file names, or move
the files under some subdirectory (per-crtc maybe), or
something else? This will need igt changes as well.

v2: Put the mask into device_info.display (Jani)
    Put the magic pipe->fbc thing into skl_fbc_id_for_pipe() (Jani)

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211213134450.3082-4-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_fbc.c
drivers/gpu/drm/i915/display/skl_universal_plane.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_pci.c
drivers/gpu/drm/i915/intel_device_info.c
drivers/gpu/drm/i915/intel_device_info.h