[Xcb] [PATCH] XCB-XML: Proposal for alignment padding

Julien Cristau jcristau at debian.org
Thu Nov 11 00:50:30 PST 2010


On Thu, Nov 11, 2010 at 00:46:15 +0300, Evgeny M. Zubok wrote:

> 
> Below an example of request with a group of not aligned
> lists. randrproto.txt describes an encoding of RRSetCrtcGamme as:
> 
>     RRSetCrtcGamma
> 	1	CARD8			major opcode
> 	1	24			RandR opcode
> 	2	3+(6n+2)/4		length
> 	4	CRTC			crtc
> 	2	n			size
> 	2				unused
> 	2n	LISTofCARD16		red
> 	2n	LISTofCARD16		green
> 	2n	LISTofCARD16		blue
> 	p				unused, p=pad(6n)
> 
> 
> The specification states that there is no alignments between
> lists. However, c_client.py generates the implementation of
> xcb_randr_set_crtc_gamma(_checked) with alignments. Is there a bug here?

That does look like a bug in the code generator.  There's no padding
between those fields.

Cheers,
Julien


More information about the Xcb mailing list