1 Patch for a clean build on Solaris
3 not suitable for upstream
5 --- src/mesa/drivers/dri/i965/brw_sync.c 2019-03-04 14:01:27.980943410 -0800
6 +++ src/mesa/drivers/dri/i965/brw_sync.c 2019-03-04 14:01:48.370898259 -0800
8 * performance bottleneck, though.
11 +#ifdef SYNC_IOC_MERGE
12 #include <libsync.h> /* Requires Android or libdrm-2.4.72 */
15 #include "main/imports.h"
17 --- src/mesa/drivers/dri/i965/brw_sync.c 2019-05-16 08:45:58.414498243 -0700
18 +++ src/mesa/drivers/dri/i965/brw_sync.c 2019-05-16 08:44:44.903512588 -0700
20 case BRW_FENCE_TYPE_SYNC_FD:
21 assert(fence->sync_fd != -1);
23 +#ifdef SYNC_IOC_MERGE
24 if (sync_wait(fence->sync_fd, 0) == -1)
28 fence->signalled = true;
32 timeout_i32 = timeout;
34 +#ifdef SYNC_IOC_MERGE
35 if (sync_wait(fence->sync_fd, timeout_i32) == -1)
40 fence->signalled = true;