Commit graph

234 commits

Author SHA1 Message Date
Ian Romanick
a0f20ce0ef glx: Add protocol for GLX_ARB_create_context and GLX_ARB_create_context_profile
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Peter Harris <pharris@opentext.com>
2011-12-06 15:14:14 -05:00
Ian Romanick
d0b88e5119 glx: Use FBCONFIG type for fbconfig parameter of CreateNewContext and CreatePixmap
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Peter Harris <pharris@opentext.com>
2011-12-06 15:13:04 -05:00
Ian Romanick
6a167ee4f2 glx: Use glx:CONTEXT for share_list parameter of CreateNewContext
This matches the share_list parameter of CreateContext.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Peter Harris <pharris@opentext.com>
2011-12-06 15:13:04 -05:00
Ian Romanick
cb7c7123e1 glx: Replace some 'reserved' fields with explicit padding
In the GLX protocol specs, the various fields named 'reserved' are
just there to provide alignment padding.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Peter Harris <pharris@opentext.com>
Signed-off-by: Peter Harris <pharris@opentext.com>
2011-12-06 15:13:04 -05:00
Mike Frysinger
17ab095a98 add libdir/exec_prefix to xcb-xproto.pc
If we want to base other paths off of exec_prefix or libdir (like the
python path), we can't because the xcb-proto.pc.in file omits those
variables.  Add them so people can leverage them in their own builds.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2011-11-10 15:36:54 +01:00
Alex Plotnick
f3ae971edc Corrected type of FakeInput rootX & rootY fields
The FakeInput request defined by the XTEST extension has two fields, rootX and
rootY, that are used to indicate relative or absolute pointer coordinates for
fake motion events. These fields are of type INT16, not CARD16. (They must be
signed to allow for negative relative motions and to align with the root-x and
root-y fields of MotionNotify events.)

Signed-off-by: Peter Harris <pharris@opentext.com>
2011-10-13 15:08:23 -04:00
Alex Plotnick
dcfcb5845c Add missing padding bytes to ChangeKeyboardMapping request
https://bugs.freedesktop.org/show_bug.cgi?id=41392

Signed-off-by: Peter Harris <pharris@opentext.com>
2011-10-03 11:22:38 -04:00
Uli Schlachter
a068a20c84 Add RENDER 0.11 definitions
RENDER 0.11 added PDF blend modes, but no one updated xcb/proto.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Peter Harris <pharris@opentext.com>
2011-06-13 13:12:27 -04:00
James Jones
fb2af7c138 Add support for fence sync objects
-Add XML to define the fence sync objects and operations
 added in XSync version 3.1.

-Bump sync module version to 3.1

Signed-off-by: James Jones <jajones@nvidia.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2011-05-11 10:22:28 +02:00
David Coles
f877a6f34c Use absolute imports in xcbgen for Python 3 compatibility
Python 3 has stricter syntax for relative imports. Use absolute imports to
ensure compatibility with all versions of Python. Also break cyclical module
import between state.py and matcher.py by deferring import.

Signed-off-by: David Coles <dcoles@gaikai.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2011-05-03 10:21:55 +02:00
Peter Harris
c4497cdbf0 Merge branch 'master' of git://anongit.freedesktop.org/~peterh/xcbproto 2010-12-23 13:02:52 -05:00
Julien Cristau
661fe8dd77 xproto: fix TranslateCoordinates reply
dst_x and dst_y are signed values (listed as INT16 in the spec).

Signed-off-by: Julien Cristau <jcristau@debian.org>
Reviewed-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-10-21 15:17:49 +02:00
Peter Harris
e172bed682 [xkb] Rename type, sequence, and length
These fields are already defined by the protocol. Rename them to avoid
potential name collisions.

Signed-off-by: Peter Harris <pharris@opentext.com>
2010-10-20 12:07:27 -04:00
Peter Harris
0ba74c7d50 Revert "xproto.xml: turned valueparam in CreateWindow request into switch"
This reverts commit 9895cf562c.

