Commit Graph

3175 Commits

Author SHA1 Message Date
gregory.hainaut@gmail.com 5d75ab97cb GregMiscellaneous: zzogl-pg:
* replace magic number with a symbolic name
* Remove 16 bits texture survivors.


git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3781 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-16 18:07:23 +00:00
arcum42 6ff8e61ef7 GregMiscellaneous: zzogl-pg: 'Transfer error, width exceeded.' spams a little too often for me. I'm making it Debug build only.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3780 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-16 12:56:19 +00:00
gregory.hainaut@gmail.com 14174a8c9a GregMiscellaneous: zzogl-pg:
* #if 0 some codes that are not called anymore.


git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3779 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-16 11:57:25 +00:00
gregory.hainaut@gmail.com 337e573c35 GregMiscellaneous: zzogl-pg:
* Remove support of 16bits pixel. Very slow and same quality that 8 bits.
* Fix a compilation error on debug...


git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3778 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-16 11:18:56 +00:00
arcum42 bee08966dd GregMiscellaneous: zzogl-pg: #if 0 this code out, so I don't forget that it's currently not called again.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3776 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-16 05:16:30 +00:00
arcum42 dc597d763b GregMiscellaneous: zzogl-pg: Expand out the swizzle defines in x86.cpp.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3775 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-16 00:12:53 +00:00
gregory.hainaut@gmail.com 16a86bef44 GregMiscellaneous: zzogl-pg: Mega clean of zerogsmath.h (1000 lines to 80...) which is good because the file does not have a clear copyright status.
It remains mostly trivial things and basic vector operations.


git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3774 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-15 21:57:24 +00:00
gregory.hainaut@gmail.com a51455656a GregMiscellaneous: zzogl-pg:
* Properly fix the 'missing external linkage' thanks to Gigaherz.


git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3773 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-15 21:26:59 +00:00
gregory.hainaut@gmail.com bed38e12a0 GregMiscellaneous: zzogl-pg:
* Remplace RESOLVE_32_BIT with a nice template (only a 8bytes format for the moment, the others part is not used anyway)
* copy the function RGBA32to16 due to 'missing external linkage' ???
* Remove trailling space


git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3772 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-15 21:04:45 +00:00
gregory.hainaut@gmail.com 30c9763c34 GregMiscellaneous: zzogp-pg:
* Replace some macro by basic functions. Use a switch to emulate the ##.
* merge similar functions


git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3770 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-15 17:09:03 +00:00
gregory.hainaut@gmail.com 888a309e1a GregMiscellaneous: sync and refresh the branch (3728:3768)
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3769 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-15 16:54:19 +00:00
arcum42 59bccbccb4 GregMiscellaneous: zzogl: Clean up the configuration dialog code a bit. Make the experimental skipdraw option only exposed on devel builds.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3747 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-11 04:26:20 +00:00
gregory.hainaut@gmail.com 2a9e644b18 GregMiscellaneous: zzogl: Restore the good size when quit fullscreen.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3743 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-08 19:04:11 +00:00
arcum42 ff33ea5348 GregMiscellaneous: zzogl: Remove screen size settings from the configuration dialog. (The window can be resized normally, and the startup size can be changed in the ini file still...)
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3742 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-08 12:03:49 +00:00
gregory.hainaut@gmail.com b6dcd319fd GregMiscellaneous: zzogl:
* restore widescreen option. Force a 4/3 mode when disabled.
* Also force 4/3 in window mode. In widescreen and fullscreen uses all the screen.
* Clean


git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3740 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-08 11:16:27 +00:00
gregory.hainaut@gmail.com 873cb9656f GregMiscellaneous: zzogl:
* add more locking to X11. Never too safe.
* Free the visual (memory leak)
* Only search event of the current window
* force 4:3 in fullscreen mode (will need a toggle box to enable/disable it)
* do not grab cursor on debug (this one will need more test)


