swr: [rasterizer core] add dummy code for cygwin build
authorTim Rowley <timothy.o.rowley@intel.com>
Tue, 17 May 2016 22:03:52 +0000 (17:03 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Thu, 19 May 2016 21:26:02 +0000 (16:26 -0500)
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/core/threads.cpp

index 0b57a3fc836c3efd611c0b379d798c30a257c5c6..6fa5c04433426258fedddecf3c88bd22b3c7e051 100644 (file)
@@ -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();