Commit Graph

4216 Commits

Author SHA1 Message Date
Henrik Rydgard
26a2d42731 Big mutex overhaul - remove our custom ones, make them non-recursive where possible 2017-02-28 11:40:29 +01:00
Henrik Rydgard
50be4e72b2 Get rid of our own silly reimplementation of std::thread 2017-02-27 20:51:36 +01:00
Henrik Rydgard
fcbc20f240 Small changes to make Common and Core build under my preliminary UWP setup. 2017-02-24 18:59:41 +01:00
LunaMoo
d832b4adfd Make sound recording sane and match video recording behaviour. 2017-02-24 05:36:44 +01:00
Henrik Rydgard
19d321bd8c Fix a bad memory leak in sceMpeg 2017-02-20 11:12:39 +01:00
Henrik Rydgard
b0942cf40f Implement sceIoCreate flag O_EXCL. Should fix #9322 2017-02-19 10:05:17 +01:00
Henrik Rydgard
e9d5eb694b Fix video playback in LocoRoco 2. scePsmfPlayerGetInfo had a couple more parameters.
Fixes #7887.
2017-02-17 10:29:00 +01:00
sum2012
957dfa1288 Add timing of sceMpegDelete
based on JPCSP 8e4e6334da762be37a90855a686a7decbc29bacf
2017-02-08 05:18:22 +08:00
LunaMoo
8d37b97b20 Place the hack into compat.ini 2017-02-03 15:30:22 +01:00
LunaMoo
1b25959d86 Modify Hack for Crash Tag Team Racing to fix Gundam games 2017-02-03 01:13:02 +01:00
sum2012
1f2f044164 Fix Dies irae Amantes amentes umd switch 2017-01-30 21:39:42 +08:00
Henrik Rydgard
03b607f389 Better way of updating menus on UMD switching calls 2017-01-29 11:41:31 +01:00
sum2012
860661dc14 Build fix for non-windows
First step to fix UnitTest
2017-01-29 03:56:49 +08:00
sum2012
2c58d34f3e Add save status 2017-01-29 03:38:28 +08:00
sum2012
c83db04a25 Change to "schedule an event" 2017-01-28 21:09:37 +08:00
sum2012
3f92bac4bb Rename UMD_insterted to UMDInserted 2017-01-28 18:39:20 +08:00
sum2012
033e0604e9 Build fix for non-windows 2017-01-28 13:40:13 +08:00
sum2012
bd6764b65e Fix "Akaya Akashiya Ayakashi" umd switch
Also,make "switch umd" menu enable faster,
2017-01-28 11:51:20 +08:00
Henrik Rydgard
5df4bac6d2 Delete some left behind unused code 2017-01-25 10:05:39 +01:00
sum2012
d5a5d13a34 Add report for scePowerSetBusClockFrequency 2017-01-01 16:11:28 +08:00
sum2012
9aeb8c65d7 Fix scePowerSetClockFrequency 2016-12-30 07:01:37 +08:00
Henrik Rydgård
8f7a65872b Buildfix 2016-12-27 13:14:45 +01:00
Henrik Rydgård
33b3330f07 Minor cleanup in proAdhocServer.cpp 2016-12-27 12:13:51 +01:00
Gde Made Novan Priambhada
bb973545e1 crosslink database & product id database 2016-12-24 05:46:50 +08:00
latot
7047ad2271 fix sscanf types 2016-12-02 22:46:52 -03:00
Henrik Rydgård
923d82c391 Merge pull request #8975 from tywald/master
Ad hoc: Band-aid fix for clear peer list. Should fix #7331
2016-11-28 18:37:50 +01:00
Ade Novan
55de66b5ef Phantasy Star Portable 2 port offset fix 2016-11-22 19:57:11 +08:00
Ade Novan
ff0e3c28b4 ptp connect fix solved #8983 for android with high latency 2016-10-13 01:21:24 +08:00
Henrik Rydgård
705627d6d3 Merge pull request #9053 from Orphis/android_define
android: Change preprocessor define to standard __ANDROID__
2016-10-12 13:12:14 +02:00
Florent Castelli
e0ff68b3f6 c++11: Remove compat header base/functional.h
We want a proper C++11, not tr1. We don't target those compilers anyway.
2016-10-12 11:32:45 +02:00
Florent Castelli
70593d1004 android: Change preprocessor define to standard __ANDROID__
ANDROID is only standard to the old Makefile buildsystem, not the platform.
2016-10-12 11:14:09 +02:00
Florent Castelli
4145b60a0e symbian: Remove! 2016-10-11 18:49:08 +02:00
Florent Castelli
373db56a16 blackberry: Remove! 2016-10-11 17:40:32 +02:00
Henrik Rydgard
d3305b88b9 Partially implement KUBridge, trying to help #8925. However, it doesn't even call the function.... Odd. 2016-10-09 12:40:40 +02:00
Henrik Rydgård
8b5693b4d7 Merge pull request #9014 from unknownbrackets/mpeg-minor
Fix some mpeg issues
2016-09-29 11:17:28 +02:00
Henrik Rydgård
ff66fe7f89 Merge pull request #9011 from unknownbrackets/savestates
Use unordered lookups for better speed
2016-09-25 16:08:51 +02:00
Henrik Rydgård
1aa399c3f5 Merge pull request #9012 from unknownbrackets/legacy
Remove Symbian from Travis
2016-09-25 16:08:41 +02:00
Unknown W. Brackets
f70f05668f Mpeg: Return errors when no audio is available.
Before, we were only returning an error once, in an effort to log only
once.  This meant sometimes games would not realize they needed to add
packets.

