Commit Graph
27588 Commits
Author SHA1 Message Date
Henrik Rydgård ce20273f5f Add showTwitter command (Android-only). 2013-12-19 14:27:16 +01:00
Sacha c839222e7b Blackberry buildfix. 2013-12-19 23:01:13 +10:00
Henrik Rydgård 28a518bfa7 Reformat JitBlockCache 2013-12-19 13:34:06 +01:00
Henrik Rydgård 2eb1f89ad0 Rework proxy blocks a bit 2013-12-19 13:31:13 +01:00
Henrik Rydgård 3957b5fb42 Call ProxyBlock in ArmJit too. Plus various cleanup and one more string function. 2013-12-19 11:45:39 +01:00
Henrik Rydgård 5585b85ccc Use GetPointerUnchecked in replaced functions. No point in checking these addresses really. 2013-12-19 11:34:55 +01:00
Henrik Rydgård 6fe3c6cf37 Exclude rt on Mac SDL port 2013-12-19 11:10:46 +01:00
Henrik Rydgård 899fd5ceb7 Merge pull request #4882 from unknownbrackets/jit-minor
Fix memcpy/memmove replacements, minor tweaks
2013-12-19 00:42:01 -08:00
Unknown W. Brackets 46e0ac5f23 Logging tweak. 2013-12-19 00:18:29 -08:00
Unknown W. Brackets b48c625adc Replacements: use memmove, avoid invalid addr.
If size = 0, don't care about addresses.  Some games use 0, 0, 0 and
expect it to work just fine, which it should.
2013-12-19 00:15:03 -08:00
Unknown W. Brackets 9bb03072e6 Increase the min size of an "interesting" func.
Seeing a bunch of forwarders and stuff that won't hash safely.
2013-12-18 23:58:45 -08:00
Unknown W. Brackets 438361d0bc Clean up code pointer naming for the jit.
Now it properly identifies thunk code which is actually a decent percent
when fastmem is off at least.
2013-12-18 23:57:39 -08:00
Henrik Rydgard 83534c0490 Linux build fixes. See #4880 2013-12-19 01:03:22 +01:00
Henrik Rydgard 7e3eaa6196 A few more known funcs 2013-12-19 00:42:11 +01:00
Henrik Rydgard 1cb7965cb1 Jit feature preparation: Introduce "proxy blocks".
When these are invalidated, the block they point to gets invalidated too.

Will be useful to implement various types of block merging and function inlining
without affecting correctness of cache clears etc.

Also, with this commit we can now fully inline replaced functions. fabsf() boils
down to 1-2 instructions and the block continues, for example.
2013-12-19 00:39:49 +01:00
Henrik Rydgard 1e300447e1 Fix some replace-related bugs. Add "jal" replace inlining, not activated. 2013-12-18 16:27:23 +01:00
Henrik Rydgård b2d0f37d96 Fix crashing on some OpenGL versions 2013-12-18 12:00:23 +01:00
Henrik Rydgard 2d4c28826a Show replaced instructions correctly in disassembly 2013-12-18 11:42:19 +01:00
Henrik Rydgard 041ed9a4b8 More replace function work 2013-12-18 11:22:53 +01:00
Henrik Rydgard 0a1514161d GLSL 3.0 fix 2013-12-18 11:22:31 +01:00
Henrik Rydgard 6937719c3b Minor fixes around function replacement, a couple of math funcs 2013-12-18 10:35:50 +01:00
Unknown W. Brackets 497537a4c4 Fix another dumb typo.
Arg, need to stop rushing things.  May have caused #4869.
2013-12-17 23:36:51 -08:00
Henrik Rydgard 7c31ad7ed6 More function hashes 2013-12-18 00:29:42 +01:00
Henrik Rydgard 1d2f1efd06 Fix function replacement on ARM 2013-12-18 00:09:08 +01:00
Henrik Rydgard 2eab4aa1bf Play around with function replacement. Turned off by default of course. 2013-12-17 23:40:27 +01:00
Henrik Rydgard 832c933cb8 Some shader fixes 2013-12-17 23:38:58 +01:00
Henrik Rydgard 2c57a0a897 Add some math functions to known function hashes
This includes some double-precision soft-float. These are dicey though because
several of them differ only by immediate values and thus collide with others.
2013-12-17 20:19:06 +01:00
Henrik Rydgård 5c5c961d94 Merge pull request #4872 from unknownbrackets/savedata
Only draw visible savedata icons, fix leak
2013-12-17 09:38:53 -08:00
Unknown W. Brackets b2795b31c0 Only draw visible savedata icons, fix leak.
Fixes #4870.
2013-12-17 08:07:30 -08:00
Henrik Rydgard ca9efb1619 Linux build fix 2013-12-17 12:41:45 +01:00
Henrik Rydgard 291d25f43d Only autosave the hashmap if enabled and not on mobile. 2013-12-17 12:30:56 +01:00
Henrik Rydgard 2aebbc6f07 Update native (blacklist dual source alpha on Intel) 2013-12-17 12:27:20 +01:00
Henrik Rydgard 2140892074 Initial preparations for ability to replace game functions with custom implementations.
Also auto-saves hashmap additions and reapplies the hashmap on function
rename so that if you rename a function that exists in several copies
they will all be labelled.

