swr/rast: quit using linux-specific gettid()
authorTim Rowley <timothy.o.rowley@intel.com>
Fri, 21 Jul 2017 16:38:39 +0000 (11:38 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Fri, 21 Jul 2017 20:37:56 +0000 (15:37 -0500)
commitd1e7153228304eb1be85580cbfdea1a57c5f203b
treedcf2bb31edd3b4769324aa90e1f4837ff1cdc3c5
parenteaa56eab6da565c7bc84419c025c7c9bc90cf87a
swr/rast: quit using linux-specific gettid()

Linux-specific gettid() syscall shouldn't be used in portable code.
Fix does assume a 1:1 thread:LWP architecture, but works for our
current target platforms and can be revisited later if needed.

Fixes unresolved symbol in linux scons builds.

v2: add comment in code about the 1:1 assumption.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_eventhandlerfile.hpp
src/gallium/drivers/swr/rasterizer/common/os.h