Commit graph

41940 commits

Author SHA1 Message Date
Kovensky
096eae01b2 Update native submodule 2012-11-21 14:35:18 -03:00
Diogo Franco (Kovensky)
6108e36ae9 Several fixes to build under stricter C++11
Add missing #include to various files.

strings.h isn't provided by MSVC so we don't include it there; it's needed
for other OSes/compilers.

Get rid of pre-ISO-C malloc.h includes; malloc is provided by stdlib.h.

Fixes some linuxisms.

Prepend __builtin_ to __clear_cache, calling it without the prefix is a
GNU extension.
2012-11-21 14:33:50 -03:00
Diogo Franco (Kovensky)
cd93e49584 Move toplevel windows-specific files to the Windows dir 2012-11-21 14:33:38 -03:00
Henrik Rydgård
547945d6ce Merge pull request #71 from xsacha/master
Blackberry 10 port
2012-11-21 09:10:24 -08:00
Henrik Rydgård
42fcb79e87 Merge pull request #13 from Kovensky/header_fix
sys/time.h is only included on non-windows
2012-11-21 09:09:17 -08:00
Diogo Franco (Kovensky)
5e3686f92e sys/time.h is only included on non-windows 2012-11-21 17:05:46 +00:00
Henrik Rydgård
aa82ba285f Merge pull request #72 from unknownbrackets/mutexes
Darn, buildfix for debug.
2012-11-21 08:13:59 -08:00
Henrik Rydgård
188c0c1a2f Merge pull request #11 from xsacha/master
Blackberry 10 port [Updated]
2012-11-21 08:01:53 -08:00
Henrik Rydgård
5140c1ba02 Merge pull request #12 from Kovensky/header_fix
Add missing sys/time.h include to fd_util.cpp
2012-11-21 08:01:20 -08:00
Sacha
d968675273 Defines only set for devices using GLES2. Add a missing include for QNX/BSD. 2012-11-22 01:55:04 +10:00
Unknown W. Brackets
1bf04790e9 Darn, buildfix for debug. 2012-11-21 07:28:54 -08:00
Kovensky
9a17f3626c Add missing sys/time.h include to fd_util.cpp 2012-11-21 11:46:26 -03:00
Sacha
0bed6a94f0 Remove redundant Blackberry code in FBO and Main 2012-11-21 23:08:14 +10:00
Sacha
d914c394ae Version update for Blackberry 2012-11-21 23:04:21 +10:00
Henrik Rydgård
3934876908 Merge pull request #70 from unknownbrackets/mutexes
Mutexes
2012-11-21 01:48:44 -08:00
Unknown W. Brackets
879efb25cc Don't allow unlocking someone else's mutex. 2012-11-21 00:28:29 -08:00
Unknown W. Brackets
fa9b9840d0 Implement LwMutex locking and unlocking. 2012-11-21 00:21:25 -08:00
Unknown W. Brackets
db16f9309e Don't crash if something goes wrong with mutexes.
Probably can't happen but being defensive is good.
2012-11-20 22:57:14 -08:00
Henrik Rydgard
237c19be9d Activate some more tests 2012-11-20 22:41:24 +01:00
Henrik Rydgard
45369af482 0.31 in the UI 2012-11-20 22:41:24 +01:00
Henrik Rydgård
451db6b9df Merge pull request #69 from Orphis/testtimeout
Add a 5s timeout to tests
2012-11-20 12:31:30 -08:00
Florent Castelli
0dc3b0b566 Add a 5s timeout to tests 2012-11-20 20:29:23 +01:00
Henrik Rydgård
7931241a0f Merge pull request #9 from Kovensky/header_fix
Add missing include
2012-11-20 10:29:40 -08:00
Diogo Franco (Kovensky)
1136388f26 Add missing include 2012-11-20 18:27:24 +00:00
Henrik Rydgård
2a56d36b12 glViewport calls need to be in pixel coordinates. 2012-11-20 16:48:24 +01:00
Henrik Rydgard
4c2929cf13 v0.3 2012-11-20 11:54:51 +01:00
Henrik Rydgard
4b87da74cb windows gui option for buffered rendering. Misc fixes, prettier checkbox on android. 2012-11-20 11:35:48 +01:00
Unknown W. Brackets
b71d998a20 Broadcast a threadend event to wake mutexes. 2012-11-20 02:20:16 -08:00
Unknown W. Brackets
dd3db71b61 Forget mutex waiting threads when they timeout. 2012-11-20 02:20:16 -08:00
Unknown W. Brackets
8da2fb074c For mutexes/semaphores, register a global timer.
Instead of leaking one per each.  Should be faster.
Since we can only wait on one thing per thread at a time, this is fine.
2012-11-20 02:20:16 -08:00
Unknown W. Brackets
a81c138004 Create and Delete LwMutex funcs. 2012-11-20 02:20:15 -08:00
Unknown W. Brackets
619a9906de Remove threads from semaphores when they timeout.
This makes wait tests *almost* pass.  There's some timing
related issues left, though.
2012-11-20 02:20:15 -08:00
Unknown W. Brackets
fd41851503 Implement timeouts on semaphores too. 2012-11-20 02:20:14 -08:00
Unknown W. Brackets
4d71e32193 Update the value when mutexes timeout. 2012-11-20 02:20:14 -08:00
Unknown W. Brackets
aad7e48a1a Oops, turns out mutex timeouts are in micro.
Found it documented as milli somewhere, but it was wrong.
2012-11-20 02:20:14 -08:00
Unknown W. Brackets
d88fa153b7 Implement timeouts on mutexes.
Still need to set timeoutPtr after they expire.
Pretty sure I did this the right way, seems CoreTiming does already
allow/use multiple events for the same type?
2012-11-20 02:20:13 -08:00
Unknown W. Brackets
b9bb5c4cce Make sceKernelStartThread() reschedule.
Mutexes and semaphores are wrong, duh.
2012-11-20 02:20:13 -08:00
Unknown W. Brackets
7b9a8bf766 Minor correctness on create mutex. 2012-11-20 02:20:12 -08:00
Unknown W. Brackets
7fa388952e Refactor mutex locking to simplify. 2012-11-20 02:20:12 -08:00
Unknown W. Brackets
0681c8e5c5 Add overflow error to mutex locking. 2012-11-20 02:20:12 -08:00
Unknown W. Brackets
c92f1dc8e6 Update tests (semaphores/mutexes.)
Most mutex tests are failing due to thread scheduling or
reuse issues.
2012-11-20 02:19:55 -08:00
Unknown W. Brackets
40a6ebfabe Fix sceKernelCancelSema() to handle any negative.
So the test isn't failing.
2012-11-20 02:19:21 -08:00
Unknown W. Brackets
2290397b94 sceKernelTryLockMutex() and fix other locking. 2012-11-20 02:19:21 -08:00
Unknown W. Brackets
4bfa24eca8 Fix sceKernelCreateMutex() to match tests.
Still have an issue where reusing threads doesn't work.
2012-11-20 02:19:21 -08:00
Unknown W. Brackets
a539580195 Reschedule after acquiring a lock.
This matches the actual test results.
2012-11-20 02:19:20 -08:00
Unknown W. Brackets
2613ed8806 Cleanup mutex func types.
Looks like mutexes reschedule when they lock, so switch to void.
2012-11-20 02:19:20 -08:00
Unknown W. Brackets
429ac9de87 Oops, CreateMutex was missing a parameter. 2012-11-20 02:19:19 -08:00
Unknown W. Brackets
4bab714db5 Mutexes go in FIFO order as expected.
The test was wrong.
2012-11-20 02:19:19 -08:00
Unknown W. Brackets
4cddd3092a Implement basic locking for sceKernel mutexes.
Test still not passing, due to odd order the mutex is unlocked in?
But, at least, it does lock now.
2012-11-20 02:19:19 -08:00
Henrik Rydgard
f378f959e1 Fix issues with games that don't call sceDisplaySet mode. Add option to run without FBOs, may be useful on slow devices. 2012-11-20 10:59:23 +01:00