mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-27 01:40:49 -05:00
backend/drm: move drm_plane_finish_surface() to drm.c
This function touches queued_fb/current_fb, which the renderer has nothing to do with.
This commit is contained in:
parent
260dbdf704
commit
f935ff0ef6
3 changed files with 13 additions and 14 deletions
|
|
@ -305,6 +305,17 @@ error_res:
|
|||
return false;
|
||||
}
|
||||
|
||||
static void drm_plane_finish_surface(struct wlr_drm_plane *plane) {
|
||||
if (!plane) {
|
||||
return;
|
||||
}
|
||||
|
||||
drm_fb_clear(&plane->queued_fb);
|
||||
drm_fb_clear(&plane->current_fb);
|
||||
|
||||
finish_drm_surface(&plane->mgpu_surf);
|
||||
}
|
||||
|
||||
void finish_drm_resources(struct wlr_drm_backend *drm) {
|
||||
if (!drm) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue