Hi, all.<div>I have been trying to test the DRI2 protocol in my local machine, and I found that my test program gets the wrong sbc value when a test application has the DRI2BufferSwapComplete Event.<br><div>I have looked into the source code related to DRI2, I found out that the size of the xDRI2BufferSwapComplete is not 32 bytes.</div>
</div><div>The size of the xDRI2BufferSwapComplete is 36 bytes, but sz_xDRI2BufferSwapComplete is defined 32 bytes.</div><div>The xEvent has to be 32 bytes, so I think that the size of the xDRI2BufferSwapComplete has to be 32 bytes.</div>
<div>Therefore, I modified the dri2proto header.</div><div>Please see below and give me some opinion.</div><div>Thank you.</div><div>SooChan Lim</div><div><br></div><div>- protocol of xDRI2BufferSwapComplete</div><div><div>
typedef struct {</div><div> CARD8 type;</div><div> CARD8 pad;</div><div> CARD16 sequenceNumber B16;</div><div> CARD16 event_type B16;</div><div> CARD32 drawable B32;</div><div> CARD32 ust_hi B32;</div><div>
CARD32 ust_lo B32;</div><div> CARD32 msc_hi B32;</div><div> CARD32 msc_lo B32;</div><div> CARD32 sbc_hi B32;</div><div> CARD32 sbc_lo B32;</div><div>} xDRI2BufferSwapComplete;</div><div>#define sz_xDRI2BufferSwapComplete 32</div>
</div><div><br></div><div>- file patched</div><div><p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">diff --git
a/dri2proto.h b/dri2proto.h</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">old mode 100644</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">new mode 100755</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">index
9708a4a..e9d77e2</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">--- a/dri2proto.h</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">+++ b/dri2proto.h</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">@@ -287,9 +287,8 @@
typedef struct {</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> typedef struct
{</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">
CARD8 type;</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">-
CARD8 pad;</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">+
CARD8 event_type;</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">
CARD16 sequenceNumber B16;</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">-
CARD16 event_type B16;</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">
CARD32 drawable B32;</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">
CARD32 ust_hi B32;</span></p>
<span lang="EN-US" style="font-size:10.0pt;font-family:"¸¼Àº °íµñ";mso-bidi-font-family:
±¼¸²;color:#1F497D;mso-ansi-language:EN-US;mso-fareast-language:KO;mso-bidi-language:
AR-SA"> CARD32 ust_lo B32;</span></div>