Commit graph

145 commits

Author SHA1 Message Date
Alan Coopersmith
c69dfe0cd3 spec: Make encoding of RRGetProviderInfo match header
The encoding is missing the 8 bytes of padding at the end of the
base reply struct before the variable length lists begin.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-10-02 22:04:20 -07:00
Alan Coopersmith
3672b5430c spec: Make encoding of RRGetProviders match description & header
The description section matches randrproto.h - neither of which have
the "maximum masters" or "flags" members, but do have padding before
the providers list starts.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-10-02 22:04:20 -07:00
Alan Coopersmith
722cf0c2ba spec: Make description of RRProviderChangeNotify match encoding & header
The encoding section matches randrproto.h - neither of which have the
config-timestamp, root, or crtc members.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-10-02 22:04:20 -07:00
Alan Coopersmith
534dea4512 spec: correct sub-code values for RRProvider*Notify event encoding
These values match the RRNotify_* definitions in randrproto.h and
don't overlap with the RROutput*Notify codes from RandR 1.2.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
2012-10-02 22:04:14 -07:00
Alan Coopersmith
ed0233e46f spec: Correct length calculation in encoding of gamma lists
The padding for RRGetCrtcGamma & RRSetCrtcGamma is a variable p,
not a fixed 2 bytes, since it depends on how many values are
included in the lists.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-08-28 00:07:28 -07:00
Alan Coopersmith
ddc00f44df spec: Correct size of outputs in RRSetCrtcConfig encoding
Each OUTPUT is 4 bytes, not 8.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-08-28 00:07:28 -07:00
Alan Coopersmith
7339eaea12 spec: Update data type sections
Make definitions more consistent about use of {} for enums, [] for structs
Reflect the incorporation of more types from the Render spec in 1.3

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-08-28 00:07:28 -07:00
Alan Coopersmith
afe532b119 spec: Fix typos in text
At least I'm assuming "providre" is a typo, not just a non-American variant.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-08-28 00:07:28 -07:00
Alan Coopersmith
a74417d782 spec: Correct length for RRCreateMode in encoding section
(1 + 1 + 2 + 4 + 32) / 4 is 10 words, not 12
10 also matches the sz_xRRCreateModeReq value of 40 in randrproto.h

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-08-28 00:07:28 -07:00
Alan Coopersmith
b52f4e39b6 spec: add missing brackets between requests in encoding section
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-08-28 00:07:27 -07:00
Dave Airlie
5f5cb27676 bump to 1.4.0 (for release.sh)
a trivial commit to make release.sh work.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-12 22:48:03 +10:00
Alan Coopersmith
74637d53fa 1.4 spec: update Extension Versioning section to include 1.4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@gmail.com>
2012-07-12 18:38:51 +10:00
Alan Coopersmith
7b4b49760f 1.4 spec: Add descriptions of new RRSELECTMASK bits
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@gmail.com>
2012-07-12 18:38:02 +10:00
Alan Coopersmith
75a1d1aa8f 1.4 spec: Change "LISTof ATOM" to "LISTofATOM" to match other LIST types
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@gmail.com>
2012-07-12 18:36:07 +10:00
Dave Airlie
ef99bda581 randr: add provider object (v8)
A provider object represents a GPU or virtual device that provides
rendering or output services to the X server. This protocol
allow controlling provider objects for output and offload slave devices.

v1.1: fix typo add missing define

v2: rename nProperties back to nAtoms, makes server simpler to c-n-p,
add missing Get request/reply

v3: bring back configure property, no point in diverging from the
output property code without good reason.
also fix typo pointed out on irc by rei4dan.

v3.1: drop cut-n-paste, increase RRNumberRequests

v4: reviewed by Aaron, address comments:
Fix provider error code
add missing notify, remove dri2 references, fix c-n-p issues.

v5: add provider change notify event with current role.
v5.1: fix cut-n-paste

v6:
document flags, fix whitespace, add better errors for SetProviderRoles,
add new events, fix pending language.

v6.1: add missing change notify event struct + missing padding

v7: fix a bunch more tab/spaces, add appendix sections for requests, events
and errors, remove multimaster flag in favour of max master counter,
move some members around to follow other events.

