From b79a809d29cf9a5cf0715e59e5f0ce0a2dcc410b Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 8 Oct 2013 16:16:21 -0700 Subject: Add FDFromFence request This lets DRI clients convert a fence back into a local object. Signed-off-by: Keith Packard --- dri3proto.txt | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'dri3proto.txt') diff --git a/dri3proto.txt b/dri3proto.txt index fbc0fed..3f516f7 100644 --- a/dri3proto.txt +++ b/dri3proto.txt @@ -182,6 +182,23 @@ The name of this extension is "DRI3" Details about the mechanism used with this file descriptor are outside the scope of the DRI3 extension. +┌─── + DRI3FDFromFence + drawable: DRAWABLE + fence: FENCE + ▶ + fd: FD +└─── + Errors: IDchoice, Drawable, Match + + Given a Sync extension Fence that provides the regular Sync + extension semantics, returns a file descriptor that provides a + device-specific mechanism to manipulate the fence directly. + Details about the mechanism used with this file descriptor are + outside the scope of the DRI3 extension. 'drawable' must be + associated with a direct rendering device that 'fence' can + work with, otherwise a Match error results. + ❄ ❄ ❄ ❄ ❄ ❄ ❄ @@ -337,6 +354,23 @@ A.2 Protocol Requests 0 FD fence fd └─── +┌─── + DRI3FDFromFence + 1 CARD8 major opcode + 1 5 DRI3 opcode + 2 3 length + 4 Drawable drawable + 4 Fence fence + ▶ + 1 1 Reply + 1 1 nfd + 2 CARD16 sequence number + 4 0 reply length + 24 unused + + 0 FD fence fd +└─── + A.3 Protocol Events The DRI3 extension defines no events. -- cgit v1.2.3