mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
renderer/native: Get bpp from gbm_bo
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1854>
This commit is contained in:
parent
2047d2d4e9
commit
bece36b4ad
@ -814,7 +814,7 @@ meta_renderer_native_create_dma_buf (CoglRenderer *cogl_renderer,
|
||||
|
||||
stride = gbm_bo_get_stride (new_bo);
|
||||
offset = gbm_bo_get_offset (new_bo, 0);
|
||||
bpp = 4;
|
||||
bpp = gbm_bo_get_bpp (new_bo) / 8;
|
||||
dmabuf_fb =
|
||||
meta_renderer_native_create_dma_buf_framebuffer (renderer_native,
|
||||
dmabuf_fd,
|
||||
|
Loading…
Reference in New Issue
Block a user