git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3739 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-06 22:21:07 +00:00
gregory.hainaut@gmail.com ddb33652ab GregMiscellaneous: Minor clean
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3737 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-06 12:23:45 +00:00
arcum42 3dcb931a49 Remove fullscreen from the configuration dialog, and make esc go back to windowed mode.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3736 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-06 12:09:49 +00:00
arcum42 a468a27523 GregMiscellaneous: zzogl: Got rid x & y in GLWin. Make sure nBackBuffer gets set to the right width and height.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3735 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-06 09:46:33 +00:00
gregory.hainaut@gmail.com dc49a995d6 GregMiscellaneous: zzogl: Fix fullscreen setting & remove useless library
Major issue left: widescreen.


git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3734 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-05 22:08:55 +00:00
gregory.hainaut@gmail.com 65b985698e GregMiscellaneous: zzogl: add some locking. Work far better.
The trick was to call XInitThreads in the beginning.


git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3732 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-05 16:30:47 +00:00
gregory.hainaut@gmail.com 0845dffb5b GregMiscellaneous: zzogl: rework fullscreen (to be friend with the WM). Note: it is not crash free for the moment.
* use alt-enter to toggle the fullscreen mode. (toggle quickly multiple time to crash it...) I suspect need of XLockDisplay & XUnlockDisplay
* escape: will quit for both mode

Not yet done: 
* good support of fullscreen conf flag. Which is wrong for the moment. (actually may be a source of crash)
* Better support of widescreen screen


