[Mesa-dev] [PATCH 2/8] util/u_queue: really use futex-based fences

Nicolai Hähnle nhaehnle at gmail.com
Mon Nov 13 14:03:30 UTC 2017


From: Nicolai Hähnle <nicolai.haehnle at amd.com>

The relevant define changed in the final revision of the simple mutex
patch.
---
 src/util/u_queue.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/u_queue.h b/src/util/u_queue.h
index 57753bd31bc..d49f713e6ad 100644
--- a/src/util/u_queue.h
+++ b/src/util/u_queue.h
@@ -42,21 +42,21 @@
 #include "util/u_atomic.h"
 #include "util/u_thread.h"
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
 #define UTIL_QUEUE_INIT_USE_MINIMUM_PRIORITY      (1 << 0)
 #define UTIL_QUEUE_INIT_RESIZE_IF_FULL            (1 << 1)
 
-#if defined(__GNUC__) && defined(HAVE_FUTEX)
+#if defined(__GNUC__) && defined(HAVE_LINUX_FUTEX_H)
 #define UTIL_QUEUE_FENCE_FUTEX
 #else
 #define UTIL_QUEUE_FENCE_STANDARD
 #endif
 
 #ifdef UTIL_QUEUE_FENCE_FUTEX
 /* Job completion fence.
  * Put this into your job structure.
  */
 struct util_queue_fence {
-- 
2.11.0



More information about the mesa-dev mailing list