Un-reverted from e866d83.  No longer breaks Patapon with other mpeg fixes.
2016-09-24 17:54:40 -07:00
Unknown W. Brackets
c9f5cc6bad Fix a type comparison warning. 2016-09-24 14:38:11 -07:00
Unknown W. Brackets
3fe1a08cf5 Use unordered lookups for better speed.
These reduce the time spent on save states.
2016-09-24 14:23:17 -07:00
Unknown W. Brackets
5faa65d9a9 Compress rewind snapshots off thread.
This can take a chunk of time, and doesn't need to finish until next frame
anyway, so we have plenty of time to do it.
2016-09-24 10:37:30 -07:00
Henrik Rydgard
853ea02201 Minor cleanups in elfreader 2016-09-18 23:11:41 +02:00
Unknown W. Brackets
e02440b68a Module: Don't report broken stubs from old states. 2016-09-18 09:01:27 -07:00
tywald
b3bb846759 band-aid fix for ad-hoc clear peer list 2016-09-13 17:07:45 +02:00
Henrik Rydgard
1c47778b4e Get rid of outdated special case for gfx logs. Make some DEBUG things VERBOSE. 2016-09-10 17:16:53 +02:00
sum
d774f80bc2 oop 2016-09-06 19:51:59 +08:00
sum
94c8d6d8e4 remove space 2016-09-06 19:30:23 +08:00
sum
5d6c9701f2 Fix scePowerSetClockFrequency timing by JPCSPTrace
Fix #4523
2016-09-06 19:28:23 +08:00
Henrik Rydgård
3490220db0 Merge pull request #8955 from unknownbrackets/threadret
Correct initial thread ra and fp
2016-09-05 23:13:47 +02:00
Unknown W. Brackets
d876da1a01 Initialize fp correctly on a new thread. 2016-09-05 08:57:09 -07:00
Unknown W. Brackets
1e51a03d5a Point ra to the correct place on a new thread.
Turns out some games read the ra, maybe long jmps or something?
2016-09-05 08:56:27 -07:00
Chris Burgener
7d089a0f76 Clean up various files 2016-09-03 19:23:17 -04:00
Chris Burgener
645cb4d69e Add Audio Dumping to File 2016-09-03 14:05:38 -04:00
Henrik Rydgård
9e70a6f9d9 Merge pull request #8939 from RisingFog/frame_advance
Add Frame Advance
2016-08-30 16:45:54 +02:00
Chris Burgener
842a29b0ae Add Frame Advance 2016-08-28 12:21:45 -04:00
Henrik Rydgård
ef3f369311 Merge pull request #8933 from unknownbrackets/utility-deps
Utility: Only require avcodec for mp4
2016-08-28 11:19:24 +02:00
Unknown W. Brackets
5a797a08f7 Io: Do not delay on file seek.
This doesn't seem to reschedule, must've measured wrong in #939.

Fixes #8749.
2016-08-27 14:18:59 -07:00
Unknown W. Brackets
ee664fdc25 Utility: Only require avcodec for mp4.
Test was ambiguous - testing more carefully only 300 is required.  Not
sure how I got this wrong before since only 300 was required for the
others...

