summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2016-05-17 17:03:52 -0500
committerTim Rowley <[email protected]>2016-05-19 16:26:02 -0500
commitb914217c25bdc0604c8520c7d3e7e0efae5fe762 (patch)
tree56fe063782b199db9915229460a53cdd08625058
parenta0747c4ce3b0dd89fbaa7f4dc4237df4ea7a97e3 (diff)
swr: [rasterizer core] add dummy code for cygwin build
Reviewed-by: Bruce Cherniak <[email protected]>
-rw-r--r--src/gallium/drivers/swr/rasterizer/core/threads.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/core/threads.cpp b/src/gallium/drivers/swr/rasterizer/core/threads.cpp
index 0b57a3fc836..6fa5c044334 100644
--- a/src/gallium/drivers/swr/rasterizer/core/threads.cpp
+++ b/src/gallium/drivers/swr/rasterizer/core/threads.cpp
@@ -221,6 +221,16 @@ void CalculateProcessorTopology(CPUNumaNodes& out_nodes, uint32_t& out_numThread
}
}
+#elif defined(__CYGWIN__)
+
+ // Dummy data just to compile
+ NumaNode node;
+ Core core;
+ core.threadIds.push_back(0);
+ node.cores.push_back(core);
+ out_nodes.push_back(node);
+ out_numThreadsPerProcGroup = 1;
+
#else
#error Unsupported platform
@@ -267,6 +277,10 @@ void bindThread(uint32_t threadId, uint32_t procGroupId = 0, bool bindProcGroup=
SetThreadGroupAffinity(GetCurrentThread(), &affinity, nullptr);
}
+#elif defined(__CYGWIN__)
+
+ // do nothing
+
#else
cpu_set_t cpuset;
pthread_t thread = pthread_self();