Note that actual function replacement is not activated yet.
2013-12-17 12:27:20 +01:00
Henrik Rydgard 828db2b233 Blacklist ARB_blend_func_extended on Intel. See ppsspp issue #4867 2013-12-17 12:25:19 +01:00
Henrik Rydgård 52cec1ca38 Merge pull request #4866 from unknownbrackets/io-minor
Reporting and tweak to mpeg change for Valkyrie Profile
2013-12-17 02:04:50 -08:00
Unknown W. Brackets 8e797796e5 Wait for only 5 frames before seeking mpegs.
Workaround for Mana Khemia, ugh... must be more complex logic.  Valkyrie
Profile still works.
2013-12-17 02:00:57 -08:00
Unknown W. Brackets d704f39981 Report unknown devctl commands. 2013-12-17 01:55:38 -08:00
Henrik Rydgård 6c8ba5eda6 Merge pull request #4865 from unknownbrackets/knownfuncs
Add a base knownfuncs.ini from some guesses.
2013-12-17 00:40:29 -08:00
Henrik Rydgård 6432451334 Merge pull request #4864 from unknownbrackets/io-minor
Implement some ioctl commands for disc0:/ files
2013-12-17 00:38:04 -08:00
Unknown W. Brackets 8c5fb2b3f3 Add a base knownfuncs.ini from some guesses.
Not versioning the actual path since I add funcs sometimes and would
prefer a clean tree.
2013-12-17 00:33:32 -08:00
Unknown W. Brackets fd9d4916d5 Implement ioctl 0x01030008, seems important.
There are a number of games using this, which might be happier now.
2013-12-17 00:17:34 -08:00
Henrik Rydgard b41956552b Update native (forces GL_ARB_blend_func_extended off on GL < 3.0) 2013-12-17 09:10:28 +01:00
Henrik Rydgard c21fa64c19 Force ARB_blend_func_extended off on OpenGL < 3.0. 2013-12-17 09:09:39 +01:00
Henrik Rydgard 3ed7c6d48f SoftGPU: Display at correct aspect ratio independent of window size. 2013-12-17 09:02:54 +01:00
Unknown W. Brackets c301eb9b53 Implement ioctl 0x01010005 based on PSP tests.
Fixes #1210.  May fix issues, since it was being silently ignored before.
2013-12-16 23:51:04 -08:00
Unknown W. Brackets 183b4cb45c Add a static method for creating PSPPointers.
This is still kinda ugly, but the assignment thing was just too ugly, I
couldn't do it anymore.
2013-12-16 23:50:52 -08:00
Henrik Rydgard 38f94ea0bf Minor typo fix 2013-12-17 00:20:40 +01:00
Henrik Rydgård b832cf1f84 Merge pull request #4858 from sum2012/patch-1
Add more information for "Not support this patcher"
2013-12-16 14:46:17 -08:00
Henrik Rydgard f8312716f3 Only use dual source when actually needed.
Does generate a few more shaders but hopefully isn't a problem, should get rid of most of the slowdown in most games.
2013-12-16 23:44:28 +01:00
Henrik Rydgard a9a15d5196 Don't use dual source when stencil disabled 2013-12-16 23:41:42 +01:00