[mutter/wip/rstrode/rhel-8.0.0: 16/30] renderer/native: store dumb FB format



commit 3b8d763f3ded110a6cbfd8548782f370dedab692
Author: Pekka Paalanen <pekka paalanen collabora co uk>
Date:   Fri Nov 9 14:22:18 2018 +0200

    renderer/native: store dumb FB format
    
    The format will be needed in a following commit in the CPU copy path
    which stops hardcoding another format and starts using the format the
    dumb FB was created with.

 src/backends/native/meta-renderer-native.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c
index 34a4522d4..3b8ddd152 100644
--- a/src/backends/native/meta-renderer-native.c
+++ b/src/backends/native/meta-renderer-native.c
@@ -126,6 +126,7 @@ typedef struct _MetaDumbBuffer
   int width;
   int height;
   int stride_bytes;
+  uint32_t drm_format;
 } MetaDumbBuffer;
 
 typedef struct _MetaOnscreenNativeSecondaryGpuState
@@ -2315,6 +2316,7 @@ init_dumb_fb (MetaDumbBuffer  *dumb_fb,
   dumb_fb->width = width;
   dumb_fb->height = height;
   dumb_fb->stride_bytes = create_arg.pitch;
+  dumb_fb->drm_format = format;
 
   return TRUE;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]