[Xcb] [PATCH] Update DRI2 requests and replies for version 1.3.

Julien Cristau jcristau at debian.org
Tue Apr 26 11:12:12 PDT 2011


On Tue, Apr 26, 2011 at 10:39:02 -0700, Eric Anholt wrote:

> ---
>  src/dri2.xml |   75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
>  1 files changed, 74 insertions(+), 1 deletions(-)
> 
> diff --git a/src/dri2.xml b/src/dri2.xml
> index dbd43f8..70c569d 100644
> --- a/src/dri2.xml
> +++ b/src/dri2.xml
> @@ -1,7 +1,7 @@
>  <?xml version="1.0" encoding="utf-8"?>
>  <!--
>  Copyright (C) 2005 Jeremy Kolb.
> -Copyright © 2009 Intel Corporation
> +Copyright © 2009-2010 Intel Corporation
>  All Rights Reserved.
>  
>  Permission is hereby granted, free of charge, to any person obtaining a copy

missing minor-version bump in the <xcb> tag

> @@ -163,4 +163,77 @@ authorization from the authors.
>        </list>
>      </reply>
>    </request>
> +
> +  <request name="SwapBuffers" opcode="8">
> +    <field type="DRAWABLE" name="drawable" />
> +    <field type="CARD32" name="target_msc_hi" />
> +    <field type="CARD32" name="target_msc_lo" />

Is there a way to make this field CARD64 so the library interface
isn't quite so horrible?  I'd guess not because the high/low split makes
this not native-endian...  Oh well.

> +    <field type="CARD32" name="divisor_hi" />
> +    <field type="CARD32" name="divisor_lo" />
> +    <field type="CARD32" name="remainder_hi" />
> +    <field type="CARD32" name="remainder_lo" />
> +    <reply>
> +      <pad bytes="1" />
> +      <field type="CARD32" name="swap_hi" />
> +      <field type="CARD32" name="swap_lo" />
> +    </reply>
> +  </request>
> +
> +  <request name="GetMSC" opcode="9">
> +    <field type="DRAWABLE" name="drawable" />
> +    <reply>
> +      <pad bytes="1" />
> +      <field type="CARD32" name="ust_hi" />
> +      <field type="CARD32" name="ust_lo" />
> +      <field type="CARD32" name="msc_hi" />
> +      <field type="CARD32" name="msc_lo" />
> +      <field type="CARD32" name="sbc_hi" />
> +      <field type="CARD32" name="sbc_lo" />
> +    </reply>
> +  </request>
> +
> +  <request name="WaitMSC" opcode="10">
> +    <field type="DRAWABLE" name="drawable" />
> +    <field type="CARD32" name="target_msc_hi" />
> +    <field type="CARD32" name="target_msc_lo" />
> +    <field type="CARD32" name="divisor_hi" />
> +    <field type="CARD32" name="divisor_lo" />
> +    <field type="CARD32" name="remainder_hi" />
> +    <field type="CARD32" name="remainder_lo" />
> +    <reply>
> +      <pad bytes="1" />
> +      <field type="CARD32" name="ust_hi" />
> +      <field type="CARD32" name="ust_lo" />
> +      <field type="CARD32" name="msc_hi" />
> +      <field type="CARD32" name="msc_lo" />
> +      <field type="CARD32" name="sbc_hi" />
> +      <field type="CARD32" name="sbc_lo" />
> +    </reply>
> +  </request>
> +
> +  <request name="WaitSBC" opcode="11">
> +    <field type="DRAWABLE" name="drawable" />
> +    <field type="CARD32" name="target_sbc_hi" />
> +    <field type="CARD32" name="target_sbc_lo" />
> +    <reply>
> +      <pad bytes="1" />
> +      <field type="CARD32" name="ust_hi" />
> +      <field type="CARD32" name="ust_lo" />
> +      <field type="CARD32" name="msc_hi" />
> +      <field type="CARD32" name="msc_lo" />
> +      <field type="CARD32" name="sbc_hi" />
> +      <field type="CARD32" name="sbc_lo" />
> +    </reply>
> +  </request>
> +
> +  <request name="SwapInterval" opcode="12">
> +    <field type="DRAWABLE" name="drawable" />
> +    <field type="CARD32" name="interval" />
> +    <reply>
> +      <pad bytes="1" />
> +      <field type="CARD32" name="swap_hi" />
> +      <field type="CARD32" name="swap_lo" />
> +    </reply>
> +  </request>
> +
>  </xcb>

I notice the events aren't added.  Which is probably just as well, since
DRI2BufferSwapComplete still needs to be fixed anyway.

Cheers,
Julien



More information about the xorg mailing list