From bece36b4adc5d9c018b29813ad6a4962952c3a37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Mon, 3 May 2021 23:41:56 +0200 Subject: [PATCH] renderer/native: Get bpp from gbm_bo Part-of: --- src/backends/native/meta-renderer-native.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c index e1f6e0852..70fd51a9f 100644 --- a/src/backends/native/meta-renderer-native.c +++ b/src/backends/native/meta-renderer-native.c @@ -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,