Browse Source

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 <matheus@castello.eng.br>
pull/4049/head
Matheus Castello 6 years ago
parent
commit
bdc7689516
  1. 2
      src/Linux/Avalonia.LinuxFramebuffer/Output/Drm.cs

2
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

Loading…
Cancel
Save