This is intended to be a temporary revert. When we are ready to migrate
to switch, we should migrate all of the valueparams at the same time.

Signed-off-by: Peter Harris <pharris@opentext.com>
2010-10-20 10:26:07 -04:00
Peter Harris
476a3fdbc9 Fix 'make check'
Adds support for optional bitcase names.
Partially reverts 76ca2c0b15 which appears to have added fixed_type to
xproto.xml by accident.

Signed-off-by: Peter Harris <pharris@opentext.com>
2010-09-22 23:27:18 -04:00
Peter Harris
9da6ea6269 Merge branch 'gsoc2010' of git://anongit.freedesktop.org/~chr/xcb_proto
Signed-off-by: Peter Harris <pharris@opentext.com>
2010-09-08 14:38:24 -04:00
Christoph Reimann
76ca2c0b15 xcbgen: small fix to store anchestor objects more systematic
xml: small fixes according to Xlib or the spec
2010-08-16 18:32:13 +02:00
Christoph Reimann
854e2a05c7 small fix wrt bitcase type names 2010-08-02 23:27:06 +02:00
Christoph Reimann
dd227908ab support name attribute for bitcases and set BitcaseType.has_name accordingly 2010-07-22 22:53:49 +02:00
Christoph Reimann
9895cf562c xproto.xml: turned valueparam in CreateWindow request into switch 2010-07-15 10:44:12 +02:00
Christoph Reimann
946817d43e assign switch name to bitcases as well (important in case of switch that appear inside another switch) 2010-07-15 01:06:49 +02:00
Christoph Reimann
73c14cd5f2 - changed handling of anchestor types (may be more than one now)
- added SwitchType and BitcaseType
2010-07-13 07:59:58 +02:00
Christoph Reimann
d30664b580 add support for new expr tags popcount, enumref, sumof 2010-07-13 07:58:24 +02:00
Julien Cristau
e7aa34e6b3 xf86dri: fix GetDrawableInfo reply
Add missing fields and list of clip rects.

Reviewed-by: Peter Harris <pharris@opentext.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-06-24 10:05:27 +02:00
Christoph Reimann
29da739948 xcbgen: perform lenfield lookup within all anchestors 2010-06-12 23:25:08 +02:00
Christoph Reimann
cb4c5d2f46 changed Exception message in case of unknown/unhandled XML tags 2010-05-22 18:11:03 +02:00
Marcin Kościelnicki
f91186b9f3 dri2: Add proper padding before driver_name
Reviewed-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-05-14 13:20:12 +02:00
Marcin Kościelnicki
0188b175cc xf86vidmode: Fix padding expressions
Reviewed-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-05-14 13:19:48 +02:00
Marcin Kościelnicki
70e270182f xcbgen: Add unop support
Reviewed-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-05-14 13:19:14 +02:00
Mikhail Gusarov
dae6b32d78 Revive support for hex literals in protocol
As a side-effect it also adds octal and binary literals. Exact syntax is
described at http://docs.python.org/reference/lexical_analysis.html#numbers

It is unwise to use full syntax, as there might be other binding generators,
octal, binary and hex literals seem to be safe though.

Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-05-14 11:28:27 +02:00
Peter Harris
2d873a3dc8 xkb: Fix opcode for Bell and GetState requests
Reviewed-by: Ian Osgood <iano@quirkster.com>
Signed-off-by: Peter Harris <pharris@opentext.com>
2010-03-29 17:53:25 -04:00
Peter Harris
3c75db3bcc Collection of small fixes for xkb.xml
These were discovered while updating the wireshark dissector:

  - Clean up "ID" enum definition and usage
  - Clean up XIFeature masks
  - Use SetOfGroup (not Group) for masks
  - Use LedClass as an enum, not as a mask
