backend/drm: don't blit in drm_fb_import

Instead blit in drm_plane_lock_surface. This makes drm_fb_import simpler
and better fits its name.
This commit is contained in:
Simon Ser 2021-01-24 18:33:56 +01:00
parent 4af85f4c19
commit 73ffab70b0
3 changed files with 22 additions and 24 deletions

View file

@ -496,7 +496,7 @@ static bool drm_connector_commit_buffer(struct wlr_output *output) {
if (!test_buffer(conn, output->pending.buffer)) {
return false;
}
if (!drm_fb_import(&plane->pending_fb, drm, buffer, NULL,
if (!drm_fb_import(&plane->pending_fb, drm, buffer,
&crtc->primary->formats)) {
return false;
}