Should help #8926.
2016-08-27 10:15:35 -07:00
Unknown W. Brackets
a0484dce65 Psmf: Use packets for end in all versions.
Turns out no version of the library looks at the pts for the end.
2016-08-15 21:00:10 -07:00
sum2012
00a379e9f0 Psmf: Ignore last timestamp with old PsmfPlayer libs
Until 5.50
Fix #6574
2016-08-16 03:57:36 +08:00
Unknown W. Brackets
f23391578f Psmf: Ignore stream size with old PsmfPlayer libs.
Until 5.50, the stream size was not used.  See #6574.
2016-08-14 17:24:29 -07:00
Unknown W. Brackets
f0a8e931ff Remove UTF-8 BOMs from a few files.
And note the only ones that do need them in editorconfig.
2016-08-07 17:59:35 -07:00
Unknown W. Brackets
9655013938 Font: Skip log on missing zh_gb.pgf.
Fixes #8332.
2016-08-07 10:27:27 -07:00
Henrik Rydgård
684b123a6d Merge pull request #8891 from unknownbrackets/mytranwars
Hook another VRAM modifying function in Mytran Wars
2016-08-07 12:35:11 +02:00
Unknown W. Brackets
ee3c8b6ea5 Display: Don't count a forced NEXTFRAME as a flip. 2016-08-06 16:47:33 -07:00
Unknown W. Brackets
3ca014858f Display: Flip at least once every 10 frames.
If we don't do this, the FPS doesn't update, and on some platforms, we
never read input.  This can basically mean that PPSSPP will hang.
2016-08-06 16:32:57 -07:00
Unknown W. Brackets
0e43f1cdff Hook another VRAM modifying function.
Seems to be a copy.
2016-08-06 16:30:47 -07:00
Henrik Rydgård
eac18489e6 Merge pull request #8867 from unknownbrackets/mpeg
Improve mpeg parsing / corruption issues
2016-08-06 18:14:17 +02:00
Henrik Rydgård
ea6b72d4c9 Merge pull request #8888 from unknownbrackets/warnings
Warning fixes
2016-08-06 10:59:06 +02:00
Henrik Rydgård
0031244b1c Merge pull request #8889 from unknownbrackets/memstick
Initial support for memstick insert/remove
2016-08-06 10:58:49 +02:00
Henrik Rydgård
61c63e75c4 Merge pull request #8884 from sum2012/Font-minor
Better support zh_gb.pgf
2016-08-06 10:58:10 +02:00
Unknown W. Brackets
980d4194c0 Io: Add a config setting for memstick status. 2016-08-05 21:27:53 -07:00
Unknown W. Brackets
bf7a020c6a Io: Notify callbacks on memstick insert/remove. 2016-08-05 21:05:48 -07:00
Unknown W. Brackets
9e488e8be4 Io: Correct some memstick devctl accuracy issues.
This makes it pass the right values in a few more cases, and unregister
callbacks properly.  Also handles duplicate callbacks.
2016-08-05 20:42:58 -07:00
sum2012
da8188ab7d Add more check for safely 2016-08-06 06:52:48 +08:00
Unknown W. Brackets
2d4e75369a Oops, fix typo.
Pointed out by Florin9doi - wasn't currently causing problems because the
value 1 isn't yet being used.
2016-08-05 11:34:22 -07:00
Unknown W. Brackets
fd546ff21d Fix some type comparison warnings. 2016-08-05 10:47:45 -07:00
Unknown W. Brackets
e55198f7e7 Correct some initialization order warnings.
Also, another missing init with IRBlocks.
2016-08-05 10:46:11 -07:00
sum2012
390ecb3184 Better support zh_gb.pgf 2016-08-05 19:58:31 +08:00
Unknown W. Brackets
db12337b39 Add basic kernel mode file func entries. 2016-08-04 09:46:29 -07:00
Unknown W. Brackets
e78a389ecc Move sceIo kernel tables to sceIo. 2016-08-04 09:46:29 -07:00
Unknown W. Brackets
0b43e28595 Move SysMemForKernel to sceKernelMemory. 2016-08-04 09:46:27 -07:00
Unknown W. Brackets
4b4770bbc5 Log kernel syscalls with a K.
This way they can be properly differentiated.
2016-08-04 09:46:26 -07:00
sum2012
1cc645b5e4 Revert "Temporarily disable PMP video for non-windows"
This revert
5e20ba1811
2016-07-25 20:21:53 +08:00
Unknown W. Brackets
558b4620e8 Mpeg: Parse video streams from PSMF header.
Without doing this, FFmpeg will try to probe the streams to detect them
instead.  When it does this, sometimes it tries to read beyond the data
that's available - and then gets confused by EOFs.

Parsing this way allows us to control the situation.

An example is Valkyrie Profile, corruption in the first frames of the
second video during the intro.  Thi doesn't fix it yet, but now it's just
a matter of buffering.
2016-07-24 15:58:06 -07:00
Henrik Rydgård
a1e815e356 Merge pull request #8651 from unknownbrackets/android-clang
Switch Android build to using clang (needs buildbot update)
2016-07-24 22:14:58 +02:00
Henrik Rydgard
2251c9c8f7 Help #8816 by partially reverting #8753. Does not match the tests though. Firmware difference? 2016-07-24 22:12:17 +02:00
Unknown W. Brackets
266ee632e8 Cleanup FFmpeg funcs deprecated in 3.x. 2016-07-24 12:53:54 -07:00
Henrik Rydgard
40549b14fd Error code cleanup 2016-07-24 21:22:26 +02:00
Henrik Rydgard
745081cc4e Return errors when trying to close file with pending operations. May help #6357. 2016-07-24 16:03:34 +02:00
Unknown W. Brackets
5009dcab7a Add reporting for sceKernelDevkitVersion() calls.
We currently default to 1.50 as the reported version, but we more or less
emulate a 6.60 system.  It may be better to return 6.60, but let's see
what would actually be impacted by that first.
2016-06-26 20:52:48 -07:00
Unknown W. Brackets
80d72acaec Psmf: Correct default stream.
Fixes Jeanne d'Arc, others.
2016-06-07 20:41:13 -07:00
Henrik Rydgård
ce8d2bef57 Merge pull request #8803 from unknownbrackets/mpeg
Reject invalid MPEG puts for certain lib versions
2016-06-05 13:44:38 +02:00
Unknown W. Brackets
bda1956f90 Psmf: Enable error check on player create.
Reporting makes it look like this should be safe.
2016-06-04 18:17:38 -07:00
Unknown W. Brackets
cf2796de41 Psmf: Allow each struct to have its own stream.
Some games will create a clone, and then set a different stream on it,
e.g. one for the video, another for the audio stream.
2016-06-04 18:17:37 -07:00
Unknown W. Brackets
b13c68a373 Psmf: Correct get video/audio info errors.
This actually grabs from the currently specified stream, and fails if it's
the wrong type.  Additionally, return stream-specific info... unlikely to
matter, hard to imagine a video with a mono and stereo stream.

Also reduces log verbosity.
2016-06-04 18:17:37 -07:00
Unknown W. Brackets
185ad781f3 Psmf: Add better error handling for SetPsmf.
Checked on different devkit versions in case of changes.
2016-06-04 18:17:36 -07:00
Unknown W. Brackets
04dcaeae1d Mpeg: Move, rather than resetting, packetsAvail.
When we've got garbage data, this has to stay incorrect.  Without this,
Megaman X gets confused when playing its video (because it enqueues
garbage packets.)

