gregory.hainaut@gmail.com
8435ad3f01
GregMiscellaneous: zzogl-pg:
...
* Finish GAS removal. I use SSE2 instead of mmx because it was easier to write (faster anyway).
Code seems equivalent between GAS & intrinsics but control flow will need a good testing (and some explanation)
Note: I also add a basic C version for reference/debug (not tested yet)
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3837 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-25 14:01:36 +00:00
arcum42
8036106b07
GregMiscellaneous: zzogl-pg: Move a few functions into CMemoryTargetMngr.
...
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3836 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-25 13:33:58 +00:00
arcum42
0f38318fab
GregMiscellaneous: zzogl-pg: Fix for a bug in the new intrinsic code.
...
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3835 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-25 12:23:33 +00:00
arcum42
cd4692a327
GregMiscellaneous: zzogl-pg: Split out some code into a separate function.
...
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3834 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-25 08:57:44 +00:00
Jake.Stine
e24ceba0e1
IPU:
...
* Fix a potentially obscure bug in ipuCSC (color space conversion) which would have caused PCSX2 to hang on certain types of rare partial transfers.
* Remove some more dead code and structure data from the mpeg library.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3833 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-25 05:36:30 +00:00
arcum42
7578b6c51e
GregMiscellaneous: zzogl-pg: Let's use _mm_setzero_si128 to zero the register.
...
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3832 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-25 01:24:29 +00:00
Jake.Stine
9ebace0a8d
IPU: Cleanups and simplifications, and removed a whole lot of code that was force-setting ipu0dma's STR to 0 and/or flushing the FIFO for no reason. Tested tons of games, couldn't find any regressions.
...
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3831 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-24 23:48:33 +00:00
gregory.hainaut@gmail.com
9895bb6b45
GregMiscellaneous: zzogl-pg:
...
* ASM port round 3 + add some comment to understand the algorithm.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3829 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-24 15:38:47 +00:00
Jake.Stine
36d1503581
Converted IOP to use a static/global hardware register allocation. (same as I did for the EE a few weeks ago).
...
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3826 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-23 19:44:55 +00:00
gregory.hainaut@gmail.com
3a1ef55cb1
GregMiscellaneous: zzogl-pg:
...
* Port more ASM to intrinsics. Note use non-cacheable store instead to reduce cache pollution
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3825 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-23 18:00:38 +00:00
Jake.Stine
cfca4ccdd0
IPU Fix for Haunting Grounds (in-game cinemas skipped after 1 second). Bug was caused by the internal buffer of the IPU (2 QWC) not being refilled properly in rare circumstances.
...
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3824 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-23 15:24:45 +00:00
gregory.hainaut@gmail.com
79c4b1825d
GregMiscellaneous: zzogl-pg:
...
* Fix wrong integer size.
* Enable sse2 version on windows too.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3822 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-23 11:24:02 +00:00
gregory.hainaut@gmail.com
6e1b11c2b5
GregMiscellaneous: zzogl-pg:
...
* port ASM GAS to intrinsic.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3820 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-22 19:48:50 +00:00
gregory.hainaut@gmail.com
709a79f513
GregMiscellaneous: zzogl-pg:
...
* init completely the mask array...
* fix the offset (count is byte not double word)
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3819 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-22 17:30:01 +00:00
arcum42
f850b72e36
GregMiscellaneous: zzogl-pg: Try out using modifications of some of GSdx's code for ZZoglMath.h.
...
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3818 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-22 12:39:39 +00:00
gregory.hainaut@gmail.com
5e97756e83
GregMiscellaneous: zzogl-pg:
...
* GAS seem only support standard C type
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3817 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-22 11:52:03 +00:00
gregory.hainaut@gmail.com
5e4afde9c1
GregMiscellaneous: zzogl-pg:
...
* remove convfn parameter template. Use instead a boolean (easier & fix windows)
* Protect asm statement with __LINUX__ for the moment
* apply the fbm mask in SSE2 also for 32bits texture. Reduce stack activity.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3816 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-21 19:10:19 +00:00
gregory.hainaut@gmail.com
b6a224c4f9
GregMiscellaneous: zzogl-pg:
...
* fix shift direction in sse2.
* Reduce memory transfter to load pixel.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3815 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-21 11:29:03 +00:00
gregory.hainaut@gmail.com
eb10a257cb
GregMiscellaneous: zzogl-pg:
...
* Rework sse2 with somethings easier ans smaler ;)
* do fbm mask with sse2
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3814 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-20 16:16:31 +00:00
arcum42
ac04a4ec3e
GregMiscellaneous: zzogl-pg: Rewrote ZZoglMath.h.
...
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3813 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-20 13:03:40 +00:00
Jake.Stine
5fd2cf97d3
Made some minor tweaks to SIF to test some theories and fix some broken-looking code -- please report any regressions. Also commented some of SIF and IPU stuff. :)
...
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3812 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-20 12:47:17 +00:00
gregory.hainaut@gmail.com
189d92b34d
GregMiscellaneous: zzogl-pg:
...
* Use sse2 instruction to convert pixel from 32bits to 16bits.
Note: Seem slower than basic C. I need to opmitize some memory access...
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3811 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-20 12:20:04 +00:00
arcum42
cfb4ba8b2b
GregMiscellaneous: zzogl-pg: Apply Zeydlitz's changes from r237 of zzogl. Improves code readability, and gives a slight speedup.
...
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3810 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-20 10:09:46 +00:00
arcum42
1fe66e55e7
GregMiscellaneous: zzogl-pg: Switch to _aligned_malloc in GetMemoryTarget, take 2. (If at first you don't succeed...)
...
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3809 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-20 09:00:22 +00:00
gregory.hainaut@gmail.com
baa78266f2
GregMiscellaneous: zzogl-pg:
...
* replace previous macro with a template. (could be improve with some template recursion, but no important for the moment)
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3808 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-19 18:57:13 +00:00
gregory.hainaut@gmail.com
129ffacf0a
GregMiscellaneous: zzogl-pg:
...
* Lost a -1 somewhere...
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3807 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-19 10:29:09 +00:00
gregory.hainaut@gmail.com
2156384bd5
GregMiscellaneous: zzogl-pg:
...
* port resolve32 to 16bits texture
* add an assert to help debug
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3806 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-19 09:34:15 +00:00
arcum42
0a832acabb
GregMiscellaneous: Sync against trunk. (3768:3804)
...
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3805 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-19 08:01:48 +00:00
gregory.hainaut@gmail.com
28819c2098
GregMiscellaneous: zzogl-pg: Test and benchmark the code ;)
...
* speed resolve 32bits functions
Note0: I restore a positive counting in the inner loop (was simpler for a first try)
Note1: I need to update the template to support 16bits textures.
Note2: If someone can nicely template the update_pixel macro feel free to do it ;)
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3804 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-19 00:00:26 +00:00
arcum42
29db810a06
GregMiscellaneous: zzogl-pg: Revert r3800.
...
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3803 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-18 23:36:24 +00:00
gregory.hainaut@gmail.com
5799164f37
GregMiscellaneous: zzogl-pg:
...
* Fix my previous stupid limit...
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3802 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-18 23:02:46 +00:00
arcum42
7056c862e3
GregMiscellaneous: zzogl-pg (Linux): Bilinear has 3 states, and therefore should probably not be represented by a checkbox in the configuration dialog box.
...
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3801 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-18 21:45:39 +00:00
arcum42
4d5f4ad81b
GregMiscellaneous: zzogl-pg: Use _aligned_malloc in GetMemoryTarget.
...
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3800 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-18 19:27:11 +00:00
gregory.hainaut@gmail.com
7afdf9e7c7
GregMiscellaneous: zzogl-pg:
...
* Some boost tuning: do big loop in reverse order.
* Add a function to get ns timing. Could be useful for benchmark.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3799 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-18 16:53:32 +00:00
arcum42
57f1e7badb
GregMiscellaneous: zzogl-pg: Remove path3 hack.
...
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3798 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-18 12:20:01 +00:00
arcum42
39d015fbc3
GregMiscellaneous: zzogl-pg: Tweak the hack list controlled by F9 not to have unimplemented hacks, as well.
...
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3797 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-18 10:42:04 +00:00
arcum42
b9110cb399
GregMiscellaneous: zzogl-pg(Linux): Revise hack config dialog not to include options that don't do anything. Clean up the descriptions a bit. Add comments indicating what hacks aren't in the dialog, and whether they are implemented or not.
...
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3796 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-18 10:20:10 +00:00
arcum42
d06838c4a5
Compilation fix.
...
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3795 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-18 05:29:05 +00:00
arcum42
8c552f4f2e
zzogl-pg: Add some includes in ZZoglShaders for Windows.
...
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3794 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-17 20:41:17 +00:00
gregory.hainaut@gmail.com
ce38e0a2b3
GregMiscellaneous: zzogl-pg: try to fix automatic hack that dissapears
...
* Force the setting of the auto hack after GS was closed
* Always enable path3 hack
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3793 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-17 19:06:52 +00:00
gregory.hainaut@gmail.com
aac5ab18ca
GregMiscellaneous: zzogl-pg:
...
* Update f_0(a) function to call f(a,0).
* Add a dbg message on Resolve_32_Bit to track some slowness.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3792 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-17 16:20:47 +00:00
Jake.Stine
47cf781130
IPU : Removed the MPEG internal 32 bit buffer and all associated logic for "rewinding" bits out of the buffer and back into the IPU's internal 2QWC buffer. Simplifies IPU's bitstreaming code quite a bit, but isn't really much faster (yet).
...
(savestate version upgraded)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3788 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-17 13:10:54 +00:00
arcum42
da49cce435
zzogl-pg: More sync changes. (See r3768 & r3786)
...
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3787 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-17 08:43:43 +00:00
arcum42
cc5414f49e
zzogl-pg: Renamed Vector to float4 & renamed zerogsmath.h to ZZoglMath.h. (Continuing to work on bringing zzogl-pg in sync with recent revisions of zzogl.)
...
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3786 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-17 07:31:55 +00:00
arcum42
6656819a33
zzogl-pg: Mess around with the Windows code a bit more.
...
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3785 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-17 05:26:50 +00:00
arcum42
0c151275eb
zzogl-pg: Majorly revise the Windows config dialog box. (May still need more work.)
...
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3784 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-17 04:39:18 +00:00
arcum42
c728bf2ddf
zzogl-pg: Bring a few of the changes in the GregMiscellaneous branch into the trunk.
...
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3783 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-17 00:40:07 +00:00
arcum42
38aecf4ae0
Minor compilation fix.
...
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3782 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-09-17 00:12:15 +00:00
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