v7.1 fix maxMaster + wrong comment, one whitespace
v7.2 bump to being randr 1.4, fix some too generic names.
v7.3 remove dynamic flag, fix some language

v8 overhaul complete protocol, remove set provider roles, add specific
methods for setting offload sinks and output sources, add a list
of associated providers into the get provider info struct.

Earlier-review-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-05 21:08:55 +01:00
Dave Airlie
e0c94fa3a9 Revert the unused 1.4.0 protocol
This patch reverts:
Revert "Make SetCrtcConfigs take flags bits to allow partial configuration changes"

This reverts commit 105a161a3f.

Revert "Define new semantics for scanout pixmap destruction."

This reverts commit 0d32bb0780.

Revert "Fix spelling errors, add description of SCANOUTPIXMAPINFO fields."

This reverts commit 3e28d3098f.

Revert "Add some informative text about the reasons for the PCP and ST bits"

This reverts commit ebab32deea.

Revert "RandR version 1.4 additions"

This reverts commit dd14a22755.

None of this was ever used in the X server and I think it should
probably be addressed in smaller pieces later.

Acked-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-27 10:35:31 +01:00
Aaron Plattner
40cce2d010 Add "Border" and "BorderDimensions" properties
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
2011-08-04 10:13:03 -07:00
Aaron Plattner
e151e053fb Be more specific about property types
RandR output properties are X properties, which have a type atom, a
"format" (i.e. an element size) and a number of items.  Be explicit
about these fields when describing properties in the protocol
document.  E.g., instead of specifying "int32 [2 * n] / Atom pairs,"
say "Type: INTEGER / Format: 32 / Num. items: 2*n."

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-08-02 18:24:47 -07:00
Adam Jackson
b5c977ad70 Remove nonsense paragraph about dual-link DVI
I've never heard of any hardware that behaves so.

Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-05-19 16:26:27 -04:00
Keith Packard
105a161a3f Make SetCrtcConfigs take flags bits to allow partial configuration changes
Instead of requiring a complete new configuration to be computed,
allow the client to send a partial configuration with only the changed
values included. This simplifies clients so that they need not change
things they don't understand.

This also removes the 'CurrentScanoutPixmap' hack as that is no longer
necessary.

Signed-off-by: Keith Packard <keithp@keithp.com>
2011-02-16 22:48:52 -08:00
Alan Coopersmith
611a4e0c7b Add missing Red Hat copyright notice to COPYING
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-01-06 22:13:22 -08:00
Keith Packard
0d32bb0780 Define new semantics for scanout pixmap destruction.
This is not yet implemented in the X server...

Signed-off-by: Keith Packard <keithp@keithp.com>
2010-12-06 22:40:57 -08:00
Keith Packard
3e28d3098f Fix spelling errors, add description of SCANOUTPIXMAPINFO fields.
Review results from Aaron Plattner.

Signed-off-by: Keith Packard <keithp@keithp.com>
2010-12-06 22:40:57 -08:00
Keith Packard
ebab32deea Add some informative text about the reasons for the PCP and ST bits
Signed-off-by: Keith Packard <keithp@keithp.com>
2010-12-06 22:40:57 -08:00
Keith Packard
dd14a22755 RandR version 1.4 additions
This adds the specification and protocol header definitions for the
RandR 1.4 protocol changes, including

 * Per crtc pixmaps and pixmap origins
 * Sprite position and image transforms
 * SetCrtcConfigs request