See #3318.
2016-06-04 18:16:23 -07:00
Unknown W. Brackets
4ee39f82e4 Mpeg: Validate added packets.
Older libraries only, but this will cause it to reject packets that don't
make sense.  So far, this seems to mirror the behavior of various garbage
packets sent to the real firmware.
2016-06-04 18:16:22 -07:00
Unknown W. Brackets
41f2999a2b Mpeg: Write into the ringbuffer using actual ring.
This mimics behavior with clamped sizes and wrap around, and also makes it
easier to implement the garbage data handling the PSP has.
2016-06-04 18:16:21 -07:00
Unknown W. Brackets
6d14c17f26 Mpeg: Treat negative available packets as zero. 2016-06-04 18:16:19 -07:00
Unknown W. Brackets
deffb246ae Mpeg: Require less memory for older lib versions.
It seems it started requiring 64k at 1.05.
2016-06-04 18:16:18 -07:00
Henrik Rydgård
606856c9ad Merge pull request #8791 from unknownbrackets/delay
Minor sysclock delay accuracy improvements
2016-05-31 21:08:00 +02:00
Unknown W. Brackets
91887ad85c Psmf: Correct errors in current stream num. 2016-05-31 09:55:51 -07:00
Unknown W. Brackets
0a00777403 Psmf: Only write current type/channel if valid.
And improve error handling in general.
2016-05-31 09:55:51 -07:00
Unknown W. Brackets
7ad07ca82e Psmf: Handle stream specification per tests.
These seem buggy, but generally sane.
2016-05-31 09:55:50 -07:00
Unknown W. Brackets
cca9a73105 Psmf: Start at stream 0 when not specified. 2016-05-31 09:55:49 -07:00
Unknown W. Brackets
510db2051d Psmf: Detect PCM streams from private stream info.
This logic comes from Jpcsp.  Let's report though and see if there's more.
2016-05-31 09:55:49 -07:00
Unknown W. Brackets
74239c199d Psmf: Allow AUDIO type when specifying streams. 2016-05-31 09:55:48 -07:00
Unknown W. Brackets
5f7c95f249 Psmf: Count PCM as an AUDIO stream as well. 2016-05-31 09:55:47 -07:00
Unknown W. Brackets
9df727f94f Psmf: Stop pretending streamMap is a vector. 2016-05-31 09:55:47 -07:00
Unknown W. Brackets
8df298f622 Thread: Auto-resume dispatch for worse threads.
Seems this doesn't happen when you start a better priority thread, pretty
reproducibly.
2016-05-31 09:55:20 -07:00
Unknown W. Brackets
197f3393df Thread: Better/minor accuracy for sysclock delay.
Certain negative values shouldn't cause a delay, could help if a game has
a bug.
2016-05-31 09:55:19 -07:00
Unknown W. Brackets
baac12b327 Log args for dispatch/interrupt early-fail. 2016-05-31 09:55:18 -07:00
Unknown W. Brackets
d0d570c6ac ThreadEvent: Delete threads after handler runs.
It should actually run on the thread itself, it seems, but that's probably
not as important as the thread still existing.  This allows the handler to
get the thread name or etc.
2016-05-30 13:00:23 -07:00
Unknown W. Brackets
21ba67e1d7 Module: Add legacy save state stub fixup.
Forgot this, when we don't have the stub info.  Stub info is better, since
we might handle things differently.
2016-05-30 02:11:28 -07:00
Unknown W. Brackets
65820d6184 Thread: Use a short delay for 0us delays after all.
It seems the behavior varies.  Should help #6924 and #6981.
2016-05-29 22:04:47 -07:00
Unknown W. Brackets
1a3fc9cdeb Module: Avoid writing missing stubs on reimport.
In case they were manually linked, or something.
2016-05-29 08:29:51 -07:00
Unknown W. Brackets
9b706975ad Module: Reimport stubs on load state. 2016-05-29 08:27:19 -07:00
Unknown W. Brackets
47f16ed97b Module: Refactor stub imports to dedicated func. 2016-05-29 08:07:01 -07:00
Unknown W. Brackets
12b907ed60 Put syscalls back where they were supposed to be.
Oops, didn't mean to move this.  Might've broken save states.
2016-05-29 07:31:22 -07:00
Unknown W. Brackets
4fc12cdd29 ThreadEvent: Handle getting scheduled off a thread. 2016-05-29 00:59:52 -07:00
Unknown W. Brackets
97cce6ccfe ThreadEvent: Trigger handlers for start/exit too.
Start isn't in the right place or on the right thread, and exit isn't on
the right thread either.  But these don't seem very particular about what
thread they run on.
2016-05-28 21:19:28 -07:00
Unknown W. Brackets
c6cd614f2b Thread: Allow mipscalls to be scheduled in a row.
Should be fine to just use the stack to save these things, likely that's
what happens in real firmware.  This fixes issues when a second mipscall
is scheduled in the same HLE syscall.
2016-05-28 21:18:03 -07:00
Unknown W. Brackets
ceb36fc81d ThreadEvent: Allow an exit event handler on self. 2016-05-28 21:17:54 -07:00
Unknown W. Brackets
be1cde15ba ThreadEvent: Initial support for create/delete. 2016-05-28 21:17:36 -07:00
Unknown W. Brackets
e9916bdf0b ThreadEvent: Add management functions.
Currently never being triggered, though.
2016-05-28 21:17:16 -07:00
Unknown W. Brackets
04576189b4 Callbacks: Fix delete when multiple for a thread.
Oops, this was deleting all after the deleted one.
2016-05-28 21:15:25 -07:00
Unknown W. Brackets
a1fbcc3d93 Avoid directly calling osm from Core/GPU code.
This allows UI to handle the message however it wants to, and reduces
cross linkage issues.
2016-05-27 22:05:30 -07:00
Unknown W. Brackets
f0cc975865 Hook some funcs in Me and My Katamari.
One is a very hardcoded screenshot download / vfpu convert to 565, and the
other is some very weird check to make sure render is clear or has
happened or something.

