From bdc76895161659a318cd3bc6b007ac3eeec190f9 Mon Sep 17 00:00:00 2001 From: Matheus Castello Date: Sun, 31 May 2020 01:21:53 -0300 Subject: [PATCH] LinuxFramebuffer: Output: Drm: Add gbm_bo_get_format wrapper This will get us the correct buffer format to use with drmModeAddFB2 Signed-off-by: Matheus Castello --- src/Linux/Avalonia.LinuxFramebuffer/Output/Drm.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Linux/Avalonia.LinuxFramebuffer/Output/Drm.cs b/src/Linux/Avalonia.LinuxFramebuffer/Output/Drm.cs index 7672f554c2..787a2e4cb8 100644 --- a/src/Linux/Avalonia.LinuxFramebuffer/Output/Drm.cs +++ b/src/Linux/Avalonia.LinuxFramebuffer/Output/Drm.cs @@ -267,6 +267,8 @@ namespace Avalonia.LinuxFramebuffer.Output [DllImport(libgbm, SetLastError = true)] public static extern uint gbm_bo_get_stride(IntPtr bo); + [DllImport(libgbm, SetLastError = true)] + public static extern uint gbm_bo_get_format(IntPtr bo); [StructLayout(LayoutKind.Explicit)] public struct GbmBoHandle