Module: Mesa Branch: master Commit: b914217c25bdc0604c8520c7d3e7e0efae5fe762 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b914217c25bdc0604c8520c7d3e7e0efae5fe762
Author: Tim Rowley <timothy.o.row...@intel.com> Date: Tue May 17 17:03:52 2016 -0500 swr: [rasterizer core] add dummy code for cygwin build Reviewed-by: Bruce Cherniak <bruce.chern...@intel.com> --- src/gallium/drivers/swr/rasterizer/core/threads.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/gallium/drivers/swr/rasterizer/core/threads.cpp b/src/gallium/drivers/swr/rasterizer/core/threads.cpp index 0b57a3f..6fa5c04 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(); _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit