From 8058e338eaf7c43df25735b0756983ff6b709eae Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 28 Jul 2020 10:47:20 +0200 Subject: 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. --- include/backend/drm/renderer.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'include/backend') 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, -- cgit v1.2.3