[RFC PATCH 12/22] drm/i915/fbc: Remove invalidate callback
Jouni Högander
jouni.hogander at intel.com
Fri Mar 24 08:59:57 UTC 2023
We do not have frontbuffer tracking invalidate interface anymore.
Remove fbc invalidate callback as well.
Signed-off-by: Jouni Högander <jouni.hogander at intel.com>
---
drivers/gpu/drm/i915/display/intel_fbc.c | 32 ------------------------
1 file changed, 32 deletions(-)
diff --git a/drivers/gpu/drm/i915/display/intel_fbc.c b/drivers/gpu/drm/i915/display/intel_fbc.c
index b507ff944864..f7f628f751d7 100644
--- a/drivers/gpu/drm/i915/display/intel_fbc.c
+++ b/drivers/gpu/drm/i915/display/intel_fbc.c
@@ -1335,38 +1335,6 @@ static unsigned int intel_fbc_get_frontbuffer_bit(struct intel_fbc *fbc)
return 0;
}
-static void __intel_fbc_invalidate(struct intel_fbc *fbc,
- unsigned int frontbuffer_bits,
- enum fb_op_origin origin)
-{
- if (origin == ORIGIN_FLIP || origin == ORIGIN_CURSOR_UPDATE)
- return;
-
- mutex_lock(&fbc->lock);
-
- frontbuffer_bits &= intel_fbc_get_frontbuffer_bit(fbc);
- if (!frontbuffer_bits)
- goto out;
-
- fbc->busy_bits |= frontbuffer_bits;
- intel_fbc_deactivate(fbc, "frontbuffer write");
-
-out:
- mutex_unlock(&fbc->lock);
-}
-
-void intel_fbc_invalidate(struct drm_i915_private *i915,
- unsigned int frontbuffer_bits,
- enum fb_op_origin origin)
-{
- struct intel_fbc *fbc;
- enum intel_fbc_id fbc_id;
-
- for_each_intel_fbc(i915, fbc, fbc_id)
- __intel_fbc_invalidate(fbc, frontbuffer_bits, origin);
-
-}
-
static void __intel_fbc_flush(struct intel_fbc *fbc,
unsigned int frontbuffer_bits,
enum fb_op_origin origin)
--
2.34.1
More information about the Intel-gfx-trybot
mailing list