|
|
@ -682,12 +682,21 @@ drm_fb_get_from_bo(struct gbm_bo *bo, struct drm_backend *backend, |
|
|
|
#ifdef BUILD_DRM_GBM |
|
|
|
#ifdef BUILD_DRM_GBM |
|
|
|
extern struct drm_fb * |
|
|
|
extern struct drm_fb * |
|
|
|
drm_fb_get_from_view(struct drm_output_state *state, struct weston_view *ev); |
|
|
|
drm_fb_get_from_view(struct drm_output_state *state, struct weston_view *ev); |
|
|
|
|
|
|
|
extern bool |
|
|
|
|
|
|
|
drm_can_scanout_dmabuf(struct weston_compositor *ec, |
|
|
|
|
|
|
|
struct linux_dmabuf_buffer *dmabuf); |
|
|
|
#else |
|
|
|
#else |
|
|
|
static inline struct drm_fb * |
|
|
|
static inline struct drm_fb * |
|
|
|
drm_fb_get_from_view(struct drm_output_state *state, struct weston_view *ev) |
|
|
|
drm_fb_get_from_view(struct drm_output_state *state, struct weston_view *ev) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return NULL; |
|
|
|
return NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
static inline bool |
|
|
|
|
|
|
|
drm_can_scanout_dmabuf(struct weston_compositor *ec, |
|
|
|
|
|
|
|
struct linux_dmabuf_buffer *dmabuf) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
struct drm_pending_state * |
|
|
|
struct drm_pending_state * |
|
|
|