DRI2 Event BufferSwapComplete too long for core protocol?

Julien Cristau jcristau at debian.org
Mon Nov 29 04:23:56 PST 2010


On Mon, Nov 29, 2010 at 07:57:16 +0200, Mikko Markus Torni wrote:

> Hi,
> 
> I was updating my local dri2.xml based on the latest dri2proto.h [1]
> and I noticed that the DRI2 event BufferSwapComplete is too long to
> fit core protocol events.
> 
> The best I can calculate is
>     sizeof(xDRI2BufferSwapComplete) == 34

It's actually 36, since there's padding between CARD16 event_type and
CARD32 drawable.

> which disagrees with
>     #define sz_xDRI2BufferSwapComplete 32
> 
> I suppose if event_type would be a CARD8, it could fit where the
> padding is now and the length discrepancy would be fixed.
> 
> Any comments?
> 
Adding Jesse and Kristian to cc...  That sounds like something we need
to fix.

Cheers,
Julien



More information about the xorg mailing list