drm/i915/display: Add intel_fb_bo_framebuffer_fini
authorJouni Högander <jouni.hogander@intel.com>
Thu, 7 Dec 2023 08:34:51 +0000 (10:34 +0200)
committerJouni Högander <jouni.hogander@intel.com>
Thu, 7 Dec 2023 15:31:02 +0000 (17:31 +0200)
commit10690b8a49bceafb1badf0ad91842a359e796d8b
tree47f3ef4ed32219316847b9d8508d5b69dda35e7b
parent7054b551de18e9875fbdf8d4f3baade428353545
drm/i915/display: Add intel_fb_bo_framebuffer_fini

Xe needs intel_fb_bo_framebuffer_fini for taking care of unpinning the fb
and taking reference.  In i915 this can be empty.

Also move intel_frontbuffer_get to be done after
intel_fb_bo_framebuffer_init to have reasonable sequences:

intel_fb_bo_framebuffer_init
intel_frontbuffer_get
...
intel_frontbuffer_put
intel_fb_bo_framebuffer_fini

v2: Empty function instead of define

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231207083451.2184562-1-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_fb.c
drivers/gpu/drm/i915/display/intel_fb_bo.c
drivers/gpu/drm/i915/display/intel_fb_bo.h