mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
Test sizeof(drm_handle_t) instead of LONG64 when returning handles
This commit is contained in:
parent
8716e7570d
commit
1b3128cc9a
1 changed files with 8 additions and 6 deletions
|
|
@ -200,9 +200,10 @@ PUBLIC Bool XF86DRIOpenConnection(dpy, screen, hSAREA, busIdString)
|
|||
}
|
||||
|
||||
*hSAREA = rep.hSAREALow;
|
||||
#ifdef LONG64
|
||||
*hSAREA |= ((drm_handle_t)rep.hSAREAHigh) << 32;
|
||||
#endif
|
||||
if (sizeof(drm_handle_t) == 8) {
|
||||
const int shift = 32; /* var to prevent warning on next line */
|
||||
*hSAREA |= ((drm_handle_t) rep.hSAREAHigh) << shift;
|
||||
}
|
||||
|
||||
if (rep.length) {
|
||||
if (!(*busIdString = (char *)Xcalloc(rep.busIdStringLength + 1, 1))) {
|
||||
|
|
@ -562,9 +563,10 @@ PUBLIC Bool XF86DRIGetDeviceInfo(dpy, screen, hFrameBuffer,
|
|||
}
|
||||
|
||||
*hFrameBuffer = rep.hFrameBufferLow;
|
||||
#ifdef LONG64
|
||||
*hFrameBuffer |= ((drm_handle_t)rep.hFrameBufferHigh) << 32;
|
||||
#endif
|
||||
if (sizeof(drm_handle_t) == 8) {
|
||||
const int shift = 32; /* var to prevent warning on next line */
|
||||
*hFrameBuffer |= ((drm_handle_t) rep.hFrameBufferHigh) << shift;
|
||||
}
|
||||
|
||||
*fbOrigin = rep.framebufferOrigin;
|
||||
*fbSize = rep.framebufferSize;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue