Commit Graph

2218 Commits

Author SHA1 Message Date
ramapcsx2 ee6b27aeb8 A few fixes to resets and shutdowns. Fixes a few memory leaks.
Thanks a bunch, ksi3zyc :)

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2698 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-11 21:16:35 +00:00
sudonim1 72ce9993d2 GSDX: unify blending tables. No functional change, but one may be coming soon if I can make it work.
Also, screw you, Stroustrup! You don't make me cast short to int, so don't make me cast int to an enum! PS: arithmetic operators, you stingy bastard.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2697 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-11 18:41:31 +00:00
sudonim1 7fb8d0316b Subtle bug in iR5900Arit.cpp rewrite and a little more cleaning.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2696 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-11 17:19:54 +00:00
arcum42 f1c2dee343 Quick Linux fix.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2695 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-11 11:05:10 +00:00
sudonim1 bf933b0af9 Rewrote the instructions in iR5900Arit.cpp.
Nothing dramatic, this doesn't seem to be measurably faster or slower and I didn't find any more bugs in the old version.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2694 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-11 07:53:07 +00:00
ramapcsx2 77a40e3c6e Increase version of SPU2-X and GSdx, as enough changes have accumulated.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2693 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-11 06:46:19 +00:00
cottonvibes 8978e463ec mVU: fixed some memleaks and fixed some rare bugs in microprogram range detection...
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2692 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-11 04:03:08 +00:00
sudonim1 956d041212 Removed old versions of instructions with no constprop support . Nothing seems to boot if I disable constprop now but that may indicate a recompiler bug so I'm committing it anyway as a reminder to find it. Doesn't affect normal compiles.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2691 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-10 20:59:43 +00:00
sudonim1 d846c8709f Started rewriting arithmetic instructions because of the disgusting state of the code, went mad and stripped the main case for the liveness optimisation from the recompiler. It would be very nice if it worked and wasn't such a mess but it hasn't for a long time or never did. Didn't revert the one function I rewrote, next commit will likely be the rest of the file.
While doing this, spotted and fixed a couple of bugs with doubleword add/sub when one operand is a constant propagated from earlier in the block and has 0 in the upper word; the instructions weren't performing the carry/borrow in this case.  Likely doesn't fix any game.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2690 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-10 14:56:30 +00:00
sudonim1 d8ef7a4171 Killed the R5900 register sign extension flag (upper 32 bits of the lower 64) as it's checked in literally one instruction and probably isn't exactly well tested. Tracking this is important to liveness optimisations (and the fact that it's never checked may be why liveness isn't really helping), but I noticed it was being set erroneously in some places and decided it's best just to scrap it.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2689 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-10 12:05:35 +00:00
ramapcsx2 d3716fd295 Avoid using MMX in EErec operations where possible. This bypasses hangs in Bully for now.
The problem needs to be fixed more thoroughly in the future, by rewriting several opcodes.

