|
|
@ -176,7 +176,13 @@ namespace Avalonia.LinuxFramebuffer.Output |
|
|
[DllImport(libdrm, SetLastError = true)] |
|
|
[DllImport(libdrm, SetLastError = true)] |
|
|
public static extern int drmModeAddFB(int fd, uint width, uint height, byte depth, |
|
|
public static extern int drmModeAddFB(int fd, uint width, uint height, byte depth, |
|
|
byte bpp, uint pitch, uint bo_handle, |
|
|
byte bpp, uint pitch, uint bo_handle, |
|
|
out uint buf_id); |
|
|
out uint buf_id); |
|
|
|
|
|
|
|
|
|
|
|
[DllImport(libdrm, SetLastError = true)] |
|
|
|
|
|
public static extern int drmModeAddFB2(int fd, uint width, uint height, |
|
|
|
|
|
uint pixel_format, uint[] bo_handles, uint[] pitches, |
|
|
|
|
|
uint[] offsets, out uint buf_id, uint flags); |
|
|
|
|
|
|
|
|
[DllImport(libdrm, SetLastError = true)] |
|
|
[DllImport(libdrm, SetLastError = true)] |
|
|
public static extern int drmModeSetCrtc(int fd, uint crtcId, uint bufferId, |
|
|
public static extern int drmModeSetCrtc(int fd, uint crtcId, uint bufferId, |
|
|
uint x, uint y, uint *connectors, int count, |
|
|
uint x, uint y, uint *connectors, int count, |
|
|
@ -261,6 +267,8 @@ namespace Avalonia.LinuxFramebuffer.Output |
|
|
[DllImport(libgbm, SetLastError = true)] |
|
|
[DllImport(libgbm, SetLastError = true)] |
|
|
public static extern uint gbm_bo_get_stride(IntPtr bo); |
|
|
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)] |
|
|
[StructLayout(LayoutKind.Explicit)] |
|
|
public struct GbmBoHandle |
|
|
public struct GbmBoHandle |
|
|
@ -278,7 +286,7 @@ namespace Avalonia.LinuxFramebuffer.Output |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[DllImport(libgbm, SetLastError = true)] |
|
|
[DllImport(libgbm, SetLastError = true)] |
|
|
public static extern ulong gbm_bo_get_handle(IntPtr bo); |
|
|
public static extern GbmBoHandle gbm_bo_get_handle(IntPtr bo); |
|
|
|
|
|
|
|
|
public static class GbmColorFormats |
|
|
public static class GbmColorFormats |
|
|
{ |
|
|
{ |
|
|
|