[Intel-xe] [PATCH v4 4/4] fixup! FIXME: drm/i915/display: Remaining changes to make xe compile
Jouni Högander
jouni.hogander at intel.com
Mon Oct 2 10:23:59 UTC 2023
Generic dirtyfb implementation which Xe is currently using is doing atomic
commit which is inefficient. We have now dma fence handling in our dirtyfb
implementation. This works with Xe and CPU/GPU frontbuffer rendering as
long as sync objects are imported by userspace
(dma_buf_import_sync_file). Switch to our custom dirtyfb implementation.
Signed-off-by: Jouni Högander <jouni.hogander at intel.com>
---
drivers/gpu/drm/i915/display/intel_fb.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/gpu/drm/i915/display/intel_fb.c b/drivers/gpu/drm/i915/display/intel_fb.c
index 6aa1a6ac0728..fd0b978dbef9 100644
--- a/drivers/gpu/drm/i915/display/intel_fb.c
+++ b/drivers/gpu/drm/i915/display/intel_fb.c
@@ -1949,7 +1949,6 @@ static void intel_user_framebuffer_fence_wake(struct dma_fence *dma,
dma_fence_put(dma);
}
-#ifdef I915
static int intel_user_framebuffer_dirty(struct drm_framebuffer *fb,
struct drm_file *file,
unsigned int flags, unsigned int color,
@@ -1999,16 +1998,11 @@ static int intel_user_framebuffer_dirty(struct drm_framebuffer *fb,
intel_frontbuffer_flush(front, ORIGIN_DIRTYFB);
return ret;
}
-#endif
static const struct drm_framebuffer_funcs intel_fb_funcs = {
.destroy = intel_user_framebuffer_destroy,
.create_handle = intel_user_framebuffer_create_handle,
-#ifdef I915
.dirty = intel_user_framebuffer_dirty,
-#else
- .dirty = drm_atomic_helper_dirtyfb,
-#endif
};
int intel_framebuffer_init(struct intel_framebuffer *intel_fb,
--
2.34.1
More information about the Intel-xe
mailing list