[PATCH] dri2: Preserve compatibility with 1.6 DRI2 API/ABI

Keith Packard keithp at keithp.com
Mon Jul 6 11:00:03 PDT 2009


On Mon, 2009-07-06 at 12:13 +0200, Silvio Frischknecht wrote:

> +/* Version 1 structure (for ABI compatibility) */
>  typedef struct {
>      unsigned int attachment;
>      unsigned int name;
>      unsigned int pitch;
>      unsigned int cpp;
>      unsigned int flags;
> -    unsigned int format;
>      void *driverPrivate;
>  } DRI2BufferRec, *DRI2BufferPtr;

> that part can't be correct. I don't really know what it's about maybe there 
> should be a #ifdef or maybe one of them is just to much. at any rate it breaks 
> the xf86-video-ati driver which neets the "format" component.

X server 1.6 and 1.6.1 did not have 'format' in the DRI2BufferRec
structure, and so to preserve ABI, I removed it for 1.6.2. Any driver
that uses 'format' must be fixed to use the new structure and associated
APIs.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.x.org/archives/xorg-devel/attachments/20090706/cc5cc5b9/attachment.pgp 


More information about the xorg-devel mailing list