syncobj

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT, MIT Imports: 12 Imported by: 0 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 syncobj implements wp_linux_drm_syncobj_manager_v1: explicit synchronization through DRM timeline syncobjs. A commit waits for its acquire point before it takes effect, and a buffer's release point signals once the GPU has finished with it and it has left the screen.

Index

Constants

This section is empty.

Variables

View Source
var ErrNoTimelines = errors.New("syncobj: the device has no timeline syncobjs")

Functions

This section is empty.

Types

type Device

type Device interface {
	Path() string
	Cap(capability uint64) (uint64, error)
	ImportSyncobj(fd int) (drm.Syncobj, error)
	DestroySyncobj(s drm.Syncobj) error
	Signal(s drm.Syncobj, point uint64) error
	Query(s drm.Syncobj) (uint64, error)
	EventFD(s drm.Syncobj, point uint64, eventfd int, available bool) error
	ImportSyncFile(s drm.Syncobj, point uint64, syncFile int) error
	Close() error
}

type Fencer

type Fencer interface {
	SyncFile() (int, error)
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func New

func New(d *server.Display, l *loop.Loop, dev Device, f Fencer, screen Screen) (*Manager, error)

func (*Manager) Close

func (m *Manager) Close() error

func (*Manager) Sweep

func (m *Manager) Sweep(acquireWaiting func(s *surface.Surface, acquire, sweeps uint64), releaseOwed func(r Release, sweeps uint64)) (bool, error)

type Release

type Release struct {
	// contains filtered or unexported fields
}

func (Release) Awaits

func (r Release) Awaits() string

func (Release) Buffer

func (r Release) Buffer() *dmabuf.Buffer

func (Release) String

func (r Release) String() string

func (Release) Surface

func (r Release) Surface() *surface.Surface

type Screen

type Screen interface {
	OffScreen(b *dmabuf.Buffer, f func() error) error
	Awaiting() error
}

Jump to

Keyboard shortcuts

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