Signed-off-by: Keith Packard <keithp@keithp.com>
2010-12-06 22:40:57 -08:00
Keith Packard
1325b01124 Whitespace cleanups in randrproto.txt
This just eliminates some ugly space/tab combos

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Cyril Brulebois <kibi@debian.org>
2010-12-06 22:40:22 -08:00
Alan Coopersmith
75b7c5feed randrproto 1.3.2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-29 23:12:30 -07:00
Gaetan Nadon
6ecbca5e88 config: remove the pkgconfig pc.in file from EXTRA_DIST
Automake always includes it in the tarball.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-03-28 19:00:31 -04:00
Rémi Cardona
68f8fbe507 Use $(docdir) for randrproto.txt install path
Signed-off-by: Rémi Cardona <remi@gentoo.org>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
Reviewed-by: Alan Coopersmith <alan.coopersmith@sun.com>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
2009-12-17 08:36:49 +01:00
Gaetan Nadon
cfec02addb Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES
Now that the INSTALL file is generated.
Allows running make maintainer-clean.
2009-11-22 19:24:48 -05:00
Gaetan Nadon
61f1a04178 README: file created or updated #24206
Contains a set of URLs to freedesktop.org.
2009-11-16 11:13:30 -05:00
Gaetan Nadon
e9aa167bcb Makefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432
ChangeLog filename is known to Automake and requires no further
coding in the makefile.
2009-11-15 19:45:27 -05:00
Gaetan Nadon
b0efbc5f88 Makefile.am: INSTALL file is missing or incorrect #24206
The standard GNU file on building/installing  tarball is copied
using the XORG_INSTALL macro contained in XORG_DEFAULT_OPTIONS
Add INSTALL target
2009-11-15 18:31:29 -05:00
Gaetan Nadon
2c4b4950e7 configure.ac: deploy the new XORG_DEFAULT_OPTIONS #24242
This macro aggregate a number of existing macros that sets commmon
X.Org components configuration options. It shields the configuration file from
future changes.
2009-11-15 18:11:36 -05:00
Gaetan Nadon
1b53cedb70 configure.ac: AM_MAINTAINER_MODE missing #24238
This turns off maintainer mode build rules in tarballs.
Works in conjunction with autogen.sh --enable-maintainer-mode
2009-11-15 13:55:25 -05:00
Gaetan Nadon
e860c1bc4b .gitignore: use common defaults with custom section # 24239
Using common defaults will reduce errors and maintenance.
Only the very small or inexistent custom section need periodic maintenance
when the structure of the component changes. Do not edit defaults.
2009-11-15 13:22:56 -05:00
Keith Packard
8289b93b9a New properties claimed to be in version 1.4 instead of 1.3.1
Signed-off-by: Keith Packard <keithp@keithp.com>
2009-10-05 20:50:22 -07:00
Keith Packard
240bb6051d Bump version to 1.3.1
Signed-off-by: Keith Packard <keithp@keithp.com>
2009-10-05 20:21:28 -07:00
Keith Packard
e5ea87cd2a Add XORG_DEFAULT_OPTIONS invocation in configure.ac
This should be included in all xorg configure.ac files to provide a
hook for setting various default values.

Signed-off-by: Keith Packard <keithp@keithp.com>
2009-10-05 20:21:28 -07:00
Keith Packard
d9ee6abdef Remove trailing white space from randrproto.txt 2009-10-05 19:25:02 -07:00
Keith Packard
92789c6c3a Allow inactive outputs to be set as primary 2009-10-05 19:25:02 -07:00
Matthias Hopf
993dbda7b4 Add Backlight property description. 2009-08-18 12:09:18 +02:00
Matthias Hopf
77c7ab02bf Should read "EDID", not "EdidData" (2).
Also include reference to former name.
2009-08-18 12:00:10 +02:00
Matthias Hopf
5c95df1330 Sort properties alphabetically. 2009-08-18 11:56:38 +02:00
Adam Jackson
27529caf79 Update reference to renderproto.txt 2009-04-01 11:48:26 -04:00
Adam Jackson
8ae7f1d202 Clarify that GetOutputPrimary is per-screen. 2009-04-01 11:47:52 -04:00
Adam Jackson
4036cdcc06 Punctuation fix. 2009-04-01 11:47:03 -04:00
Matthias Hopf
94e22fecc6 Bump to 1.3.0 2009-03-06 15:03:09 +01:00
Matthias Hopf
5cc58adb62 Bump to 1.2.99.4 2009-02-25 17:08:45 +01:00
Adam Jackson
7bd01756e6 Zero reply from GetPanning means panning not supported.
Don't throw BadRRCrtc for this case, that's just mean.
2009-02-17 13:58:19 -05:00