The screenshot func detects downloads for the "Royal Album".  The render
check detects downloads for post-rename (no idea why it checks here.)

Fixes #7695.
2016-05-20 22:30:25 -07:00
Unknown W. Brackets
842e450965 Display: Correct default brightness, add reporting.
Not sure if any games use hold/resume in a way that ought to work.
Display didn't seem to react to them being called.
2016-05-16 22:33:50 -07:00
Unknown W. Brackets
d0dc03f359 Display: Wait for vblank when setting mode.
Some games call this even when not needed, and it turns out to have an
important behavior.
2016-05-16 22:02:21 -07:00
Unknown W. Brackets
9ed604f9c8 Display: Return 1 during the vsync period.
Timing is based on manual tests, where the vsync signal is near the end of
the vblank.  Curiously, it stops right before the vblank stops, reliably.
2016-05-15 23:46:46 -07:00
Unknown W. Brackets
597824eec6 Display: Add validation/report to set mode.
This seems to be involved in using the video out cable, but fails for
anything but these fixed parameters in normal situations.
2016-05-15 22:16:31 -07:00
Unknown W. Brackets
5e8e2d5e56 Display: Allow only immediate address changes.
It seems you must latch a change to stride/fmt first, which basically
makes sense.  Otherwise it would revert, I suppose.
2016-05-15 16:42:25 -07:00
Unknown W. Brackets
249a85b7e0 Display: Validate framebuf parameters. 2016-05-15 16:38:00 -07:00
Unknown W. Brackets
44cee09adc Dsiplay: Initialize the framebuf params better. 2016-05-15 16:29:58 -07:00
Unknown W. Brackets
958d7f0944 Display: Record bufw/fmt even when display is off.
These are returned by sceDisplayGetFrameBuf().
2016-05-15 15:55:04 -07:00
Unknown W. Brackets
26e9acee4b Display: Skip transitions between off/on in FPS.
We're just trying to detect frequent flips, so off/on doesn't play into
it.
2016-05-15 15:54:04 -07:00
Henrik Rydgard
6e44e97ffa Refactor prep: Split JitInterface into MIPSFrontendInterface and JitInterface 2016-05-09 19:41:39 +02:00
Henrik Rydgard
38b7d89dfb Fix a performance issue in CallSyscall 2016-05-07 21:34:27 +02:00
Unknown W. Brackets
9280bb3eda Merge pull request #8715 from unknownbrackets/tex-replace
Initial texture replacement support
2016-05-01 09:58:16 -07:00
Unknown W. Brackets
2e1986d0c8 Fix a few reorder warnings. 2016-05-01 09:50:03 -07:00
Henrik Rydgård
b6d7aab8dc Merge pull request #8716 from hrydgard/remove-preprocessor-hacks
Remove preprocessor hacks around the JITs
2016-05-01 18:47:59 +02:00
Henrik Rydgård
e91fc59bbe Merge pull request #8693 from sum2012/pmp-video
Temporarily disable PMP video for non-windows
2016-05-01 11:49:55 +02:00
Henrik Rydgard
8b450c8034 Merge NativeJit.cpp/h with JitCommon.cpp/h 2016-05-01 11:39:59 +02:00
Henrik Rydgard
a5be0976bd Remove preprocessor hacks to choose JIT implementation.
Opens up for having multiple JIT implementations available at runtime,
which could be use for experimenting with new JIT compiler types or for
unit testing one JIT on another architecture.

