diff options
author | Simon Ser <contact@emersion.fr> | 2020-07-28 10:47:20 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-11-15 22:48:42 +0100 |
commit | 8058e338eaf7c43df25735b0756983ff6b709eae (patch) | |
tree | 608d88059e3af19955d9e69d9bd0268d73d9cc9a /include | |
parent | 68a8d9905513c0277037cc74325bb2ea507ac012 (diff) |
backend/drm: get rid of wlr_drm_fb_type
Since all DRM FBs are backed by a wlr_buffer, there's no need for this
anymore.
Diffstat (limited to 'include')
-rw-r--r-- | include/backend/drm/renderer.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/include/backend/drm/renderer.h b/include/backend/drm/renderer.h index 8cc4b0de..e3fb6c9e 100644 --- a/include/backend/drm/renderer.h +++ b/include/backend/drm/renderer.h @@ -33,20 +33,12 @@ struct wlr_drm_surface { struct wlr_buffer *back_buffer; }; -enum wlr_drm_fb_type { - WLR_DRM_FB_TYPE_NONE, - WLR_DRM_FB_TYPE_SURFACE, - WLR_DRM_FB_TYPE_WLR_BUFFER -}; - struct wlr_drm_fb { - enum wlr_drm_fb_type type; struct gbm_bo *bo; + struct wlr_buffer *wlr_buf; struct wlr_drm_surface *mgpu_surf; struct gbm_bo *mgpu_bo; - - struct wlr_buffer *wlr_buf; }; bool init_drm_renderer(struct wlr_drm_backend *drm, |