9c8568743935f0892bb5bd33f5a5210bae53b8d3 |
22-May-2012 |
Brian Paul <brianp@vmware.com> |
util: add GALLIUM_LOG_FILE option for logging output to a file Useful for logging different runs to files and diffing, etc.
s_misc.c
|
0ad0bc5af5679c1ea669a768449bec3fd67fdd74 |
05-May-2012 |
Baldo Davide <baldosoft@gmail.com> |
auxiliary/os: Add missing signal.h include. The signal.h include was missed in the commit bc16c73407d11bb6702cf7de9925bfaeb80a5272 which leads to broken compilations under Linux. Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
s_thread.h
|
9e4c8ce3bc2c68d6397de1b48ce300ee6826e759 |
27-Dec-2011 |
Alexander von Gluck <kallisti5@unixzen.com> |
gallium: use Mesa pthread_barrier_t on Haiku, as it is incomplete under Haiku Reviewed-by: Brian Paul <brianp@vmare.com> Signed-off-by: Brian Paul <brianp@vmware.com>
s_thread.h
|
10b07665be5cff9fa9f03b0f7db459f3b380570d |
09-Nov-2011 |
José Fonseca <jose.r.fonseca@gmail.com> |
Remove windows kernel support code. Not actively used. Reviewed-by: Brian Paul <brianp@vmware.com>
s_memory.h
s_memory_win32k.h
s_misc.c
s_misc.h
s_time.c
|
57f8e26ca87a2846f192682c84eccbf8b4500bfc |
09-Nov-2011 |
José Fonseca <jose.r.fonseca@gmail.com> |
gallium/auxiliary: Remove os_stream. XP kernel mode was the only subsystem lacking stdio FILES. Reviewed-by: Brian Paul <brianp@vmware.com>
s_stream.c
s_stream.h
s_stream_log.c
s_stream_null.c
s_stream_stdc.c
s_stream_str.c
|
9bda86c3550090f5370ef2d010e659758dc9a540 |
21-Aug-2011 |
Chia-I Wu <olv@lunarg.com> |
auxiliary/os: add wrappers for mmap/munmap The use of mmap() in winsys requires large file support. Not all OSes have LFS so a wrapper should be used. In particular, os_mmap() should call __mmap2() on Android.
s_mman.h
|
cd893ccba9b7e4bafbdbbb71f79d1b40bcef01a8 |
04-Aug-2011 |
Chia-I Wu <olvaffe@gmail.com> |
gallium: add PIPE_OS_ANDROID support Android uses Linux kernel and its own C runtime. It resembles PIPE_OS_LINUX a lot with some minor exceptions. Reviewed-by: Brian Paul <brianp@vmware.com>
s_thread.h
|
41750107496858a047afa8d81d20fe903f285a78 |
17-Jun-2011 |
José Fonseca <jfonseca@vmware.com> |
scons: make embedding orthogonal to the platform To enable embedding in platforms other than linux.
s_memory.h
s_misc.h
s_thread.h
s_time.c
|
bc16c73407d11bb6702cf7de9925bfaeb80a5272 |
15-May-2011 |
Dave Airlie <airlied@redhat.com> |
gallium: block signals for new thread when spawning threads I'm hard pressed to think of any reason a gallium thread would want to receive a signal, especially considering its probably loaded as a library and you don't want the threads interfering with the main threads signal handling. This solves a problem loading llvmpipe into the X server for AIGLX, where the X server relies on the SIGIO signal going to the main thread, but once llvmpipe loads the SIGIO can end up in any of its threads. Signed-off-by: Dave Airlie <airlied@redhat.com>
s_thread.h
|
39cd791f3428ab48723fd4c73c4b1223e883ab2d |
18-Jul-2010 |
nobled <nobled@dreamwidth.org> |
os: simplify ifdef The actual code that needs this include is just using "if defined (PIPE_OS_UNIX)", and the two conditions should match. This should also make the file compile under Hurd.
s_time.c
|
db6d0d9ebf20bfc16ebabd3ff9e8f560ac306210 |
06-Mar-2011 |
José Fonseca <jose.r.fonseca@gmail.com> |
os: Fix pipe_static_mutex on Windows.
s_thread.h
|
9e7132b52debd3d592391ce89d3582027cb0e161 |
08-Nov-2010 |
Michal Krol <michal@vmware.com> |
os: Open file streams in binary mode. Otherwise we'll get garbled data on Windows.
s_stream_stdc.c
|
fa32fde26cbb770c6ffa0a0ead529d511eab1eb1 |
21-Aug-2010 |
Luca Barbieri <luca@luca-barbieri.com> |
auxiliary: add copyright headers Thanks to Jose Fonseca for pointing out they were missing.
s_stream.c
|
132b9439e287f1febbb49362671743a5b90e303c |
21-Aug-2010 |
Luca Barbieri <luca@luca-barbieri.com> |
os_stream: fix bugs in allocation path
s_stream.c
|
b1fa352db8a69883f97dd579d892291f414a67f5 |
20-Aug-2010 |
Luca Barbieri <luca@luca-barbieri.com> |
os_stream: add printf facility
s_stream.c
s_stream.h
s_stream_log.c
s_stream_null.c
s_stream_stdc.c
s_stream_str.c
|
209009d75f88d25e2185b46ac9279a372d9a554c |
03-Jul-2010 |
nobled <nobled@dreamwidth.org> |
os: remove gratuitous pipe_barrier placeholder code There's already an implementation of pipe_barrier using the other pipe_* primitives; just use that on Windows, too. Now Windows passes pipe_barrier_test.
s_thread.h
|
7ce9a3adc5832a4bdcf778ca8ebccfdd029fc180 |
03-Jul-2010 |
nobled <nobled@dreamwidth.org> |
os, rbug: remove PIPE_THREAD_HAVE_CONDVAR The new default implementation of pipe_condvar makes it unnecessary.
s_thread.h
|
f321d5c38ae704a6cb2252c7a78a69c367db00fc |
03-Jul-2010 |
nobled <nobled@dreamwidth.org> |
os: Implement pipe_condvar on Windows Vista and later Unfortunately compiling with these defines enabled would mean Gallium can't run on Windows XP/2003 or older. Todo: Need a macro to declare if we don't care about WinXP compatibililty.
s_thread.h
|
9795a60a8f5e089d628abcb117c3e8d4c313589c |
03-Jul-2010 |
nobled <nobled@dreamwidth.org> |
os: Implement pipe_condvar on win32 Or at least a little of it. This version will sleep for a fixed amount of time instead of just deadlocking, which is a slight improvement. Also do the same thing on any unrecognized platform.
s_thread.h
|
1775829f8c30625d86db127aa2de6951ec44d278 |
13-May-2010 |
Vinson Lee <vlee@vmware.com> |
gallium: Add tokens for Cygwin.
s_thread.h
s_time.c
|
31db310be489e1fc83fa3f72366e2e5fdd2a00e7 |
26-Apr-2010 |
Vinson Lee <vlee@vmware.com> |
os: Check for spurious wakeups in pipe_barrier_wait. The POSIX function pthread_cond_wait can have spurious wakeups when waiting on a condition variable. Add a 64-bit counter that is incremented whenever the barrier becomes full. A woken thread checks the counter. If the counter has not changed then it has been spuriously woken and goes back to sleep. If the counter has changed then it was properly signaled and exits the barrier. Tested on Mac OS X. This patch was based on ideas from Luca Barbieri.
s_thread.h
|
35aae6839e7bf29e602f6bf9e8730cc62d83f8cd |
17-Apr-2010 |
Vinson Lee <vlee@vmware.com> |
os: Implement pipe_barrier for POSIX platforms without pthread_barrier_t. This patch was tested on Mac OS X.
s_thread.h
|
730cd1baaa301dbdff60ce2867c920d3b52b2111 |
10-Mar-2010 |
Kurt Daverman <krd@vmware.com> |
os: Temporarily use posix thread for embedded too.
s_thread.h
|
0d71ba46e613230c84165106c1fcc9027dec4cd3 |
15-Mar-2010 |
Brian Paul <brianp@vmware.com> |
gallivm/llvmpipe: rename os_llvm.h to lp_bld.h The llvm wrapper wasn't really an OS thing. Use lp_bld.h for now but we eventually should rename/re-prefix all the files/functions in the gallivm/ directory.
s_llvm.h
|
b13e305ee1a2454265fd957a99640a2e49507bea |
12-Mar-2010 |
Michel Dänzer <daenzer@vmware.com> |
Merge branch '7.8'
|
fab1f07d6ad01463897ae792f4b33738afb07369 |
13-Jun-2008 |
Jeff Smith <whydoubt@yahoo.com> |
Grammar and spelling fixes Signed-off-by: Jeff Smith <whydoubt@yahoo.com> Signed-off-by: Brian Paul <brianp@vmware.com>
s_time.h
|
4833b0f199ce2728a456de9cac753ac921fef828 |
11-Mar-2010 |
Brian Paul <brianp@vmware.com> |
gallium/os: wrapper for llvm-c/Core.h and #define HAVE_LLVM if needed
s_llvm.h
|
270279ac997e2a7b4e57c122b8ae217195271f72 |
15-Feb-2010 |
José Fonseca <jfonseca@vmware.com> |
os: A stream for debug logging. Just a wrapper around os_log_message. Although it would probably make more sense to be the other way around. Also some comment fixes.
s_stream.h
s_stream_log.c
s_stream_null.c
s_stream_str.c
|
64606231b8101316e5ec51a0e71294c0a96b005f |
15-Feb-2010 |
José Fonseca <jfonseca@vmware.com> |
os: Add a growable string stream.
s_stream.h
s_stream_str.c
|
78200989d353d979dfea584460c5338e35575aea |
15-Feb-2010 |
José Fonseca <jfonseca@vmware.com> |
os: Complement/improve stream inline helpers.
s_stream.h
|
33682e551036abcef4fb6d55aab15a25a58c5457 |
15-Feb-2010 |
José Fonseca <jfonseca@vmware.com> |
os: Fix bad calloc.
s_stream_stdc.c
|
2b4575f16d24a212b9a43cbd4a9966b3668e4b32 |
14-Feb-2010 |
José Fonseca <jfonseca@vmware.com> |
os: Make streams abstract. Also replace windows kernel stream with null implementation. It was severely limited and no easy means to test it now.
s_stream.h
s_stream_null.c
s_stream_stdc.c
s_stream_wd.c
|
8df7e20788d201e6f031249563ba8a82eb4b4715 |
11-Feb-2010 |
Vinson Lee <vlee@vmware.com> |
os: Do not use Pthreads barrier functions on Mac OS X. Pthreads barrier functions are not available on some POSIX platforms.
s_thread.h
|
e95e5caee6fac27d96a75a467318c3d650469f85 |
05-Feb-2010 |
José Fonseca <jfonseca@vmware.com> |
os: Don't assert on missing implementation of barrier init/destroy. Just usage.
s_thread.h
|
a1af8eec66c5f7ec421e8011b41c1a7c36319f9f |
05-Feb-2010 |
José Fonseca <jfonseca@vmware.com> |
Merge remote branch 'origin/lp-binning' Conflicts: src/gallium/auxiliary/util/u_dl.c src/gallium/auxiliary/util/u_time.h src/gallium/drivers/llvmpipe/lp_state_derived.c src/gallium/drivers/llvmpipe/lp_state_surface.c src/gallium/drivers/llvmpipe/lp_tex_cache.c src/gallium/drivers/llvmpipe/lp_tile_cache.c
|
c75d64490e853a02952b5681ad17e7ddbbf8086c |
04-Feb-2010 |
José Fonseca <jfonseca@vmware.com> |
auxiliary: util_stream -> os_stream
s_stream.h
s_stream_stdc.c
s_stream_wd.c
|
0eb8e77ffba9704c3d7ac8aa29e2640fb7002754 |
04-Feb-2010 |
José Fonseca <jfonseca@vmware.com> |
os: Ensure header includes are outside extern "C" {}.
s_misc.h
|
2ef6d311b7cba30deb3d7e38eec14cef89e7e579 |
04-Feb-2010 |
José Fonseca <jfonseca@vmware.com> |
os: Time abstractions. Simplified version of u_time.[ch]
s_time.c
s_time.h
|
24ea02553efccc52581479819d8ead8d2bb06aaf |
04-Feb-2010 |
José Fonseca <jfonseca@vmware.com> |
os/os_memory_aligned.h: fix memory allocation alignment for 64 bits Based on Andreia Gaita <shana@jitted.com>'s patch.
s_memory.h
s_memory_aligned.h
|
1207098deefb83559ba275e89f2bd154a65d21ca |
04-Feb-2010 |
José Fonseca <jfonseca@vmware.com> |
os: Add missing dummy threading definitions.
s_thread.h
|
b724694f3aed638466dc1de9ff8902aa392347a7 |
03-Feb-2010 |
José Fonseca <jfonseca@vmware.com> |
os: Also add the aligned memory prototypes to the embedded section.
s_memory.h
|
0b0e7057128c213bee8d2158b976869475f7cb42 |
03-Feb-2010 |
José Fonseca <jfonseca@vmware.com> |
os: New OS abstraction module.
s_memory.h
s_memory_aligned.h
s_memory_debug.h
s_memory_stdc.h
s_memory_win32k.h
s_misc.c
s_misc.h
|
2aaca1df9df6980ec88180c8866c8987b31db91a |
02-Feb-2010 |
José Fonseca <jfonseca@vmware.com> |
gallium: Move p_thread.h and p_atomic.h out of gallium interfaces. Into os/os_thread.h and util/u_atomic.h respectively.
s_thread.h
|