Bug 37840 - sbc_hi, sbc_lo does not exist in xDRI2BufferSwapComplete
Summary: sbc_hi, sbc_lo does not exist in xDRI2BufferSwapComplete
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: GLX (show other bugs)
Version: 7.10
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-01 18:29 UTC by rogelio.serrano
Modified: 2011-06-06 12:51 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.