Commit Graph

3494 Commits

Author SHA1 Message Date
Jake.Stine 28ba6d7520 More GCC fixes for SafeArray (changes to the BoundsCheck macro fix some meaningless warnings, not really important otherwise).
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3607 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-05 12:48:49 +00:00
Jake.Stine 6531640844 Yay! TlsVariable fixed properly. >_<
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3606 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-05 12:21:19 +00:00
arcum42 24aac1f1f2 After 4 attempts, I suppose it's my turn...
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3605 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-05 09:54:59 +00:00
Jake.Stine cfc3944a90 GCC/TlsVariable compile fix attempt #4: randomly throwing darts at members of the C++ standards committee.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3604 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-05 05:03:52 +00:00
Jake.Stine 892eb3f2c6 Dreaded IPU bug FOUND and SQISHED! -- this is the bug that was corrupting memory for all these years. ;)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3603 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-05 03:25:25 +00:00
Jake.Stine d88cf47adb Linux: Likely fix for gcc errors compiling SafeArray
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3602 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-05 01:39:31 +00:00
Jake.Stine d231c537b9 Linux fix for TlsVariable.inl (I hope). SafeArray fix will have to come later.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3601 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-04 19:36:15 +00:00
Jake.Stine c439d1bef2 Minor refactoring; doing this just to help minimize the changelog spam of the next commit (not that it'll help much)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3600 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-04 19:10:41 +00:00
Jake.Stine 70e8c3cf41 SPU2-X: Communication error. We didn't want to remove the option; just make it a little more clear that *most* of the time it sucks and shouldn't be enabled.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3599 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-04 17:18:40 +00:00
sudonim1 f022819747 IPU: Fixed bad IPU_CMD handling (using the same memory for read and write values).
Unlikely to help any games, just spotted this when rama was debugging one with an unrelated problem.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3598 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-04 16:56:25 +00:00
ramapcsx2 181836b5d4 SPU2-X:
- Remove the DSound output module hardware buffer option which caused more harm than good.

Also fixed that IOPx2 hack leftover.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3597 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-04 16:14:37 +00:00
Jake.Stine e5f87e068b Changed the FastFormatString functions into nifty little classes that use TLS for their buffer workspaces. Result: a fully concurrent printf with zero malloc/free overhead. Use the pxsFmt macro for them -- which is a fully working alternative to wxsFormat().
(pxsFmt has been applied to console/logging only for now.  Will apply it to more later, once the code is confirmed stable)

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3596 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-03 22:18:19 +00:00
ramapcsx2 c2e687ad27 Removed the IOPx2 cycle hack. It's been superseded by the Wait Cycle Detection hack anyway.
Replaced the empty space with a (imo :p) more useful "Fast CDVD access" hack. 
This one will enable users to cut loading times in most games but there
are some incompatibilities as well.
HDLoader compatibility lists will list incompatible games with a "needs MODE 1" (or similar).

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3595 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-03 18:12:22 +00:00
Jake.Stine 6ab55020bd Improved TlsVariable; going to be putting it to good use soon.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3594 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-03 04:36:48 +00:00
Jake.Stine 31e957c5b3 wxWidgets/MSW: Disable validators. We don't use 'em.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3593 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-03 04:26:14 +00:00
gregory.hainaut 9987f673b3 IPU (linux): mangle asm label. Need for inlining (if link time optimization works one day).
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3592 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-02 17:14:51 +00:00
gregory.hainaut e1b8da387c IPU (linux): fix pointer variable. Linux compilation is now fine.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3591 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-02 12:52:42 +00:00
gregory.hainaut 7b05db1351 IPU (linux):
* fix asm constraint. X86 have only 6 registers...
* move some pointer to ecx and edx like windows asm


git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3590 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-02 12:49:48 +00:00
gregory.hainaut 76cc1bcd37 cmake: Fix include path issue with gtk > 2.21.3 (ubuntu 10.10)
Note: last gtk version moves the gdk-pixbuf module into another place.
Technically cmake needs an update of the FINDGTK2 module. For the moment I add a small work-around.


git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3589 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-02 07:33:11 +00:00
Jake.Stine 9c0ce26e42 Minor linux compilation fix to yuv2rgb_sse2
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3588 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-01 23:39:30 +00:00
Jake.Stine 61a4b537c4 IPU:
* Savestate mega-fix!  Removed all the old direct pointer types from decoder_t, which should fix the oddball random savestate crashes when IPU is active.
 * Moved iq/niq into decoder_t.
 * Moved all macroblocks into decoder_t (mb8, mb16, rgb16, rgb32).
 * Turned decoder.stride into a constant, since IPU can only decode in strides of 16 bytes only.
 * Added sanity checking to the ipu0_fifo stuff (was formerly g_nIPU0Data, etc).
 * Added some SSE moves to the Idct (very minor optimization).  There's a completely SSE from-ground-up implementation provided by newer versions of libmpeg2 that we should probably look into later, rather than rolling our own.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3587 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-01 21:50:59 +00:00
arcum42 63a2d9c228 pcsx2: Fix macroblocking in Linux videos.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3586 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-01 09:17:36 +00:00
Jake.Stine 9d57fee7d4 Removed some unneeded code from our vu memory handlers (was an attempted optimization from long ago, but VU memory isn't accessed directly from the EE enough for it to matter).
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3585 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-31 22:42:24 +00:00
Jake.Stine fa14e157c6 IPU: Minor tweaks to casts and static vars while looking for potential GCC issues.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3584 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-31 14:29:59 +00:00
gregory.hainaut 844bfd297a SPU2null, PADNull, CDVDNull: remove useless gtk include
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3583 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-31 09:01:41 +00:00
arcum42 2e77e2f9c8 zzogl-pg: Reworked Linux configuration dialog.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3582 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-31 00:29:49 +00:00
arcum42 7d5dbc64fc zzogl-pg: More minor changes to the Liux config code.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3581 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-30 09:52:34 +00:00
arcum42 7b522ea680 zzogl-pg: I seem to have overlooked this somewhere along the way.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3580 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-30 09:26:23 +00:00
ramapcsx2 17465d1302 GSdx:
Move the dx11 check to GSInit, didn't like it only getting called on renderer changes in the middle of emulation.

PCSX2:
Report the savestate version as hex if loading an incompatible state. Looks better than -19793434481 :p

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3579 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-28 19:00:42 +00:00
ramapcsx2 275bd2f629 Savestate version increase.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3578 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-28 17:49:05 +00:00
gregory.hainaut c4eeb9de9a cmake: Upgrade cmake requierement to 2.8. (there is some incompatible change in foreach arguments...)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3577 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-28 14:51:02 +00:00
gregory.hainaut 5e3f568849 debian: minor change, nothing to see
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3576 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-27 06:09:24 +00:00
Jake.Stine 8984e80c24 Add an SPU2reset callback to SPU2 plugins, needed to put a stop to SPU2 sound generation when resetting the PS2 VM. If a plugin doesn't implement it directly, it automatically falls back on a manual soft reset using the SPU2's builtin software Core0/1 register writes.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3575 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-27 03:41:18 +00:00
ramapcsx2 0d029979ca New gamefix hack that alternates the GIF_STAT flag "OPH" on each register read.
This will be needed until we've figured out how this thing is supposed to work.

Enabling this hack should fix, among others, Growlanser games, Bleach and Wizardry.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3574 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-26 18:55:18 +00:00
Jake.Stine 4bb830827d IPU: Various minor header file, table, and inline function tweakings/cleanups. Note that I unified several tables into structs and applied __aligned16 to them. I'm not just being silly: this seems to have a noticeable positive effect on framerates (~3-4% here).
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3573 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-26 18:14:56 +00:00
ramapcsx2 7074d31651 Minor log change.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3572 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-26 17:03:40 +00:00
arcum42 9d0a191a00 pcsx2: Ok, take 3.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3571 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-26 11:40:30 +00:00
arcum42 545165b405 pcsx2: Since Windows didn't like that change, here's a quick workaround.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3570 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-26 11:09:34 +00:00
arcum42 ed9bf27015 pcsx2: Update the project files to no longer have coroutine. Fix a compiler warning. (zzogl-pg: Modify comments.)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3569 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-26 10:51:06 +00:00
msakhtar 5165350170 Added a threadless state managed IPU. The code is still in it's early stages and will now be worked on to optimize for speed. The first optimization is to increase the read size in Vlc.h from 32 bit to 64 bit.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3568 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-26 10:18:28 +00:00
gregory.hainaut 83604ec59d cmake: properly separate ldflags from cflags
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3567 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-25 14:20:03 +00:00
gregory.hainaut 4e90b10c76 cmake: Use same variable name for output. Allow easier copy-paste between files. Do not know why I did not do it earlier.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3566 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-25 13:54:26 +00:00
gregory.hainaut f965b0af46 Memcpy (linux): Mangle asm label name avoid symbol already defined when inline the function
Note: the function can be moved into a .h ;)

Note2: %= is replaced by a number so it is a bad idea to put it after a digit (reason why I put underscore before)



git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3563 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-25 09:38:26 +00:00
gregory.hainaut 4c4cf75432 Memcpy (linux): Use volatile constraint to avoid complete removal of the function when activating -fdce (dead code elimination).
Actually there is no impact for the moment because the optimization is not activate by default.


git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3562 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-24 21:22:32 +00:00
arcum42 fb034eda2a zzogl-pg: Copy ps2hw.dat into the plugin directory when building.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3561 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-24 11:08:43 +00:00
arcum42 abc73d506c zzogl-pg: A few minor changes to the last commit.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3560 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-24 08:08:42 +00:00
arcum42 b4e2bf4366 ZZOgl-pg: A bunch of work on the Windows dialog. Based off of an rc file given to me by SonicPCSX2, then hacked on a bunch by me.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3559 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-24 08:05:53 +00:00
arcum42 a496f3d81d ZZOgl-pg: Yet more new register work.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3558 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-24 04:51:39 +00:00
ramapcsx2 1aec04a0b5 GSdx:
Apply hackfix for Wild Arms 4. Thanks Lana and 89CamaroIROCZ :)
We're still missing the PAL and JAP CRCs though. Issue 185 collects them.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3557 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-24 00:04:54 +00:00
ramapcsx2 a96e866f79 Some changes to GS stalls. The code was there but commented out.
Fixes Quake III Revolution and the homebrew "Simple Media System".
It's probably all wrong still but hey, better than nothing :p

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3556 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-07-23 17:30:18 +00:00