OSDN Git Service

drm/i915/fbc: Loop through FBC instances in various places
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 13 Dec 2021 13:44:48 +0000 (15:44 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 15 Dec 2021 15:02:13 +0000 (17:02 +0200)
commitc2a9682d2214e834b493c454e38809e571bb3045
tree810004d853b3979d9073157c51422f4e8cb97970
parentae361eb07e9b498bc224db81113118fd28e35f6e
drm/i915/fbc: Loop through FBC instances in various places

Convert i915->fbc into an array in preparation for
multiple FBC instances, and loop through all instances
in all places where the caller does not know which
instance(s) (if any) are relevant. This is the case
for eg. frontbuffer tracking and FIFO underrun hadling.

v2: More intel_ namespace (Jani)
    Leave out debugfs for later

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-3-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/i9xx_plane.c
drivers/gpu/drm/i915/display/intel_fbc.c
drivers/gpu/drm/i915/display/skl_universal_plane.c
drivers/gpu/drm/i915/i915_drv.h