2010-02-10 16:07:16 -05:00
Peter Harris
e458401b43 Add XKEYBOARD protocol description
Thanks to Mariusz Ceier <mceier@gmail.com> for starting this work, and
to Google's Summer of Code for sponsoring the initial work.

Signed-off-by: Peter Harris <pharris@opentext.com>
2010-02-08 12:22:50 -05:00
Peter Harris
9d03507afa Add description of new protocol elements
These new elements will be used to support XKEYBOARD (and potentially
other troublesome extensions in the future).

Thanks to Mariusz Ceier <mceier@gmail.com> for starting this work, and
to Google's Summer of Code for sponsoring the initial work.

Signed-off-by: Peter Harris <pharris@opentext.com>
2010-02-08 12:22:50 -05:00
Julien Danjou
78e48a24c7 Release xcb-proto 1.6
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-02 10:07:24 +01:00
Peter Harris
09beaa8043 Add pre-defined atoms to Atom enum
Signed-off-by: Peter Harris <pharris@opentext.com>
2009-11-06 15:53:25 -05:00
Peter Harris
0b6663d19e Fix length calculation for xfixes/FetchRegion reply
Signed-off-by: Peter Harris <pharris@opentext.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
2009-10-28 17:16:02 -04:00
Eamon Walsh
b684b0d080 Re-fix the ConfigureWindow request padding issue.
We rely on the fact that the valueparam field is treated as a list,
and, like any other list, the Python code will check if the length
field is previously defined in the structure before adding a new one.
This allows us to insert the necessary 2-byte padding.

Signed-off-by: Eamon Walsh <ewalsh@tycho.nsa.gov>
2009-10-21 18:37:33 -04:00
Eamon Walsh
a03633320a Revert "made changes to support new value-mask-pad field of valueparam structures"
This change fixes a ConfigureWindow request padding issue,
but has a bug that affects xpyb (#24507).

This reverts commit 57934caa3f.
2009-10-21 18:22:06 -04:00
Eric Anholt
ae06ddd86a Add DRI2 protocol, based off of dri2proto.h and the server code. (v2)
v2: Incorporate comments from jcristau, and convert to 2-space indents to
match the dominant style.
2009-10-19 09:45:20 -07:00
Jamey Sharp
a5a414b381 xf86dri.xml seems to have been wrong forever. Fixes bug #16894. 2009-10-09 10:13:33 -07:00
Guillem Jover
4f4d43eceb Add py-compile to .gitignore
Signed-off-by: Guillem Jover <guillem@hadrons.org>
Signed-off-by: Peter Harris <pharris@opentext.com>
2009-09-22 16:08:11 -04:00
Julien Danjou
a507629647 shape: add missing padding bytes to GetRectangles
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-16 11:05:17 +02:00
Peter Harris
4fb5556c67 Fix typo in xf86vidmode.xml
Signed-off-by: Peter Harris <pharris@opentext.com>
2009-06-01 14:18:51 -04:00
Peter Harris
a8c55f7972 Add XML description for the XFree86VidMode extension.
Signed-off-by: Peter Harris <pharris@opentext.com>
2009-06-01 14:01:51 -04:00
Peter Harris
e7e9fcc744 Add XML description for the Generic Event extension.
Signed-off-by: Peter Harris <pharris@opentext.com>
2009-06-01 14:01:51 -04:00
Julien Danjou
57beb8a0ef Release xcb-proto 1.5
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-29 08:12:16 +02:00
Julien Cristau
6d62c3c28c Fix ShmCompletion event
Reported-by: Remi Denis-Courmont <rdenis@simphalempin.com>
Signed-off-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-26 11:33:48 +02:00
Julien Danjou
1d6890e640 Revert "shm: fix Completion event fields"
This reverts commit 51c5112d18.
2009-05-26 11:32:18 +02:00
Julien Danjou
51c5112d18 shm: fix Completion event fields
This should fix Debian bug #530560.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-26 10:45:57 +02:00