drmsyncobj

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ERROR_CONFLICTING_POINTS = 6

ERROR_CONFLICTING_POINTS is the error conflicting_points value.

View Source
const ERROR_INVALID_TIMELINE = 1

ERROR_INVALID_TIMELINE is the error invalid_timeline value.

View Source
const ERROR_NO_ACQUIRE_POINT = 4

ERROR_NO_ACQUIRE_POINT is the error no_acquire_point value.

View Source
const ERROR_NO_BUFFER = 3

ERROR_NO_BUFFER is the error no_buffer value.

View Source
const ERROR_NO_RELEASE_POINT = 5

ERROR_NO_RELEASE_POINT is the error no_release_point value.

View Source
const ERROR_NO_SURFACE = 1

ERROR_NO_SURFACE is the error no_surface value.

View Source
const ERROR_SURFACE_EXISTS = 0

ERROR_SURFACE_EXISTS is the error surface_exists value.

View Source
const ERROR_UNSUPPORTED_BUFFER = 2

ERROR_UNSUPPORTED_BUFFER is the error unsupported_buffer value.

View Source
const WpLinuxDrmSyncobjManagerInterface = "wp_linux_drm_syncobj_manager_v1"

WpLinuxDrmSyncobjManagerInterface is the protocol interface name.

View Source
const WpLinuxDrmSyncobjSurfaceInterface = "wp_linux_drm_syncobj_surface_v1"

WpLinuxDrmSyncobjSurfaceInterface is the protocol interface name.

View Source
const WpLinuxDrmSyncobjTimelineInterface = "wp_linux_drm_syncobj_timeline_v1"

WpLinuxDrmSyncobjTimelineInterface is the protocol interface name.

Variables

This section is empty.

Functions

This section is empty.

Types

type WpLinuxDrmSyncobjManager

type WpLinuxDrmSyncobjManager struct {
	wl.BaseProxy
}

WpLinuxDrmSyncobjManager is the generated binding for wp_linux_drm_syncobj_manager_v1 version 1.

func NewWpLinuxDrmSyncobjManager

func NewWpLinuxDrmSyncobjManager(ctx *wl.Context) *WpLinuxDrmSyncobjManager

NewWpLinuxDrmSyncobjManager returns an unbound WpLinuxDrmSyncobjManager.

func (*WpLinuxDrmSyncobjManager) Destroy

func (o *WpLinuxDrmSyncobjManager) Destroy() error

Destroy this explicit synchronization factory object. Other objects shall not be affected by this request.

func (*WpLinuxDrmSyncobjManager) Dispatch

func (o *WpLinuxDrmSyncobjManager) Dispatch(event *wl.Event)

Dispatch decodes one event on wp_linux_drm_syncobj_manager_v1 and calls the registered handlers.

func (*WpLinuxDrmSyncobjManager) EventSignature

func (o *WpLinuxDrmSyncobjManager) EventSignature(opcode uint16) (string, bool)

EventSignature returns the declared event argument types in wire order.

func (*WpLinuxDrmSyncobjManager) GetSurface

Instantiate an interface extension for the given wl_surface to provide explicit synchronization. If the given wl_surface already has an explicit synchronization object associated, the surface_exists protocol error is raised. Graphics APIs, like EGL or Vulkan, that manage the buffer queue and commits of a wl_surface themselves, are likely to be using this extension internally. If a client is using such an API for a wl_surface, it should not directly use this extension on that surface, to avoid raising a surface_exists protocol error.

func (*WpLinuxDrmSyncobjManager) ImportTimeline

func (o *WpLinuxDrmSyncobjManager) ImportTimeline(fd int) (*WpLinuxDrmSyncobjTimeline, error)

Import a DRM synchronization object timeline. If the FD cannot be imported, the invalid_timeline error is raised.

type WpLinuxDrmSyncobjSurface

type WpLinuxDrmSyncobjSurface struct {
	wl.BaseProxy
}

WpLinuxDrmSyncobjSurface is the generated binding for wp_linux_drm_syncobj_surface_v1 version 1.

func NewWpLinuxDrmSyncobjSurface

func NewWpLinuxDrmSyncobjSurface(ctx *wl.Context) *WpLinuxDrmSyncobjSurface

NewWpLinuxDrmSyncobjSurface returns an unbound WpLinuxDrmSyncobjSurface.

func (*WpLinuxDrmSyncobjSurface) Destroy

func (o *WpLinuxDrmSyncobjSurface) Destroy() error

Destroy this surface synchronization object. Any timeline point set by this object with set_acquire_point or set_release_point since the last commit may be discarded by the compositor. Any timeline point set by this object before the last commit will not be affected.

