dmabufwl

package
v0.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 10 Imported by: 2 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package dmabufwl builds zwp_linux_buffer_params_v1 objects from dmabuf descriptions, the step every linux-dmabuf import shares.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Device

func Device(words []int32) (uint64, error)

Device decodes a dev_t sent as a wl_array, the shape of linux-dmabuf feedback's main_device and ext-image-copy-capture's dmabuf_device.

func Modifiers

func Modifiers(words []int32) ([]fourcc.Modifier, error)

Modifiers decodes a wl_array of DRM format modifiers, such as ext-image-copy-capture's dmabuf_format sends, into the explicit ones in their order: implicit layouts and repeats left out.

func Params

Params validates b and returns params carrying its planes, ready for create or create_immed.

Types

type Feedback

type Feedback struct {
	Device    uint64
	Modifiers map[fourcc.Format][]fourcc.Modifier
}

Feedback is a compositor's linux-dmabuf default feedback (version 4): the device it wants buffers allocated on (main_device, a dev_t) and, per DRM format, the explicit modifiers it imports, in its preference order (tranche by tranche).

func DefaultFeedback

func DefaultFeedback(mgr *wlr.ZwpDmabufV1, version uint32, roundtrip func() error) (Feedback, error)

DefaultFeedback asks mgr, bound at version, for its default feedback and dispatches through roundtrip until the compositor has sent it whole. A version below 4, which has no feedback, and a compositor that names no main device are errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL