summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/rasterizer/common
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2016-08-09 00:44:39 -0600
committerTim Rowley <[email protected]>2016-08-10 11:09:22 -0500
commit2eae02f77c66e9a392dd8c2dc459ddc943e30140 (patch)
tree4e33e31a6e3cfe73f20f74d6581163201e6b19b3 /src/gallium/drivers/swr/rasterizer/common
parente8b35a23216d30b2afc6dea8dd5da0d5f271e36b (diff)
swr: [rasterizer common] add linux definition for InterlockedAdd64
Signed-off-by: Tim Rowley <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer/common')
-rw-r--r--src/gallium/drivers/swr/rasterizer/common/os.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/common/os.h b/src/gallium/drivers/swr/rasterizer/common/os.h
index 32eca688d64..43d55134222 100644
--- a/src/gallium/drivers/swr/rasterizer/common/os.h
+++ b/src/gallium/drivers/swr/rasterizer/common/os.h
@@ -220,6 +220,8 @@ void AlignedFree(void* p)
#define InterlockedDecrement(Append) __sync_sub_and_fetch(Append, 1)
#define InterlockedDecrement64(Append) __sync_sub_and_fetch(Append, 1)
#define InterlockedIncrement(Append) __sync_add_and_fetch(Append, 1)
+#define InterlockedAdd(Addend, Value) __sync_add_and_fetch(Addend, Value)
+#define InterlockedAdd64(Addend, Value) __sync_add_and_fetch(Addend, Value)
#define _ReadWriteBarrier() asm volatile("" ::: "memory")
#define PRAGMA_WARNING_PUSH_DISABLE(...)