mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-25 21:02:21 +00:00
DRI2/GLX: use new swap event types
Use the new event types so we can pass a valid SBC value to clients. Fix up the completion calls to use CARD32 instead of CARD64 to match the new field size. Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
parent
a3cb7d097a
commit
932513e23b
4 changed files with 9 additions and 11 deletions
|
|
@ -163,10 +163,10 @@ __glXDRIdrawableWaitGL(__GLXdrawable *drawable)
|
|||
|
||||
static void
|
||||
__glXdriSwapEvent(ClientPtr client, void *data, int type, CARD64 ust,
|
||||
CARD64 msc, CARD64 sbc)
|
||||
CARD64 msc, CARD32 sbc)
|
||||
{
|
||||
__GLXdrawable *drawable = data;
|
||||
xGLXBufferSwapComplete wire;
|
||||
xGLXBufferSwapComplete2 wire;
|
||||
|
||||
if (!(drawable->eventMask & GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK))
|
||||
return;
|
||||
|
|
@ -192,8 +192,7 @@ __glXdriSwapEvent(ClientPtr client, void *data, int type, CARD64 ust,
|
|||
wire.ust_lo = ust & 0xffffffff;
|
||||
wire.msc_hi = msc >> 32;
|
||||
wire.msc_lo = msc & 0xffffffff;
|
||||
wire.sbc_hi = sbc >> 32;
|
||||
wire.sbc_lo = sbc & 0xffffffff;
|
||||
wire.sbc = sbc;
|
||||
|
||||
WriteEventsToClient(client, 1, (xEvent *) &wire);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue