| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Reviewed-by: Brian Paul <[email protected]>
Signed-off-by: Brian Paul <[email protected]>
|
|
|
|
|
|
| |
Not actively used.
Reviewed-by: Brian Paul <[email protected]>
|
|
|
|
|
|
| |
XP kernel mode was the only subsystem lacking stdio FILES.
Reviewed-by: Brian Paul <[email protected]>
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
Android uses Linux kernel and its own C runtime. It resembles
PIPE_OS_LINUX a lot with some minor exceptions.
Reviewed-by: Brian Paul <[email protected]>
|
|
|
|
| |
To enable embedding in platforms other than linux.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 <[email protected]>
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Otherwise we'll get garbled data on Windows.
|
|
|
|
| |
Thanks to Jose Fonseca for pointing out they were missing.
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
The new default implementation of pipe_condvar makes it
unnecessary.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
This patch was tested on Mac OS X.
|
| |
|
|
|
|
|
|
|
| |
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.
|
|\ |
|
| |
| |
| |
| |
| | |
Signed-off-by: Jeff Smith <[email protected]>
Signed-off-by: Brian Paul <[email protected]>
|
|/ |
|
|
|
|
|
|
|
| |
Just a wrapper around os_log_message. Although it would probably make
more sense to be the other way around.
Also some comment fixes.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Also replace windows kernel stream with null implementation. It was
severely limited and no easy means to test it now.
|
|
|
|
| |
Pthreads barrier functions are not available on some POSIX platforms.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
| |
Simplified version of u_time.[ch]
|
|
|
|
| |
Based on Andreia Gaita <[email protected]>'s patch.
|
| |
|
| |
|
| |
|
|
Into os/os_thread.h and util/u_atomic.h respectively.
|