func (*WpLinuxDrmSyncobjSurface) Dispatch

func (o *WpLinuxDrmSyncobjSurface) Dispatch(event *wl.Event)

Dispatch decodes one event on wp_linux_drm_syncobj_surface_v1 and calls the registered handlers.

func (*WpLinuxDrmSyncobjSurface) EventSignature

func (o *WpLinuxDrmSyncobjSurface) EventSignature(opcode uint16) (string, bool)

EventSignature returns the declared event argument types in wire order.

func (*WpLinuxDrmSyncobjSurface) SetAcquirePoint

func (o *WpLinuxDrmSyncobjSurface) SetAcquirePoint(timeline *WpLinuxDrmSyncobjTimeline, pointHi uint32, pointLo uint32) error

Set the timeline point that must be signalled before the compositor may sample from the buffer attached with wl_surface.attach. The 64-bit unsigned value combined from point_hi and point_lo is the point value. The acquire point is double-buffered state, and will be applied on the next wl_surface.commit request for the associated surface. Thus, it applies only to the buffer that is attached to the surface at commit time. If an acquire point has already been attached during the same commit cycle, the new point replaces the old one. If the associated wl_surface was destroyed, a no_surface error is raised. If at surface commit time there is a pending acquire timeline point set but no pending buffer attached, a no_buffer error is raised. If at surface commit time there is a pending buffer attached but no pending acquire timeline point set, the no_acquire_point protocol error is raised.

func (*WpLinuxDrmSyncobjSurface) SetReleasePoint

func (o *WpLinuxDrmSyncobjSurface) SetReleasePoint(timeline *WpLinuxDrmSyncobjTimeline, pointHi uint32, pointLo uint32) error

Set the timeline point that must be signalled by the compositor when it has finished its usage of the buffer attached with wl_surface.attach for the relevant commit. Once the timeline point is signaled, and assuming the associated buffer is not pending release from other wl_surface.commit requests, no additional explicit or implicit synchronization with the compositor is required to safely re-use the buffer. Note that clients cannot rely on the release point being always signaled after the acquire point: compositors may release buffers without ever reading from them. In addition, the compositor may use different presentation paths for different commits, which may have different release behavior. As a result, the compositor may signal the release points in a different order than the client committed them. Because signaling a timeline point also signals every previous point, it is generally not safe to use the same timeline object for the release points of multiple buffers. The out-of-order signaling described above may lead to a release point being signaled before the compositor has finished reading. To avoid this, it is strongly recommended that each buffer should use a separate timeline for its release points. The 64-bit unsigned value combined from point_hi and point_lo is the point value. The release point is double-buffered state, and will be applied on the next wl_surface.commit request for the associated surface. Thus, it applies only to the buffer that is attached to the surface at commit time. If a release point has already been attached during the same commit cycle, the new point replaces the old one. If the associated wl_surface was destroyed, a no_surface error is raised. If at surface commit time there is a pending release timeline point set but no pending buffer attached, a no_buffer error is raised. If at surface commit time there is a pending buffer attached but no pending release timeline point set, the no_release_point protocol error is raised.

type WpLinuxDrmSyncobjTimeline

type WpLinuxDrmSyncobjTimeline struct {
	wl.BaseProxy
}

WpLinuxDrmSyncobjTimeline is the generated binding for wp_linux_drm_syncobj_timeline_v1 version 1.

func NewWpLinuxDrmSyncobjTimeline

func NewWpLinuxDrmSyncobjTimeline(ctx *wl.Context) *WpLinuxDrmSyncobjTimeline

NewWpLinuxDrmSyncobjTimeline returns an unbound WpLinuxDrmSyncobjTimeline.

func (*WpLinuxDrmSyncobjTimeline) Destroy

func (o *WpLinuxDrmSyncobjTimeline) Destroy() error

Destroy the synchronization object timeline. Other objects are not affected by this request, in particular timeline points set by set_acquire_point and set_release_point are not unset.

func (*WpLinuxDrmSyncobjTimeline) Dispatch

func (o *WpLinuxDrmSyncobjTimeline) Dispatch(event *wl.Event)

Dispatch decodes one event on wp_linux_drm_syncobj_timeline_v1 and calls the registered handlers.

func (*WpLinuxDrmSyncobjTimeline) EventSignature

func (o *WpLinuxDrmSyncobjTimeline) EventSignature(opcode uint16) (string, bool)

EventSignature returns the declared event argument types in wire order.

Jump to

Keyboard shortcuts

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