[Intel-xe] [RFC PATCH v2 23/23] drm/xe/display: Use custom dirtyfb for Xe as well

Jouni Högander jouni.hogander at intel.com
Wed May 10 12:11:52 UTC 2023


Now as we have everything in place for Xe (dma fence aware dirtyfb
ioctl and frontbuffer tracking) we can switch to using our custom
dirtyfb for Xe as well.

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 fc325f2299a4..79a6b0b0bd1f 100644
--- a/drivers/gpu/drm/i915/display/intel_fb.c
+++ b/drivers/gpu/drm/i915/display/intel_fb.c
@@ -1890,7 +1890,6 @@ static int intel_user_framebuffer_create_handle(struct drm_framebuffer *fb,
 	return drm_gem_handle_create(file, &obj->ttm.base, handle);
 }
 
-#ifdef I915
 struct frontbuffer_fence_cb {
 	struct dma_fence_cb base;
 	struct intel_frontbuffer *front;
@@ -1950,16 +1949,11 @@ static int intel_user_framebuffer_dirty(struct drm_framebuffer *fb,
 
 	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