From fa13587088864191de06ccc2971ec19504da132d Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Sat, 14 Mar 2020 22:29:50 +0800 Subject: [PATCH] restore drm_format field just for convenience --- include/exstubs.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/include/exstubs.h b/include/exstubs.h index ed49f2a0..029a6391 100644 --- a/include/exstubs.h +++ b/include/exstubs.h @@ -125,15 +125,18 @@ typedef struct _DrmSurfaceBuffer { /** The local handle of the buffer */ uint32_t handle; + /** The DRM format of the buffer */ + uint32_t drm_format; + + /** The whole size in bytes of the buffer */ + size_t size; + /** * The offset from the buffer start to the real pixel data in bytes. * It must be equal to or larger than the size of the buffer header. * Since 5.0.0. */ - uint32_t offset; - - /** The whole size in bytes of the buffer */ - size_t size; + off_t offset; /** * The mapped address of the buffer;