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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue