summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 34e63f6)
raw | patch | inline | side by side (parent: 34e63f6)
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | |
Fri, 17 Jun 2016 13:16:34 +0000 (16:16 +0300) | ||
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | |
Fri, 17 Jun 2016 13:16:34 +0000 (16:16 +0300) |
kmscube/cube-gbm.cpp | patch | blob | history |
diff --git a/kmscube/cube-gbm.cpp b/kmscube/cube-gbm.cpp
index 15286847d6940d02016ab381e4c8ab0426c7766a..993434b186370429553e049efcc819b8cdf341f3 100644 (file)
--- a/kmscube/cube-gbm.cpp
+++ b/kmscube/cube-gbm.cpp
uint32_t height = gbm_bo_get_height(bo);
uint32_t stride = gbm_bo_get_stride(bo);
uint32_t handle = gbm_bo_get_handle(bo).u32;
+ PixelFormat format = (PixelFormat)gbm_bo_get_format(bo);
- fb = new ExtFramebuffer(card, width, height, 24, 32, stride, handle);
+ uint32_t handles[4] { handle };
+ uint32_t strides[4] { stride };
+ uint32_t offsets[4] { 0 };
+
+ fb = new ExtFramebuffer(card, width, height, format, handles, strides, offsets);
gbm_bo_set_user_data(bo, fb, drm_fb_destroy_callback);