Commit graph

685 commits

Author SHA1 Message Date
salvy
4b1a0b3354 [-] Removed RR64 hack in OSHLE (doesn't seem to be needed anymore)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@865 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-13 21:34:37 +00:00
salvy
bf7f70dd41 [!] Fixed build not compiling
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@864 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-13 21:13:44 +00:00
salvy
def84ecf72 [!] Unrolled goto in aligned path in memcpy_vfpu_swizzle
[!] Some clean ups

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@863 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-13 14:47:18 +00:00
salvy
5fb82a2cc6 [!] Fixed async audio broken (VFPU and MediaEngine don't mix!)
[!] Made fast memcpy truly platform independent
[~] Some more fixes and improvements to memcpy_vfpu_swizzle from last commit

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@862 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-13 02:23:32 +00:00
salvy
5dd320480d [~] Opps
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@858 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-09 03:27:18 +00:00
salvy
dbcaadabb1 [~] Made InitMempackContent table non static
[~] Some clean ups in PIF

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@857 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-09 03:25:17 +00:00
Corn
3b94307914 [!] Fixed normal and swizzled versions of VFPU memcpy
[+] Enabled VFPU memcpy in PSPrenderer and DMA 

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@856 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 18:37:03 +00:00
strmnnrmn
45580e16c2 Delete some commented out code. Merge a couple of changes from OSX port
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@854 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 15:40:09 +00:00
strmnnrmn
0e698c385d Fix all the remaining mixed newlines
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@852 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 14:21:04 +00:00
strmnnrmn
ba29dea5cc Fix line endings - mostly LF with a dash of CRLF
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@851 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 14:20:44 +00:00
strmnnrmn
7fba1278a6 Fix more mixed newlines
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@850 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 14:20:28 +00:00
strmnnrmn
8ef65c6894 Fix mixed Windows/Unix line endings in a bunch of files. Add missing newlines before EOLs
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@849 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 14:20:20 +00:00
strmnnrmn
22f9d4f0d7 Fix some CRLF/LF inconsistencies
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@845 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 14:19:43 +00:00
strmnnrmn
3a37f8ac57 Make FastMemcpy a bit more platform independenty and move to the main Utility dir. I removed the timing test and wrapped it up in a function (what it loses from the function call, it gains from being able to inline GetCurrent)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@844 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 14:19:36 +00:00
salvy
35e55f149e [-] Removed cheat frequency option (cheats no longer cause much overhead anyways)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@842 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-05 21:25:35 +00:00
salvy
ef46b718db [=>] Merge from GIT repo
[!] Use ROM_GetCountryNameFromID when inserting country ID for cheats
[~] Small typo when inserting country id in cheats
[!] Simplified abit when applying cheats
[!] Optimize cheatcode apply (cheats will be applied directly to RDRAM) Will remove cheat frequency option eventually, since there's isn't much overhead from cheats now
[+] When disabling cheats, sure we can save the most recent value later on
[!] More lean ups/Optimisations to cheat feature

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@841 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-05 20:58:47 +00:00
salvy
4536c5c170 By StrmnNrmn : …
Multi-platform:

* Reintroduced a bunch of DAEDALUS_PSP ifdefs.
* Reintroduced a load of Win32/OSX code.
* R4300: To reduce some of the DAEDALUS_PSP ifdefs in R4300.cpp, added some
  defines for R4300_IsNan etc.
* R4300: f32_to_s32_trunc etc. I think we should keep these as they provide some
  abstraction between PSP/OSX/W32 etc and remove tons of ifdefs elsewhere.
  I think I updated all of these correctly. Please check!
* Math/Math.h: we should provide a consistent interface here. e.g. rather than
  exposing pspFpuSqrt(), we should have Sqrt() that's #defined (or a wrapper
  function) to the most appropriate implementation for the platform.

Small improvements:

* Added a few DBGConsole_Msg lines to track down boot errors.
* CPU: gLastPC/gLastAddress were defined as static in CPU.h - that means they'd
  be introduced into all compilation units that pulled in that header. Redefined
  as extern.
* NativeTexture.h - GetScaleX/Y can just return an f32 (no need for reference)
* ROMFileCache: Just declare AddressToChunkMapIndex/GetChunkStartAddress as
  inline functions in the .cpp file.

Tidying:

* Path: Moved IO::Path::Tidy to String.h (it's not really a Path function).
* Lots of whitespace fixes (git doesn't like whitespace at the end of lines)
* Started nuking lots of 'tractor lines' (//*********************)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@840 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-05 20:07:03 +00:00
strmnnrmn
e1e167d8db Fix compressed rom support (still disabled in psp build).
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@839 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-04 09:32:21 +00:00
strmnnrmn
03ab67a298 Move IO::Path::Tidy to String.h - it's not really anything to do with paths
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@837 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-03 22:51:11 +00:00
strmnnrmn
5dab177d4c Fix inconsistent line endings in Cheats.cpp/h
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@834 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-03 22:50:56 +00:00
strmnnrmn
0affcb7359 #endif comments were inaccurate
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@833 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-03 22:50:52 +00:00
strmnnrmn
07c715c978 SWAP_PIF isn't used
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@832 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-03 22:50:48 +00:00
strmnnrmn
7e94b19491 Merge some tidying to Interrupt.h/cpp
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@831 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-03 22:50:44 +00:00
strmnnrmn
7eac7e42f2 Don't need to write to MEM_UNUSED
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@830 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-02 18:52:14 +00:00
strmnnrmn
ddebde05aa Remove some dead code, other minor edits to Memory code
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@829 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-02 18:52:09 +00:00
strmnnrmn
20bb7396fa Unecessary return statement
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@828 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-02 16:01:07 +00:00
strmnnrmn
d7d116642a Fix more trailing whitespace (files with CRLF line endings?)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@825 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-28 23:23:11 +00:00
strmnnrmn
767e4efd9c Fix line endings
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@822 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-28 22:11:57 +00:00
Corn
1e126adaba [!] Some fixes to OSHLE gu patches
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@821 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-28 21:38:15 +00:00
salvy
41bac1f809 [!] Reorder MatrixFromN64FixedPoint to trick compiler to optimize even more (Corn)
[+] Add back DAEDALUS_ENDIAN_MODE (very important for future ports)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@819 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-26 10:57:46 +00:00
salvy
d947aa6315 [!] Simplified and optimized MatrixFromN64FixedPoint
[!] [OSHLE] Changed to 32bit when storing to a0,1,2,4 regs

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@817 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-25 22:58:37 +00:00
Corn
5a9178dd8a [!] Fixed bug that made textures fail in Kirby (fence disappear and other issues)
[!] Added hack for a forced blend in Sin and Punishment
[!] Additional clean up in Blend explorer 

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@816 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-25 14:49:46 +00:00
Corn
8c078db793 [!] Reworked how texture info gets saved in RDPStateManager
[!] Fixed additional texture issues in SSV and Fzero

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@792 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-10-30 13:10:52 +00:00
Corn
396fcfe47a [!] Fixes some broken SSV textures
Note: probably need to rework how RDPStateManager loads textures for a proper fix.

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@790 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-10-28 21:39:20 +00:00
Corn
fdc60f39bd [!] Fixed most of the blocky textures in Space station silicon valley
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@789 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-10-27 17:55:36 +00:00
Corn
c662b0d587 [!] Improved changed texture detection for Worms Armageddon
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@786 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-10-22 05:20:08 +00:00
salvy
0355856f6c [!] Use new hash for texture update (faster)
[!] Ignore MakeTextureWhite in auto combiner (causes unnecessary texture updates in Zelda, anyways we ignore it in blendmodes, and have yet to see an issue)
[!] Wait abit longer before trashing textures (texture cache failures in Aerogauge is now 0, VRAM usage seems fine in my PHAT PSP)
[~] Some clean ups, disable osSetIntMask (for now, need to implement it correctly)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@776 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-10-06 08:58:20 +00:00
salvy
005d71196d [!] Enabled osSetIntMask (ATM we just NOP it.. for some reasons games don't seem to bother, perhaps not important for emulation?) (Let me know if any game no longer works with OHSLE so I can try to implement it)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@774 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-09-23 23:51:07 +00:00
salvy
6342020194 [!] Tweak gHotTraceThreshold so it can identify more hot traces for the dynarec (speed up)
[!] Optimized guNormalize_Mario
[!] Implemented osSpTaskYielded correctly (OSHLE works for Yoshi again) 
[!] For memory write funcs only use offset for look up

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@773 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-09-23 23:22:43 +00:00
Corn
a4552e1ed6 [!] fixed missing "break;" in switch/case for CIC_6105 boot option (tnx Strmn)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@766 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-09-08 18:12:39 +00:00
salvy
847807dac9 [!] [OSHLE] ALL SP patches will call call DMA and Status directly, instead of going through the memory handler
[!] Clean ups and commenting in Memory.cpp


git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@765 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-09-07 02:53:16 +00:00
salvy
003ed1baca [!] Optimized osSpTaskStartGo (HLE tasks will be loaded directly now when using OSHLE)
[!] Fixed a bug in osSpTaskLoad when setting the status reg, also optimized it to DMA directly
[+] Enabled osSpTaskYield/osSpTaskYielded (I noticed it was used in OOT)
[!] increased MEM_UNUSED alloc to store word size data

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@762 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-09-04 02:07:59 +00:00
salvy
7228cba536 [!] Optimized OS_HLE_osCreateMesgQueue (we now cache the base address)
[!] Free up 8k bytes from MEM_UNUSED region (dunno why we were using this excess of memory..)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@761 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-09-03 00:36:29 +00:00
salvy
b7f2771819 [!] Implemented osAiSetNextBuffer correctly (optimized it too)
[!] Allocate 8 bytes of memory to handle SP_PC_REG and SP_IBITS_REG (so we can use the pointer table opt and fix some bugs in OSHLE when setting pc)
[~] Removed nasty hack from osAiGetLength (no longer required since osAiSetNextBuffer is implemented correctly)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@760 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-09-02 03:00:53 +00:00
salvy
0f74f9f891 [!] Optimized VI read/write
[!] Fixed a bug in PI write

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@759 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-09-01 02:10:49 +00:00
salvy
4bd5078b16 [!] Increase both MAX_VERTICES and MAX_CLIPPED_VERTS (Fixes Flying Dragon crashing)
[!] Fixed debug build
[~] Silenced some annoying asserts

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@756 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-08-22 19:37:56 +00:00
salvy
79d10a560f [!] Moved check if palette address is NULL for palette textures (Now is only check when trying to load a palletized texture)
[~] Removed unused tables from convert image

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@755 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-08-22 16:28:21 +00:00
salvy
9ff9d265a2 [-] Bye bye murmur2 hash
[!] Made slow memory access compatible with recent changes
[+] Added DKR64 hack which makes DK64 boot (This is disabled since we ignore IMEM transfers for speed which is required for DK64)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@754 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-08-22 16:13:10 +00:00
Corn
b513fbc09b [!] Removed optimization of LBU for banjo while using dynarec mem opt.
[!] Changed to a simpler hash for texture indexing.

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@752 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-08-19 14:43:02 +00:00
Corn
7daabc6eda [!] Optimized branch delay slots in dynarec service routines
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@750 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-08-15 18:48:53 +00:00