diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-02-02 21:54:14 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-02-02 21:54:14 +0100 |
| commit | 811a6bd572f4c6b26e99b4e746f5d710947ee934 (patch) | |
| tree | 3ff6375ce2d7ea13e0d49f7800757a1b42604884 /src/screen/drm/request/frame-buffer.zig | |
| parent | 3f4375a14218796cbd7bfff1c8cfff0f7bb1f6df (diff) | |
screen: drm change struct layout
Diffstat (limited to 'src/screen/drm/request/frame-buffer.zig')
| -rw-r--r-- | src/screen/drm/request/frame-buffer.zig | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/screen/drm/request/frame-buffer.zig b/src/screen/drm/request/frame-buffer.zig new file mode 100644 index 0000000..8f93862 --- /dev/null +++ b/src/screen/drm/request/frame-buffer.zig @@ -0,0 +1,29 @@ +const drm = @import("../root.zig"); + +pub const CreateDumb = extern struct { + height: u32, + width: u32, + bpp: u32, + flags: u32, + handle: u32, + pitch: u32, + size: u32, +}; + +pub const FrameBufferCmd2 = extern struct { + id: u32, + width: u32, + height: u32, + pixel_format: drm.Pixel.Format, + flags: u32, + handles: [4]u32, + pitches: [4]u32, + offsets: [4]u32, + modifier: [4]u32, +}; + +pub const MapDumb = extern struct { + handle: u32, + __padding: u32, + offset: i64, +}; |