Very few of the newly virtual calls are on any sort of critical path so
hopefully there will not be a performance loss.
2016-05-01 11:39:53 +02:00
Henrik Rydgard
4645473dab Remove unused code 2016-05-01 11:35:16 +02:00
Unknown W. Brackets
bc03aa11f2 Log module id as hex, clearer. 2016-04-18 20:19:27 -07:00
Unknown W. Brackets
5a74826372 Use new logging in utility module load/unload. 2016-04-18 20:17:49 -07:00
Unknown W. Brackets
f9ba0d7321 Correct dependency handling when loading modules.
Should help #8700.
2016-04-18 20:08:27 -07:00
sum2012
5e20ba1811 Temporarily disable PMP video for non-windows 2016-04-13 20:06:51 +08:00
Henrik Rydgard
4197148dc4 Add some paranoid checks hoping to fix crashes reported in Google Play developer console. 2016-04-09 18:27:35 +02:00
Henrik Rydgard
727058fc27 Remove an entry from GPUStats that didn't really belong. 2016-04-02 11:06:05 +02:00
Henrik Rydgard
ad0da06f65 Forgot to remove these from the debug string. 2016-04-02 10:36:51 +02:00
Henrik Rydgard
5ef608fa50 GPU stats: Have each backend format its own string. 2016-03-31 10:17:02 +02:00
Henrik Rydgard
004c8b0fca Make debug stats more compact. 2016-03-31 09:47:25 +02:00
Unknown W. Brackets
3976e840a1 Fix some old savestates. 2016-03-20 23:03:48 -07:00
Unknown W. Brackets
ef1dc583a2 Fix various minor warnings. 2016-03-20 14:17:51 -07:00
Henrik Rydgård
2b46ae59a0 Merge pull request #8601 from hrydgard/vulkan
Vulkan rendering backend. Early Work-In-Progress
2016-03-20 21:08:58 +01:00
Henrik Rydgard
f7113bb2e3 Use separate pushbuffers for UBO/Index/Vertex. This will make decoding directly into the pushbuffers easier, plus other benefits later.
(For example, we'll often be able to avoid rebinding the vertex and
index buffers at new offsets by just keep counting upwards between draws,
if the vertex format is the same but other state changed)
2016-03-20 19:31:02 +01:00
Henrik Rydgard
e45c24b75f Show how much pushbuffer space is used each frame.
Optimizing this number (by avoiding redundant UBO uploads etc) will probably help performance.
2016-03-20 19:31:02 +01:00
Henrik Rydgård
b3402ef1fb Merge pull request #8560 from unknownbrackets/prescale-uv
Enable UV prescaling by default
2016-03-20 18:10:19 +01:00
Henrik Rydgård
538d801f17 Merge pull request #8588 from sum2012/net-minor
Add sceNetIfhandle staff
2016-03-20 18:07:24 +01:00
Henrik Rydgard
b137bf1af4 Oops 2016-03-13 18:42:26 +01:00
Henrik Rydgard
c8457d39ed Fix a bunch of compiler warnings, delete some unused code 2016-03-13 15:17:31 +01:00
Unknown W. Brackets
da03b80c97 Standardize on just one mutex implementation. 2016-03-06 14:49:15 -08:00
Henrik Rydgard
082d839965 Fix minor issues in ISOFileSystem 2016-03-06 14:28:10 +01:00
sum2012
1df833cc16 Small fix and change log format 2016-02-21 13:18:03 +08:00
sum2012
5894e8f18f Add save status support 2016-02-21 07:33:06 +08:00
Henrik Rydgard
e954768a84 sceAtrac: Work-around crash with older versions of FFMPEG when free-ing.
Better leaking than dead, although there has to be a better way.
2016-02-14 17:19:32 +01:00
sum2012
29f24a600e Add sceNetIfhandle staff
Used in Yu-Gi-Oh 5Ds Tag Force 4
2016-02-13 20:27:07 +08:00
Unknown W. Brackets
8bea240c25 Atrac: Specify endianness for reset info. 2016-02-10 21:02:41 -08:00
zhyk
fa6fe85dc3 Fix audio lag in Qt without SDL. 2016-02-10 23:34:38 +08:00
Henrik Rydgard
35b6c7341b Fix a bunch of memory leaks, after enabling file+line-number memory leak tracking for the MS Debug CRT.
Few of these were serious, most were on-exit, but good to have a cleaner memory report after running.
2016-02-10 15:36:10 +01:00
Unknown W. Brackets
0ea8cc9753 Minor const cleanup. 2016-02-07 14:07:21 -08:00
Unknown W. Brackets
e75af43f0a Handle floats and sign extension in HLE logs.
In some cases, we were previously logging sign-extended error codes.  This
handles that better using type_traits.
2016-02-06 19:53:56 -08:00
Unknown W. Brackets
666f1898c6 Fix crash loading old savestates.
Oops.  Forgot that this could be saved as -1 when loading an old
savestate, and then resaving it.

Fixes #8531.
2016-01-30 21:39:25 -08:00
Henrik Rydgård
194e9eddec Merge pull request #8503 from unknownbrackets/hle-minor
Minor logging adjustments, not used yet
2016-01-27 12:29:43 +01:00
Unknown W. Brackets
65a5c92c7e Io: Change some logging flags.
Not used yet, just prep work.
2016-01-24 22:52:19 -08:00
Unknown W. Brackets
3a64388eee Support 64-bit args/return in new HLE logging.
Pulls in a new header, unfortunately, but this is a mostly clean way to do
it.
2016-01-24 22:22:23 -08:00
Unknown W. Brackets
f1896abf74 Atrac: Move buffer offset only if needed.
Hmm, need to manage this buffer smarter, though, when streaming.  Right
now it's only getting it right enough to ask for the right amount of data,
really...

Fixes #8498.
2016-01-24 09:09:07 -08:00
sum2012
bbeaf67cd6 Support port offset by @ANR2ME
Useful of adhoc of non-windows
2016-01-24 16:52:39 +08:00
daniel229
d032c3895b Replace function in Omerta Chinmoku No Okite The Legacy 2016-01-24 11:58:20 +08:00
daniel229
0ab6c544b7 Replace function in unENDing Bloody Call 2016-01-24 11:55:56 +08:00
daniel229
80952d5e06 Replace function in ATV Offroad Fury Pro (US) demo 2016-01-24 11:53:46 +08:00
Henrik Rydgard
e866d83547 Temporarily revert "Mpeg: Return errors when no audio is available."
This reverts commit c03f6c23ed.