You can find all changed locations via the comment "// Fixme: MMX problem".

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2688 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-10 10:59:10 +00:00
ramapcsx2 6c4c4e316d GSdx:
- Hopefully hacked up the "wall of fog" problem in GoW2. Used an adapted patch from ZeroGravity.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2687 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-10 10:10:36 +00:00
ramapcsx2 ba8495dc94 SPU2-X:
- More fixes to "slides". The few games using them should sound mostly correct now.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2686 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-09 19:18:48 +00:00
Jake.Stine fd858a1784 Remove some obsolete MMX/VM code bits from the EErec.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2685 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-08 19:29:30 +00:00
Jake.Stine 7a78926437 Fix 64 bit writes to counters registers, which would corrupt memory (used mostly only by homebrews, since technically the counters are 32 bit regs only, and aren't *supposed* to be accessed via 64 bit writes).
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2684 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-08 13:24:08 +00:00
drkIIRaziel 857cf72862 --i was looking out of the window, and noticed the cast is missing. So i added it !
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2683 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-08 10:45:05 +00:00
ramapcsx2 b2078a0243 Some various things.
Fixed Console spam in MGS3, made the MTGS startup timeout longer (as per request), re-added the vtlb miss warnings.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2682 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-08 02:55:52 +00:00
ramapcsx2 a7aac122d6 SPU2-X:
- Fix Silent Hill Origins, Max Payne 2 and a few others. This was a really old bug :p

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2681 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-08 02:19:58 +00:00
cottonvibes 8064d9a4d4 mVU: minor cleanups...
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2680 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-07 02:44:32 +00:00
ramapcsx2 0244097a26 SPU2-X:
- Fixed the clipping audio in many game's sound effects by using a saturating XA decoder.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2679 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-07 02:38:33 +00:00
cottonvibes 000ba087e4 lets add deque to precompiled header :)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2678 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-06 09:22:56 +00:00
arcum42 39a628ab9a Get spu2-x working in Linux again.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2677 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-06 06:06:45 +00:00
arcum42 b840fb9d7c Quick Linux compilation fixes.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2676 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-06 00:49:35 +00:00
cottonvibes 73fb883840 microVU: fixed microProgram log dump code, and minor cleanups...
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2675 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-05 23:52:48 +00:00
Jake.Stine 123545eeb1 ... oops! Fixes startup prompts.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2674 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-05 23:07:18 +00:00
Jake.Stine 3e709bade8 Removed legacy savestate code (should have done it in my prev commits, but forgot). Made the PCSX2 startup a bit smarter and less assumptive about the UserDocs folder.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2673 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-05 21:00:49 +00:00
Jake.Stine 0d03b06708 Changing a Freeze to Thaw: Running VIFcodes saved XMM regs but never restored them. ;)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2672 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-05 14:27:22 +00:00
Jake.Stine 08f3e4955b Major Savestate fix: Added version info, which never got added (oops) after I redid the savestate system for 0.9.7. Breaks all old savestates, but should be the last backward compat breakage for quite a while.
Also
 * Tons of small UI bugfixes and cosmetic improvements, mostly to startup, first-time running, and resetting options.
 * Added a third startup option for specifying a custom "default location" for PCSX2 files, in addition to user docs and CWD.

Devs:
 * Implemented some more += operators for adding wxWidgets objects to sizers (pxStretchSpacer mainly).
 * Preliminary re-implementation of memory cards panels -- still non-functional, so it's disabled.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2671 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-05 14:24:44 +00:00
cottonvibes 0548ed0c5a Color vu0 console logs differently than vu1.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2670 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-05 08:42:49 +00:00
ramapcsx2 2bf9d5cff5 Nothing much. Just breaking all old savestates.
(Had to be done, many recent code changes require new state handling, and it was too broken.)

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2669 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-05 08:08:17 +00:00
cottonvibes 69fd9fb395 microVU: Finished most of the caching/memory model rewrite (whats left is mostly just tweaking/cleanup...), mVU should be back to stable status now afaik.
With this rewrite, God of War 1/2 games don't constantly recompile and play a lot more smoother on mVU than they did before; this was one of my goals with the rewrite as i always hated how crappy GoW ran with mVU.

