Commit graph

22 commits

Author SHA1 Message Date
Alan Coopersmith
f717637569 Strip trailing whitespace from source files
Performed with: `git ls-files | xargs perl -i -p -e 's{[ \t]+$}{}'`

`git diff -w` & `git diff -b` show no diffs from this change

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/proto/xorgproto/-/merge_requests/99>
2025-08-02 14:39:03 -07:00
Erik Kurzinger
68de489ec6 Present: clarify PresentPixmapSynced idle event behavior
PresentIdleNotify events will not be delivered for PresentPixmapSynced
requests. This should be stated explicitly in the protocol specification.

Signed-off-by: Erik Kurzinger <ekurzinger@nvidia.com>
2024-03-29 14:06:01 -07:00
Erik Kurzinger
62323c75c8 Present: add PresentPixmapSynced
Adds an augmented version of PresentPixmap supporting explicit
synchronization with a direct rendering device. This takes the form of
timeline DRM synchronization objects, along with acquire and release
points on those timelines. Implementations advertising
PresentCapabilitySyncobj will wait for the acquire point to be signaled
before executing the PresentPixmap request, and signal the release point
after any GPU operations on the pixmap have completed.

Signed-off-by: Erik Kurzinger <ekurzinger@nvidia.com>
2024-03-25 06:56:52 -07:00
Olivier Fourdan
85e11a6b73 presentproto: Update version number to 1.3
Bump the presentproto version to 1.3 in the pkg-config file,
presentproto.txt and presenttokens.h.

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Fixes: 5a3d5d624 - present: add PresentOptionAsyncMayTear
2023-06-13 17:28:21 +02:00
Xaver Hugl
5a3d5d624e present: add PresentOptionAsyncMayTear 2023-05-24 14:05:16 +02:00
Alan Coopersmith
aa1543ef9d presentproto: Minor typo fixes
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-28 10:10:42 -07:00
Alan Coopersmith
09602b2130 Fix spelling/wording issues
Found by using:
  codespell --builtin clear,rare,usage,informal,code,names

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-08-08 10:33:56 -07:00
Louis-Francis Ratté-Boulianne
751cf1e19e presentproto: PresentCompleteModeSuboptimalCopy flag
If the Complete event has this mode, the client is not using
the more optimal format/modifier for the buffer allocation. The
client must explicitely inform the server that it understands
this mode by adding the PresentOptionSuboptimal flag when calling
PresentPixmap.

Its main usage as of now is to allow clients to re-fetch DRI3
format modifiers as some modifiers might allow direct scanout.

Bump presentproto version to 1.2.

Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
2018-02-28 11:13:11 -05:00
Giuseppe Bilotta
29c53a28fa Spelling and grammar fixes
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
2018-02-28 10:26:40 -05:00
Kenneth Graunke
d6d4548a9e Fix typo (modifiy -> modify) 2016-07-28 09:48:35 -07:00
Keith Packard
ff72e3fcfd Move Redirect stuff to 'later version' sections
This makes it clear that the Redirect event bits are not part of the
1.0 standard.

Signed-off-by: Keith Packard <keithp@keithp.com>
2013-12-13 12:11:42 -08:00
Keith Packard
7c5aa106e3 Fix spelling of James Jones' email address
Signed-off-by: Keith Packard <keithp@keithp.com>
2013-12-13 11:54:05 -08:00
Julien Cristau
2f75a7b9fd Fix wrong reference to DRI3 in the protocol spec
Signed-off-by: Julien Cristau <jcristau@debian.org>
2013-11-24 14:03:49 +01:00
Keith Packard
584d8b87e2 Update to version 1.0
Add presentproto.h updates for current protocol.
Finish encoding specification.

Signed-off-by: Keith Packard <keithp@keithp.com>
2013-10-31 17:40:15 -07:00
Keith Packard
32f17e1d44 Clarify when pixmaps are assured of being idle
Pixmaps will definitely be idle after the next PresentPixmap operation
completes; the original text was vague about whether it was the
execution of the request or the completion of the operation.

Signed-off-by: Keith Packard <keithp@keithp.com>
2013-10-29 10:42:33 -07:00
Keith Packard
b32994fac6 Clarify role and responsibility for client and server regarding fences
Signed-off-by: Keith Packard <keithp@keithp.com>
2013-10-19 20:48:04 -07:00
Keith Packard
5d11236c19 PresentRegion->PresentPixmap, define options, add UST mode
Changes the name of the PresentPixmap request from PresentRegion in
anticipation of future additions of non-pixmap sourced updates (YUV
images in particular).

Adds definitions for all of the new PresentPixmap options.

Adds PresentQueryCapabilities to provide applications the ability to
learn what the underlying hardware can support. One requirement for
any capability is that the X server must do something sensible even if
the client behaves as if a capability is supported when it is not.

Adds IdleNotify events. As pixmaps can go idle in any order, it's
important for applications to know which pixmap to use next. We cannot
use fences as the fence itself may not be signaled for some time after
the X server has figured out which pixmap to idle.

Note that the encoding and header files are not entirely up to date now.

Signed-off-by: Keith Packard <keithp@keithp.com>
2013-10-18 16:42:20 -07:00
Keith Packard
f15c4568f2 Start reworking for present redirection.
In PresentRegion, add the PresentNotify list, add explicit CRTC.
In PresentRedirectNotify, add CRTC and update_window values

Signed-off-by: Keith Packard <keithp@keithp.com>
2013-07-24 21:07:20 -07:00
Keith Packard
ec9db7408f Remove SBC, use CompleteNotify for both Region and NotifyMSC
SBC is entire a client-side notion, so remove it from the protocol.
No need to have two events with the same content, but we do need to
tell which request generated the event so stick a new field in some
spare bytes

Signed-off-by: Keith Packard <keithp@keithp.com>
2013-07-15 10:55:48 -07:00
Keith Packard
f1950e6f10 Add NotifyMSC. Add serial numbers to Complete and MSC events
Signed-off-by: Keith Packard <keithp@keithp.com>
2013-07-13 02:40:11 -07:00
Keith Packard
5e7ebeb7e2 Document how target-msc, divisor and remainder work
Signed-off-by: Keith Packard <keithp@keithp.com>
2013-07-12 11:14:46 -07:00
Keith Packard
921029e55e Initial Present protocol specification
Signed-off-by: Keith Packard <keithp@keithp.com>
2013-07-11 15:52:50 -07:00