This caused trouble as seen in #8464, but is probably right - needs other fixes though so
it will have to wait until after 1.2.0.
2016-01-23 17:08:01 +01:00
Unknown W. Brackets
bc48509f33 Add a bit more safety to func replacements.
In case somehow the replacement changes.
2016-01-21 22:17:25 -08:00
Unknown W. Brackets
1b72d3a67a Atrac: Correct remaining frame count for streaming.
This makes more sense, I think this is the right value.
2016-01-18 22:05:01 -08:00
Unknown W. Brackets
600df17eb6 Atrac: Correct loop read pos with offset.
In case it doesn't loop from the start.
2016-01-18 18:11:25 -08:00
Unknown W. Brackets
3466fb1755 Atrac: Adjust loop/nonloop remaining full values.
These are tricky, but it seems like this is right.
2016-01-18 18:00:48 -08:00
Unknown W. Brackets
e2f2c1af90 Atrac: Mark the leading frame consumed on loop.
This is the frame we skip samples from.  Might need smarter logic.
2016-01-18 18:00:48 -08:00
Unknown W. Brackets
3130b7a489 Atrac: Correct stream offset after non-loop end. 2016-01-18 18:00:47 -08:00
Unknown W. Brackets
036c965cf5 Atrac: Correct stream write offset after seek. 2016-01-18 18:00:46 -08:00
Unknown W. Brackets
4c25072328 Atrac: Never ask for more bytes than filesize. 2016-01-18 18:00:46 -08:00
Unknown W. Brackets
59523f1327 Atrac: Fix logging of new atrac ID. 2016-01-17 20:10:11 -08:00
Henrik Rydgård
2e2904c796 Merge pull request #8442 from unknownbrackets/atrac-remaining
Atrac: Correct remaining values when looping
2016-01-17 22:40:08 +01:00
Unknown W. Brackets
face527d7e Atrac: Correct remaining values when looping.
Otherwise it was going negative, which was wrong.
2016-01-17 13:22:12 -08:00
Unknown W. Brackets
f60aef2e16 Add a more specific interface for video frames.
Since we know more about them.  No functional change yet.
2016-01-17 12:57:26 -08:00
Unknown W. Brackets
63aa4291eb Atrac: Fix savestates.
Darn, totally forgot.  This should populate acceptable values for old
streamed atrac as well.
2016-01-17 10:05:15 -08:00
Henrik Rydgard
3ba911bf07 Replace some calls to fopen with File::OpenCFile (utf8). 2016-01-17 15:59:20 +01:00
Henrik Rydgård
b2140d73e7 Merge pull request #8435 from unknownbrackets/atrac-stream
Calculate stream data info a bit more accurately
2016-01-17 10:30:09 +01:00
Henrik Rydgård
93490f5329 Merge pull request #8436 from unknownbrackets/atrac-lowlevel
Simplify lowlevel atrac decoding a lot
2016-01-17 10:26:59 +01:00
Unknown W. Brackets
74d40115a0 Mpeg: Initialize esBuffer to safer values.
Makes the audio work properly in Dan Ball Senki W (#4786.)
2016-01-17 00:31:22 -08:00
Unknown W. Brackets
c03f6c23ed Mpeg: Return errors when no audio is available.
Before, we were only returning an error once, in an effort to log only
once.  This meant sometimes games would not realize they needed to add
packets.
2016-01-17 00:22:46 -08:00
Unknown W. Brackets
849df69690 Atrac: Simplify lowlevel init more. 2016-01-16 23:12:12 -08:00
Unknown W. Brackets
a686ca69fd Atrac: Simplify lowlevel decoding.
No need for all these variables that just spin and do nothing.
2016-01-16 23:03:22 -08:00
Unknown W. Brackets
a4d875cd2a Atrac: Stop generating headers in lowlevel. 2016-01-16 22:46:24 -08:00
Unknown W. Brackets
45e6f9e9b7 Atrac: Fix lowlevel jointStereo usage.
Seems this value is supposed to be (channels << 3) form the lowlevel code,
which is believable.  FFmpeg skips it anyway.

Also, need to set the flag so it gets used.
2016-01-16 22:35:39 -08:00
Unknown W. Brackets
4e20b61d3a Atrac: Fix some confusing variable use in lowlevel. 2016-01-16 22:35:13 -08:00
Unknown W. Brackets
53e990e116 Atrac: Fix a leak from an unused var. 2016-01-16 22:34:45 -08:00
Unknown W. Brackets
a2417b4779 Atrac: Ensure correct fileoffset when adding data.
If we looped, especially in the middle or toward the end, this ensures the
data ends up in the correct place in our larger buffer.
2016-01-16 18:36:22 -08:00
Unknown W. Brackets
e41a1f476f Atrac: Simulate ringbuffer for writable bytes.
Ringbuffer is not actually read from PSP RAM, and there are a couple
inaccuracies, but this should be a lot better than before.
2016-01-16 18:34:44 -08:00
Unknown W. Brackets
23523a2fdc Atrac: Add missing output channels for AA3.
Although, default was 2 so this shouldn't change anything.
2016-01-16 18:10:57 -08:00
Unknown W. Brackets
d3ee48a770 Atrac: Make buffer init functions more consistent. 2016-01-16 18:10:35 -08:00
Henrik Rydgård
067095e2b4 Merge pull request #8410 from latot/mini
little changes
2016-01-17 00:44:07 +01:00
Unknown W. Brackets
cf9cb798fc Atrac: Remove unused variables, cleanup some names. 2016-01-16 14:47:07 -08:00
Unknown W. Brackets
aac603534a Reset failedDecode when the game sets new data.
Should not last forever.
2016-01-16 14:01:12 -08:00
Unknown W. Brackets
d97dfac594 Atrac: Log bad data more consistently.
Let's always give the HLE func in the actual error.
2016-01-16 13:59:38 -08:00
Unknown W. Brackets
7c07922076 Atrac: Clean up some logging. 2016-01-16 13:44:54 -08:00
latot
e82620c572 remove
remove
2016-01-16 09:32:39 -03:00
Unknown W. Brackets
d3da6d8c6e Atrac: Validate second buffer on reset position. 2016-01-12 00:19:35 -08:00
Unknown W. Brackets
a317b10777 Atrac: Keep track of the set second buffer.
Not actually used yet, but this way our context/etc. can be right.
2016-01-12 00:19:34 -08:00
Unknown W. Brackets
40bd31f50b Atrac: Request second buffer data.
It's not used, but at least we ask for it properly.
2016-01-12 00:19:33 -08:00
Unknown W. Brackets
397094651c Atrac: Skip copying to data_buf when unused. 2016-01-12 00:19:33 -08:00
Unknown W. Brackets
b29e856055 Atrac: Remove some unused calculations.
Halfway buffers now always calculate writableBytes realtime.
2016-01-12 00:19:32 -08:00
latot
53ac6d98d8 Little things
back 1

other little change, join 2 in 1
2016-01-09 20:44:02 -03:00
Henrik Rydgard
e11d0a7e1c Minor GPU interface cleanup 2016-01-06 23:49:02 +01:00
daniel229
1e984b48ef update functions 2016-01-04 09:08:52 +08:00
daniel229
de8503f83b Replace function in Shinigami to Shoujo 2016-01-03 22:35:46 +08:00
daniel229
05612bbc25 Replace function in Little Busters! Converted Edition 2016-01-03 22:28:38 +08:00
daniel229
3b461a00cc Replace function in ATV Offroad Fury Blazin' Trails 2016-01-03 22:20:50 +08:00
daniel229
107fa1c09a Replace function in ATV Offroad Fury Pro 2016-01-03 22:13:42 +08:00
Unknown W. Brackets
18dbaac3c7 Fix savestate compat with older versions. 2016-01-02 18:50:59 -08:00
daniel229
ed12bb9c89 Fix flickering in SD Gundam G Generation Portable 2016-01-03 09:56:40 +08:00
Unknown W. Brackets
4fac4d364e Atrac: Read non-streamed data from PSP RAM.
This should fix games that don't actually read into the RAM right away,
which is probably "incorrect" but works on the PSP, should should work in
PPSSPP.
2016-01-02 13:20:17 -08:00
Unknown W. Brackets
f0551b4591 Atrac: Add a flag to use PSP RAM (not yet used.) 2016-01-02 13:20:17 -08:00
Unknown W. Brackets
d0c7cc85de Atrac: Update writableBytes/offset on adding data.
It should go in these places, even if GetStreamDataInfo is not called.
2016-01-02 13:20:16 -08:00
Unknown W. Brackets
2df6d7700e Atrac: Refactor out some common validation.
This seems to be happening a lot.
2016-01-02 13:20:15 -08:00
Unknown W. Brackets
1b6dbd45e7 Atrac: Get stream info right for half/full buffers.
Improve it a bit for streamed buffers, but it's still not quite right.
2016-01-02 13:20:15 -08:00
Unknown W. Brackets
e60dc24d29 Atrac: Update some comments/docs on buffers. 2016-01-02 13:20:14 -08:00
Unknown W. Brackets
959015f823 Atrac: Correct typo. 2016-01-02 13:16:22 -08:00
Unknown W. Brackets
96d5e10549 Atrac: Seek ahead only one frame at end.
If it had a partial ending frame, it should go ahead one frame, not one
frame plus the partial ending.
2016-01-02 11:13:48 -08:00
Unknown W. Brackets
85ff5eb68a Atrac: Adjust reads a bit earlier when skipping.
The frames we initially get may not start at 0, depending on how many
frames we're skipping.  Of course...
2016-01-02 11:13:09 -08:00
Unknown W. Brackets
6fe5fe07a4 Atrac: Revert broken seeking fix.
This wasn't the right solution to getting the right packets.
2016-01-02 11:12:35 -08:00
daniel229
678ca9301a Fix tutorial videoes in Tony Hawk P8 2016-01-02 13:33:22 +08:00
Unknown W. Brackets
182d281750 Atrac: Move currentSample on finish.
This seems to be what happens, and allows remaining frames to calculate
properly in some cases where it wasn't before.
2016-01-01 11:34:56 -08:00
Unknown W. Brackets
f88a82e0a6 Atrac: Respect null output even in fail workaround. 2016-01-01 11:34:33 -08:00
Unknown W. Brackets
dafb15d96e Atrac: Clamp packets to valid data.
In case we don't have full valid data yet, return only the part of the
data that is valid.  This allows FFmpeg to decode data it already has, as
necessary.
2016-01-01 11:33:48 -08:00
Unknown W. Brackets
cdca0492a4 Atrac: Update fileoffset handling per tests.
This accounts for the extra offset value.
2016-01-01 11:33:19 -08:00