drm/xe/display: Re-use display vmas when possible

i915 has this really nice, infrastructure where everything becomes
complicated, GGTT needs eviction, etc..

Lets not do that, and make the dumbest possible interface instead.
Try to retrieve the VMA from old_plane_state, or intel_fbdev if kernel
fb.

Link: https://patchwork.freedesktop.org/patch/msgid/20241206182032.196307-1-dev@lankhorst.se
Signed-off-by: Maarten Lankhorst <dev@lankhorst.se>
Reviewed-by: Animesh Manna <animesh.manna@intel.com>
Tested-by: Jani Saarinen <jani.saarinen@intel.com>
This commit is contained in:
Maarten Lankhorst
2024-12-06 19:20:32 +01:00
parent 2499212e21
commit 67a98f7e27
8 changed files with 65 additions and 9 deletions

View File

@@ -1135,7 +1135,7 @@ intel_prepare_plane_fb(struct drm_plane *_plane,
if (!obj)
return 0;
ret = intel_plane_pin_fb(new_plane_state);
ret = intel_plane_pin_fb(new_plane_state, old_plane_state);
if (ret)
return ret;