git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3731 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-05 15:47:09 +00:00
gregory.hainaut@gmail.com 5e8f776adb GregMiscellaneous: sync from trunk (3679:3727)
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3729 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-05 15:33:08 +00:00
Jake.Stine 02b390b0e1 Changed SIF and IPU macros for hw register mappings into references. (-> into .)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3727 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-05 02:51:36 +00:00
Jake.Stine 935159ed8e IPU: Split IPU DMA stuff out into its own file, and add missing region info (got left out AGAIN >_<) and a potentially important bit of IPU information to the savestate.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3726 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-05 00:36:03 +00:00
Jake.Stine 46b89abb72 * Move the GIF register handlers from dmac to hwRead/hwWrite (like the VIF registers they aren't actually DMA-related).
* Minor cleanups to trace logging and FastFormat string stuff.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3724 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-04 14:11:50 +00:00
cottonvibes 147e4b8409 microVU:
- Fixed xmm reg corruption when calling console print functions from recompiler (win-vista+ clobber some xmm regs)
- Tweaked and commented regalloc class

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3723 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-03 05:02:03 +00:00
gregory.hainaut@gmail.com c2681d7baa debian: forgot 1 file
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3722 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-02 20:14:02 +00:00
gregory.hainaut@gmail.com 43b1fb0ca4 debian:
* remove personal rule target: has not worked since last change...
* Some fix to control. Update package std version


git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3721 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-02 19:52:48 +00:00
Jake.Stine 12dbebcfd9 microVU: clear contents of microBlock on creation to avoid false cache misses.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3720 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-02 12:33:45 +00:00
gregory.hainaut@gmail.com df7708a37b pcsx2 Hw read/write: Instantiate _hwread32 template because it is used in HwWrite.cpp. It avoids link error when compiler inline template.
Note: inline the _hwread &  _hwwrite functions could be a good idea.


git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3719 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-02 08:28:24 +00:00
Jake.Stine 96855850f3 microVU: bugfix for prev revision (.r and .flag member mixup); and removed an unneeded check against exactMatch.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3718 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-02 02:38:54 +00:00
Jake.Stine 76d639ff39 microVU:
* Remove need for packed structs through use of unions.
 * Streamlined the microBlockManager's linked list (less heap allocs and simpler interations).
 * Use two 32 bit compares for fast block compares, instead of 6-7 individual u8 compares.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3717 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-01 16:15:18 +00:00
arcum42 1ded55f4cf Hack around Linux compilation issues for the moment.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3716 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-01 10:48:43 +00:00
arcum42 a4155a2240 Minor cleanup from the last commit.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3715 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-01 10:34:02 +00:00
arcum42 e686d47cd7 ZZOgl-pg: Rework the GLX11Win.cpp code a bunch. Fix a bug leading to crashes.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3714 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-01 10:28:37 +00:00
cottonvibes 009d6ba5e6 microVU:
- Code refactoring (mostly changing macros to functions/constants...)
- Made it so the disable-regAlloc option flushes every 32bit instruction, instead of every 64bit instruction (upper+lower instruction pair)

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3713 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-01 04:57:10 +00:00
cottonvibes 807bd9659c pcsx2 mmi: apparently msvc does an unsigned compare jump when you have:
int src; if (src < 0xffff8000) {}
so solution is either use (int)0xffff8000 or -0x8000...
it also doesn't seem to print out warnings about this either D:

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3712 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-01 02:03:10 +00:00
Jake.Stine 27a3f11278 Remove some code from DMAC.h and into LegacyDmac.cpp (these changes are mostly related to the new dmac prep on the other branch, but I'm doing them here to help keep major refactoring differences and merge conflicts to a minimum between the two branches).
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3710 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-31 21:22:39 +00:00
gregory.hainaut@gmail.com f6a541928a debian: Use english word & grammar...
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3709 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-31 16:59:57 +00:00
Jake.Stine 0bb377511b Uninitialized variable fix in ScopedLock as found by Gregory, and a few more minor -> to . conversions.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3708 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-31 16:40:25 +00:00
Jake.Stine 1edb900405 Changed a few more -> to . for consistency.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3707 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-31 13:06:53 +00:00
arcum42 fe347c2c04 Fix Linux compilation, fix a potential crash, and add a build target I find useful occassionally.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3706 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-31 09:31:47 +00:00
Jake.Stine bcac59ee4f Linux/GCC fixes. :)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3705 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-31 05:47:54 +00:00
Jake.Stine 003da7d287 MAJOR: All new hwRead and hwWrite handlers (expect regressions). Details:
* Writes via 16 and 8 bit ops now use 32-bit read/modify/write operations by default; which should enable nearly complete support for all such operations (instead of the formerly spotty coverage before).
 * Eliminated almost all former 8/16-bit specific register operations.  All code shares the same 32 bit handlers now.
 * Completely revamped the developer trace logs for hardware registers!  *ALL* registers are logged now, complete with address, name, and value being read/written (and nicely formatted!).
 * Handlers are now fully page-based using templated functions (minor speedup)


git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3704 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-31 05:22:26 +00:00
Jake.Stine 1cac8d3948 * Added subdivided content to the u128 type (changed it from a struct to a union, added _u32[4], _u16[8], etc).
* Added ToString methods to the u128 type.
* Bugfixes for the FastFormat string utilities, namely when writing UTF8 content via the UTF16 formatter.
* MSVC: Removed obsolete disabling of unsigned/signed mismatch warning (4018)

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3703 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-31 05:14:00 +00:00
gregory.hainaut@gmail.com 393333456c PCSX2 VU: Linux compilation fix and force 16 bytes alignement for VURegs
Spu2x: Use a standard destructor (POD safe stuff). Fix various segmentation faults (Issue 846)


git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3702 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-30 20:39:04 +00:00
gregory.hainaut@gmail.com a23c5e75b7 debian: Refresh and clean. Thanks Micove.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3701 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-30 20:32:59 +00:00
sudonim1 b5472c80ec sVU: same address translation fix as in r3697
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3700 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-30 18:26:36 +00:00
gregory.hainaut@gmail.com 9f2720540f GregMiscellaneous: Add a FRAME_RECORDING_ON define to record skipped frame based on Zeydlitz version.
Note: it dumps some .tga picture in current folder.


git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3699 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-08-29 12:44:55 +00:00