Bug 37840

Summary: sbc_hi, sbc_lo does not exist in xDRI2BufferSwapComplete
Product: Mesa Reporter: rogelio.serrano
Component: GLXAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: medium CC: rogelio.serrano
Version: 7.10   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description rogelio.serrano 2011-06-01 18:29:58 UTC
typedef struct {
    CARD8 type;
    CARD8 pad;
    CARD16 sequenceNumber B16;
    CARD16 event_type B16;
    CARD16 pad2;
    CARD32 drawable B32;
    CARD32 ust_hi B32;
    CARD32 ust_lo B32;
    CARD32 msc_hi B32;
    CARD32 msc_lo B32;
    CARD32 sbc B32;
} xDRI2BufferSwapComplete;


static Bool DRI2WireToEvent(Display *dpy, XEvent *event, xEvent *wire)
{
      xDRI2BufferSwapComplete *awire = (xDRI2BufferSwapComplete *)wire;
<...>
      aevent->ust = ((CARD64)awire->ust_hi << 32) | awire->ust_lo;
      aevent->msc = ((CARD64)awire->msc_hi << 32) | awire->msc_lo;
      aevent->sbc = ((CARD64)awire->sbc_hi << 32) | awire->sbc_lo;
<...>     
}
Comment 1 Jesse Barnes 2011-06-06 12:51:16 UTC
Yes, it does.  If you use a non-broken dri2proto (my fault for the bad version).

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.