Commit 718a40b4 authored by Tomohito Esaki's avatar Tomohito Esaki

compositor-drm: store gbm bo flags in drm_output

Store usage flags of gbm bo in drm_output in order to specify the bo
format for each output. A following patch will add a new type of
drm_output which requires different gbm_bo_flags.
Signed-off-by: Tomohito Esaki's avatarTomohito Esaki <>
parent 1506e99f
......@@ -527,6 +527,7 @@ struct drm_output {
struct gbm_surface *gbm_surface;
uint32_t gbm_format;
uint32_t gbm_bo_flags;
/* Plane being displayed directly on the CRTC */
struct drm_plane *scanout_plane;
......@@ -4876,7 +4877,7 @@ drm_output_init_egl(struct drm_output *output, struct drm_backend *b)
output->gbm_surface =
gbm_surface_create(b->gbm, mode->width, mode->height,
if (!output->gbm_surface) {
......@@ -6325,6 +6326,7 @@ drm_output_create(struct weston_compositor *compositor, const char *name)
return NULL;
output->backend = b;
output->gbm_bo_flags = GBM_BO_USE_SCANOUT | GBM_BO_USE_RENDERING;
weston_output_init(&output->base, compositor, name);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment