diff options
author | Lionel CHAZALLON <LongChair@hotmail.com> | 2017-10-22 20:21:01 -0700 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-10-23 21:06:53 +0200 |
commit | 762b8cc30007480f06d338ac77d6e91cc04cd320 (patch) | |
tree | 835e93209b3bf04eba8b3a79a4a5cdc6d7459022 | |
parent | 05ae571241a1623ea7b58b7cded2d2988931033b (diff) | |
download | mpv-762b8cc30007480f06d338ac77d6e91cc04cd320.tar.bz2 mpv-762b8cc30007480f06d338ac77d6e91cc04cd320.tar.xz |
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.
-rw-r--r-- | video/out/opengl/context_drm_egl.c | 4 |
1 files 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)); } |