[RFC dri3proto 01/16] Add modifier/multi-plane requests, bump to v1.1
Adam Jackson
ajax at nwnk.net
Tue Jun 13 20:43:39 UTC 2017
On Thu, 2017-06-08 at 19:43 +0100, Daniel Stone wrote:
> DRI3 version 1.1 adds support for explicit format modifiers, including
> multi-planar buffers.
>
> Signed-off-by: Daniel Stone <daniels at collabora.com>
> ---
> dri3proto.h | 142 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
> 1 file changed, 140 insertions(+), 2 deletions(-)
Should update dri3proto.txt too.
> +typedef struct {
> + CARD8 reqType;
> + CARD8 dri3ReqType;
> + CARD16 length B16;
> + CARD32 pixmap B32;
> + CARD32 drawable B32;
> + CARD8 num_buffers; /* Number of file descriptors passed */
> + CARD8 pad13;
> + CARD16 pad14 B16;
> + CARD16 width B16;
> + CARD16 height B16;
> + CARD32 stride0 B32;
> + CARD32 offset0 B32;
> + CARD32 stride1 B32;
> + CARD32 offset1 B32;
> + CARD32 stride2 B32;
> + CARD32 offset2 B32;
> + CARD32 stride3 B32;
> + CARD32 offset3 B32;
> + CARD32 format B32;
> + CARD32 modifier_hi B32;
> + CARD32 modifier_lo B32;
> +} xDRI3PixmapFromBuffersReq;
> +#define sz_xDRI3PixmapFromBuffersReq 64
Why exactly four strides/offsets?
- ajax
More information about the xorg-devel
mailing list