diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2021-11-24 13:36:44 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2021-12-03 13:13:04 +0200 |
commit | 825bd8335e4e9fccf33b93813693409b4484ea68 (patch) | |
tree | de747e90ed143a15b2572fa1c5c811ea5e4079b5 /drivers/gpu/drm/i915/display/intel_fbc.c | |
parent | d2de8ccfb29909272fce4eb5cb2bca4fd878df39 (diff) | |
download | linux-825bd8335e4e9fccf33b93813693409b4484ea68.tar.gz linux-825bd8335e4e9fccf33b93813693409b4484ea68.tar.bz2 linux-825bd8335e4e9fccf33b93813693409b4484ea68.zip |
drm/i915/fbc: Introduce intel_fbc_add_plane()
In order to better encapsulate the FBC implementation
introduce a small helper to do the plane<->FBC instance
association.
We'll also try to structure the plane init code such
that introducing multiple FBC instances will be easier
down the line.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211124113652.22090-13-ville.syrjala@linux.intel.com
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_fbc.c')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_fbc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_fbc.c b/drivers/gpu/drm/i915/display/intel_fbc.c index ee4e3186cc9c..9be8e7dcaab6 100644 --- a/drivers/gpu/drm/i915/display/intel_fbc.c +++ b/drivers/gpu/drm/i915/display/intel_fbc.c @@ -1612,6 +1612,15 @@ static bool need_fbc_vtd_wa(struct drm_i915_private *i915) return false; } +void intel_fbc_add_plane(struct intel_fbc *fbc, struct intel_plane *plane) +{ + if (!fbc) + return; + + plane->fbc = fbc; + fbc->possible_framebuffer_bits |= plane->frontbuffer_bit; +} + /** * intel_fbc_init - Initialize FBC * @i915: the i915 device |