renderer/native: Get bpp from gbm_bo

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1854>
This commit is contained in:
Jonas Ådahl 2021-05-03 23:41:56 +02:00
parent 2047d2d4e9
commit bece36b4ad

View File

@ -814,7 +814,7 @@ meta_renderer_native_create_dma_buf (CoglRenderer *cogl_renderer,
stride = gbm_bo_get_stride (new_bo); stride = gbm_bo_get_stride (new_bo);
offset = gbm_bo_get_offset (new_bo, 0); offset = gbm_bo_get_offset (new_bo, 0);
bpp = 4; bpp = gbm_bo_get_bpp (new_bo) / 8;
dmabuf_fb = dmabuf_fb =
meta_renderer_native_create_dma_buf_framebuffer (renderer_native, meta_renderer_native_create_dma_buf_framebuffer (renderer_native,
dmabuf_fd, dmabuf_fd,