From 762b8cc30007480f06d338ac77d6e91cc04cd320 Mon Sep 17 00:00:00 2001 From: Lionel CHAZALLON Date: Sun, 22 Oct 2017 20:21:01 -0700 Subject: video : allow drm primary plane to be transparent for egl context We want primary plane to be one top of overlay (video), so we need it to be 32 bits. --- video/out/opengl/context_drm_egl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video/out/opengl/context_drm_egl.c b/video/out/opengl/context_drm_egl.c index 31e603d38c..071702bb08 100644 --- a/video/out/opengl/context_drm_egl.c +++ b/video/out/opengl/context_drm_egl.c @@ -119,7 +119,7 @@ static bool init_gbm(struct ra_ctx *ctx) p->gbm.device, p->kms->mode.hdisplay, p->kms->mode.vdisplay, - GBM_BO_FORMAT_XRGB8888, + GBM_FORMAT_XRGB8888, GBM_BO_USE_SCANOUT | GBM_BO_USE_RENDERING); if (!p->gbm.surface) { MP_ERR(ctx->vo, "Failed to create GBM surface.\n"); @@ -153,7 +153,7 @@ static void update_framebuffer_from_bo(struct ra_ctx *ctx, struct gbm_bo *bo) uint32_t handle = gbm_bo_get_handle(bo).u32; int ret = drmModeAddFB(fb->fd, fb->width, fb->height, - 24, 32, stride, handle, &fb->id); + 32, 32, stride, handle, &fb->id); if (ret) { MP_ERR(ctx->vo, "Failed to create framebuffer: %s\n", mp_strerror(errno)); } -- cgit v1.2.3