From 47b2bb30c5643e0920b6a89f2416944777dfe27b Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Mon, 27 May 2019 07:20:32 +0000 Subject: Build Mesa intel and radeon vulkan drivers and amd64 and i386 The intel driver can be used with inteldrm on ivy bridge or newer. The radeon driver only works with amdgpu not radeondrm. As we can't use python in xenocara add phony targets to create the same output as python scripts which create json files for the loader. This is just the ICDs, to use vulkan the loader and additional ports are required. ok mpi@ on an earlier version. Changed to call shm_unlink() directly after shm_mkstemp() as suggested by kettenis@ --- lib/mesa/src/util/futex.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'lib/mesa/src/util') diff --git a/lib/mesa/src/util/futex.h b/lib/mesa/src/util/futex.h index 440289306..2ac0eb170 100644 --- a/lib/mesa/src/util/futex.h +++ b/lib/mesa/src/util/futex.h @@ -53,4 +53,24 @@ static inline int futex_wait(uint32_t *addr, int32_t value, const struct timespe #endif +#ifdef __OpenBSD__ + +#include +#include + +static inline int futex_wake(uint32_t *addr, int count) +{ + return futex(addr, FUTEX_WAKE, count, NULL, NULL); +} + +static inline int futex_wait(uint32_t *addr, int32_t value, const struct timespec *timeout) +{ + struct timespec tsrel, tsnow; + clock_gettime(CLOCK_MONOTONIC, &tsnow); + timespecsub(timeout, &tsrel, &tsrel); + return futex(addr, FUTEX_WAIT, value, &tsrel, NULL); +} + +#endif + #endif /* UTIL_FUTEX_H */ -- cgit v1.2.3