Also a nice big noticeable change, pcsx2's memory footprint was reduced by around ~170 mb! microVU was taking up a lot of memory because it made GoW games run better to have a huge rec-cache with the old model, but now thats not needed anymore.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2668 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-05 06:24:15 +00:00
arcum42 c19dfa41d4 Change header to match the function declaration. (and fix Linux)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2667 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-05 02:54:22 +00:00
feal87 b7f3b93ecd GSDXGSDumpGUI :
Big optimization, reorganization of the code to be more coherent.
Now the Bitmap of "No Image" is created once.
Fixed crash on opening the bitmap.
Now the program change the GSDX window icon, with its own.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2666 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-04 14:54:20 +00:00
feal87 85c23ce0a0 GSDumpGUI : Added CRC detection for dumps. Added some renderer override functionality for fast testing. (F2 to shuffle)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2665 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-04 13:47:36 +00:00
feal87 a964bc907f GSDumpGUI : Added the "clear log on start" and the "select the last line of the log whenever new data arrive".
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2664 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-04 12:12:55 +00:00
cottonvibes fe915cfa67 mVU: work-in-progress cache and memory model rewrite.
currently not 100% stable, this is mainly a backup before i do more big changes...

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2663 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-04 06:18:31 +00:00
Jake.Stine 1461281f5f SPU2-X: Improved fix for wave recoding crashes; using thread-safe mutex locks. :)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2662 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-03 19:06:22 +00:00
cottonvibes a93b0fe4a4 Vif - Partially removed some hack. Comment if this breaks anything.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2661 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-03 14:27:11 +00:00
ramapcsx2 ad62866bcb GSdx:
- The earlier FFX fix killed fmv in Xenosaga 2. Hacked up a bit more now! :p
- Few more CRC (Note: I will look at GoW 2 once I have time and dumps, not before!)

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2660 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-02 17:30:03 +00:00
feal87 db616b0690 SPU2-X : The safe_delete on the WaveDump wasn't "safe" enough and was causing the error on end of wav dump.
Test it and tell me if it works fine now. (F12 is the key for start-end)

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2659 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-02 15:52:03 +00:00
feal87 d541f28425 Gsdx : Added scaler x5 and x6 (the maximum available, no other values are possible as the limit for texture/render target is 4096x4096 (probably some new card/API support more, but we need compatibility) and with x6 we are at 3840x3072). It is VERY gpu intensive, use it with extreme care, it may give heavy slowdown. :P
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2658 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-02 13:48:20 +00:00
feal87 ea385c4da8 Fixed the capture video functionality of GSDX. Let's hope I'll make bositman happy with this. :D
It was a series of very old bug. 
1) After the passage to the WX system the CoInitialize was not anymore called on the GS thread causing the Filter enumeration on DirectShow to fail.
2) After the "MFC Free" commit of Gabest, if you selected the Uncompressed functionality a nullpointer exception trigger (as there is no filter for that)
3) Strangely there was no code path to connect the source with the mux when Uncompressed was selected (without an encoder in the middle). I added it.
Test it and report problem. I already know there is a problem with the closing of the sound recording, but that's a PCSX2 problem, not a GSDX one.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2657 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-02 12:55:26 +00:00
feal87 e0b9f75a3c Now GSDX does not close the hosting application on the end of the GS Dump reproduction. (A dll shouldn't try to close the hosting application. That's bad behaviour.)
Fixed a little problem with the last commit. (I was pointing out of the string instead of the end. :P)

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2656 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-02 10:29:30 +00:00
feal87 0bac0a6217 Fixed again the GS dump creation in the new GUI by adding 2 new accelerator to the global table.
Now the snapshots and gs dumps are correctly created in the snaps folder (or the one choose by the user). (GSDX was missing a check to understand if the directory passed by pcsx2 was or not slashed at the end. :P)

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2655 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-02 10:17:50 +00:00
cottonvibes 0c8c01494f Minor vif/vu changes...
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2654 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-02 04:36:09 +00:00
feal87 f8e9b0a5bd Added some SVN ignore to clear up the commit page. :P
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2653 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-01 21:38:08 +00:00
feal87 afde55c1c8 First commit as developer in the team. :P
Committed the first revision of the new GSDX Dump Viewer. At the moment it contains the PThreads dll inside the build process and output to the bin directory of the tools directory till I know for sure I can output the exe directly into pcsx2 bin directory. :P
Report here or on the issue tracker any bug you find. (in this application) :P

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2652 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-01 16:47:58 +00:00
Jake.Stine b86a9477e4 GSdx: fix a crash on Intel GM 910/915 and other PS 2.0-only cards, by removing a reference to VPOS (which is PS3.0 only).
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2651 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-03-01 15:26:25 +00:00
cottonvibes 05ce8afd6a Comment by ramapcsx2:
In ExecuteBlockJIT(), set the running time lower for a big speedup in Ratchet and Clank :p


git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2650 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-02-27 01:21:29 +00:00
ramapcsx2 5da01c90b9 GSdx:
- Some corrections to dx9 hw mode, by Feal87.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2649 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-02-26 19:24:01 +00:00