projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
egl: add helper to combine two u32 into one u64
[mesa.git]
/
src
/
egl
/
drivers
/
dri2
/
platform_x11.c
diff --git
a/src/egl/drivers/dri2/platform_x11.c
b/src/egl/drivers/dri2/platform_x11.c
index cc912d2b71f58558f4543feb2c4bb71bfd6cf33c..c525b58341159ae4e480992b6ccb95c4ff6d1098 100644
(file)
--- a/
src/egl/drivers/dri2/platform_x11.c
+++ b/
src/egl/drivers/dri2/platform_x11.c
@@
-915,7
+915,7
@@
dri2_x11_swap_buffers_msc(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *draw,
reply = xcb_dri2_swap_buffers_reply(dri2_dpy->conn, cookie, NULL);
if (reply) {
- swap_count =
(((int64_t)reply->swap_hi) << 32) | reply->swap_lo
;
+ swap_count =
combine_u32_into_u64(reply->swap_hi, reply->swap_lo)
;
free(reply);
}
}