Commit Graph

  • fe9e72d6dc Lock emulation while saving state on all platforms. Soren Jorvang 2010-12-19 16:07:05 +00:00
  • 38a46ddf94 Avoid shadowing variables. Soren Jorvang 2010-12-19 16:03:39 +00:00
  • c68ae8e91e Related to CPUID detecting: gnick79 2010-12-19 15:06:30 +00:00
  • 05ad8d01d3 Fix TextureDecoder.cl to work on both NVidia and ATI video cards. To do so I had to re-add the casting bloat removed in revision 6102. Also, for some odd reason the NVidia OpenCL drivers don't like 8 bit rotations, but are okay with 2, 4 bit rotations. These are apparently bugs in the NVidia drivers that are hopefully fixed in future versions. Also, on linux make sure the TextureDecoder.cl file is copied from the shared data directory to the users directory. Glenn Rice 2010-12-19 14:59:57 +00:00
  • d1631bec3f Build fix for linux. svnrev.h was not found when compiling OCLTextureDecoder.cpp as that include directory was only used in Core/Common. Glenn Rice 2010-12-19 14:02:43 +00:00
  • 0b72d34f6d Build fix for Linux x86 skidau 2010-12-19 13:25:57 +00:00
  • 9114c96c78 Cached the compiled OpenCL kernels to disk (User/OpenCL/kernel.bin). This reduces the start up delay in OpenCL mode. Added a 10 byte header to the file which contains the current svn rev string. This will recompile the OpenCL kernels with every new revision. skidau 2010-12-19 11:03:09 +00:00
  • ef0762c6a5 Apparently I missinterpreted that thing in tortoise svn. Glenn Rice 2010-12-19 04:00:07 +00:00
  • a91c86c4d9 git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6606 8ced0084-cf51-0410-be5f-012b33b47a6e Glenn Rice 2010-12-19 03:46:20 +00:00
  • 7236f114ff git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6605 8ced0084-cf51-0410-be5f-012b33b47a6e Glenn Rice 2010-12-19 03:46:01 +00:00
  • 522746b2c2 **Changes** gnick79 2010-12-18 18:23:22 +00:00
  • 42e40b46c0 OpenCL: Fix error reporting when the build log is too long Orphis 2010-12-18 04:54:16 +00:00
  • d01542ee0a Fix another part of issue 3716 missed in the last revision. Glenn Rice 2010-12-17 22:13:58 +00:00
  • 22f19f6fdb Fix a segmentation fault that occurs when "Confirm on Stop" is enabled, the close button of the window is clicked, and the user answers No to the resulting confirmation. Fixes issue 3716. Glenn Rice 2010-12-17 15:23:33 +00:00
  • 77a36cf9cb ABI fix for Linux x64. ABI_CallFunctionCC16 was not calculating the jump distance on far calls. skidau 2010-12-17 05:16:51 +00:00
  • 2a54c445a0 LLE JIT: Added another 9 DSP Load/Store instructions to the JIT. Fixed a couple bugs in the 32bit and Linux builds. skidau 2010-12-17 03:34:50 +00:00
  • aecc4f67a1 Fixed the throttle (Tab) key so that it takes effect when the frame-limiter is used. Hold down Tab to run the emulator unthrottled (Windows only). skidau 2010-12-17 01:34:40 +00:00
  • 9afb1dab41 Helps to add the new code to the repository. skidau 2010-12-16 23:37:58 +00:00
  • 93a09ee7b5 LLE JIT: * Added jit versions of 5 DSP LoadStore instructions: srs, lrs, lr, sr, si * Renamed MainOpFallback to Default for consistency in naming with JIT64 * Made ext_dmem_read and ext_dmem_write more generic for wider use * Optimised dmem_read and dmem_write slightly * Added dmem_read_imm and dmem_write_imm optimised versions skidau 2010-12-16 23:27:38 +00:00
  • a82a61c53a Core/DSPCore: Fix more memory accesses for linux x64 Core/Common: Add more asserts for too large displacements pierre 2010-12-16 22:38:31 +00:00
  • 4295f2f008 Fix an omission from the last commit. Glenn Rice 2010-12-16 18:39:57 +00:00
  • 4553699077 Merge some state loading stuff to VideoCommon and fixed a crash on Linux system when trying to save a state. Credits go to miquelmartos from the forums for the patch ;) NeoBrainX 2010-12-16 18:21:14 +00:00
  • aa226aaf41 Revert most stuff from r6517 and revert r6501. PixelShaderGen changes broke Mario Kart Wii, ClearScreen changes broke Super Mario Sunshine. NeoBrainX 2010-12-16 17:40:45 +00:00
  • b20858adb3 System Menu Region is now detected based on the Title Version in tmd Title Version and region char of currently installed system menu are now listed in the menu as well LPFaint99 2010-12-16 07:36:26 +00:00
  • 06784d2869 sys menu now loads gamesettings from an ini file (as well as any other wad/nand title that does not have an ascii gamecode) LPFaint99 2010-12-15 23:18:08 +00:00
  • a90d0e8985 LLE JIT: Used a reiterative approach to linking blocks. The JIT flags blocks that have calls to blocks which have not yet been compiled. After more blocks have been compiled, the JIT reattempts to link the flagged blocks. This is repeated until the minimum number of unlinked blocks are left. This increases the success rate of the block linker and resultant speed up. Based on an idea by nakee. skidau 2010-12-15 22:13:31 +00:00
  • aee96e12c6 Rename variable in WiiSaveCrypted for icc. Changes file dialog to show *.bin for wii save import instead of data.bin Move Sram dumps to Sram.cpp and change default FlashID Fixes issue 3711. Fixes issue 3042. LPFaint99 2010-12-15 21:23:42 +00:00
  • 77837b8034 Make sure a few more directories exist when needed. Most package builders (including cmake/cpack) do not install the empty directories in the shared data, and so the paths need to be created at runtime. Also set up cmake/cpack to create prebuilt binary packages and source packages. Also change the vertex shader dump file name in the gfx debugger to something that makes more sense. Glenn Rice 2010-12-15 14:47:13 +00:00
  • 02a38baf7c Build fix for OSX. skidau 2010-12-15 11:02:58 +00:00
  • c584bd5333 LLE JIT: Added simple block linking at immediate CALL's and JUMP's. The code checks if the block being jump to has already been compiled and jumps there if it has, bypassing the dispatcher. This results in a speed-up of around 7 - 10%. skidau 2010-12-15 07:08:36 +00:00
  • e61133625a Fixed the "Locked threads to cores" option properly. Thanks to ernesto and xenofears. skidau 2010-12-15 02:29:06 +00:00
  • 85ec8d268d Linux build fix. Glenn Rice 2010-12-15 02:17:19 +00:00
  • f67afb4fca LLE JIT: * Optimised the updating of g_dsp.pc in the compile loop (code by kiesel-stein) * Added JIT version of LRI (code by kiesel-stein) * Added JIT versions of the branch instructions (code by Jack Frost) * DSP_SendAIBuffer fix (code by Mylek) * Marked instructions that update g_dsp.pc in the DSP table and updated PC based on the table (speed up) * Fixed the signed bits not being set properly in the addr instruction * Created a MainOpFallback function to use interpreted versions of the instructions if necessary (code by kiesel-stein) * Disabled the jit versions of subarn and addarn as they are slowing down NSMBW skidau 2010-12-15 01:42:32 +00:00
  • 76d9209ad4 When the gfx debugger is saving shaders make sure the directory exists. Make sure the gfx debugger unpauses when the emulator is stopped. When a wad is installed make sure directories exist. For the cmake build if a header is not provided in the check_lib macro don't check for it, and assume pkg-config was supposed to work. Glenn Rice 2010-12-14 23:19:34 +00:00
  • 35fef1f173 Revert back to LogTypes. Fixes issue 3668. Glenn Rice 2010-12-14 17:52:01 +00:00
  • 7c0e08b0e7 Forced the video thread to the third core when "Lock threads to cores" is enabled. This should fix the slowdown that this option produced on CPU's with HyperThreading. Thanks to NaturalViolence for the tip. skidau 2010-12-14 09:20:02 +00:00
  • e4ed7dab22 Build fix for case sensitive platforms. Glenn Rice 2010-12-14 02:44:27 +00:00
  • 4780c8f6dd Remove LOGGING from the DSPCore vcproj. It isn't really used like that anymore. This commit doesn't really change anything... Shawn Hoffman 2010-12-14 01:28:21 +00:00
  • 18e95ecdfa EXI: grab the FlashID from the memory card headers and update sram to include correct id and chksum allows using any (valid) memorycard.raw in any slot (including real memcard dumps) LPFaint99 2010-12-14 01:25:50 +00:00
  • b5ba9b3479 I've fixed a beautiful bug in GPFifo the current Memory in some conditions was not assigned right. Pleaseee test again your games with FIFO hangs like WII music, WII sport, Wii resort, etc. May be this help :P Marcos Vitali 2010-12-13 23:04:13 +00:00
  • 4f4f5325f6 DX9: Added another comment to further elaborate what drawShadedTexQuad is doing. NeoBrainX 2010-12-13 18:51:08 +00:00
  • 7cf3ef6ddc DX9: Write a detailed description of the vertex position offset magic in drawShadedTexQuad. I hope this makes at least a bit sense to anyone but me, it's better than no documentation at all though. DX9: Revert to the old EFB coordinate scaling. Glitches caused by higher EFB scales probably can't even be fixed properly in DX9, so let's not even mess with it... NeoBrainX 2010-12-13 17:49:21 +00:00
  • 5fd9951649 - I've implemented cache of interrupt states for PEFINISH and PETOKEN - I've implemented calling to ProcessFifoEvents when is there is a pending event in the main queue from CP, PE & GP - I've implemented FifoIntReset(TRUE, TRUE) in write Clear Register. Marcos Vitali 2010-12-13 07:56:54 +00:00
  • 3d3411f3a0 Added a FASTLOG option for the cmake build to enable all logs. Also make sure all necessary include directories are added in the check_lib macro. Glenn Rice 2010-12-13 05:29:13 +00:00
  • dde2d1a117 Before my second part, little fixes :D 1) I was wrong the games can use also BP and BP int in multi buffer mode or or at least Pokemon XD can hehehe. Pokemon is booting again but this game also need accurate AbortFrame dont care about "GFX FIFO: Unknown Opcode" in this case 2) Fixed a stupid error in UpdateInterrupts (CUT&PASTE mistake) Marcos Vitali 2010-12-13 04:44:33 +00:00
  • b56dd2ad6e DSPLLE-int AR increase, decrease finally 100% (code by kiesel-stein/dolphin-forum, great work btw!!) Marko Pusljar 2010-12-12 17:09:40 +00:00
  • 73da637a42 Rename wii wc24 system files to lower case as on the wii itself. These files are not detected on linux unless the case matches. This fixes an issue when Mario Kart Wii (and possible other games) is run with a clean user directory that renders the game unplayable. Also fix some compiler warnings. On linux don't install the license.txt file. Most distributions handle license files via a package. For example on debian based systems this gives a lintian warning. Glenn Rice 2010-12-12 15:25:03 +00:00
  • 3d0ec2f2f1 Remove the watermark tightness option since it's obsolete now. NeoBrainX 2010-12-12 10:59:06 +00:00
  • 38b3187e8a Changed the LogWindow background colour back to black for Linux and Windows. skidau 2010-12-12 05:38:37 +00:00
  • b926cb426e Disabled the paired single sum instruction (ps_sum) as it is causing the black screen in Sonic Colours. Both JIT and JITIL have this work-around. skidau 2010-12-12 04:53:18 +00:00
  • 8e38b1a8a7 HLE_IPC_BuildFilename was actually ignoring the size argument. Fixes "/tmp/sys" error. Shawn Hoffman 2010-12-12 00:38:36 +00:00
  • ad82dd59b9 Disabled the paired single multiply instruction (ps_mul) in JIT as it is causing the black screen in Sonic Colours. JITIL has a different bug as disabling ps_mul in JITIL did not help the issue. skidau 2010-12-11 22:47:04 +00:00
  • 077c101579 Revert r6561... (yep, it was actually right before) NeoBrainX 2010-12-11 22:06:20 +00:00
  • 188aef2f88 DX9: Fix drawShadedTexSubQuad vertex positions, this fixes at least Mario's texture in Super Mario Sunshine when EFB->Ram is enabled. NeoBrainX 2010-12-11 21:56:04 +00:00
  • 5d16185cf9 Fix some other off-by-one errors in DX9/DX11. NeoBrainX 2010-12-11 21:19:25 +00:00
  • 3b6b8b718c Fix some off-by-one errors in the EFB scaling stuff. NeoBrainX 2010-12-11 21:07:07 +00:00
  • c7b736bb56 Remove some debug stuff Shawn Hoffman 2010-12-11 20:53:10 +00:00
  • 3528629d9a Use the /sys/replace file for defining char to replace and their corresponding replacement strings. Method suggested by pune for compatibility across filesystems and nand tools. Shawn Hoffman 2010-12-11 20:51:48 +00:00
  • a9ca9cfd9b BIG FIFO Commit PART 1! Sometimes you need to write everything from 0, so 10 days later Ive rewrited some parts of the FIFO in Dual Core mode. Is pending use the same code for SC mode. - Improved the GP Register Status: now this is all the time from the fifo loop. - Improved the Interrupts manage: 1) Removed All UpdateInturrupts from CommandProcessor Writes and Read. 2) now the CP interrupts are schedule from the video thread and the fifo loop waiting until this happens 3) considering Inmediate mode for the CP interrupts 3) Implemented Interrupt CP Cache State 4) Implemented only Overflow interrupt in GatherPipeCheck because this need to be detected quickly. - Implemented Overflow handling like a real HW, when Hiwatermark interrupt happens this write ClearRegister with True en HI and False in LO (FifoIntReset) after that a Control Register is writed and the FIFO is processed to LO Watermark. - Removed all ugly code from LO and HI watermark manage - Removed all ugly code from BP manage - Change >= by == in the BP clauses - Removed speed hack (1024 chunk) for better GP Status Control. - Commented GXSetGPFifo very soon hack - Commented FackWatchDog hack - Commented FIFO_RW_DISTANCE = WritePointer hack Marcos Vitali 2010-12-11 12:42:55 +00:00
  • 24569aca3d Fix a linkage issue on newer linux distributions created in revision 6544. Also update the menu link to dolphin-emulator.com Glenn Rice 2010-12-11 01:09:28 +00:00
  • 0447abef36 Changed the GC controller timer from a host based one to one based on the emulated hardware. This helps the emulator become more deterministic. skidau 2010-12-10 21:24:25 +00:00
  • 1021ba0406 DX9: Fix Renderer::SetLineWidth like hrydgard suggested ;) NeoBrainX 2010-12-10 16:13:43 +00:00
  • 01de16df1c DX9: Build fix. Also removed the Renderer::SetLineWidth implementation since it wasn't really useful. NeoBrainX 2010-12-10 16:03:01 +00:00
  • 7473a0cf98 VideoCommon: Use integer arithmetic instead of floating point arithmetic when dealing with EFB scales. Should fix problems caused by EFB scales other than Native (excluding fractional!). Test whether this fixes games which work fine with native EFB resolution but show glitches with higher internal resolutions. NeoBrainX 2010-12-10 15:54:14 +00:00
  • 1e0b0bf84d Fixes/Cleanup for the MemcardManager. Notable Changes: Fixes right click menu in linux. Fixes Issue 2412. sram.raw file is no longer required to format a memcard Update to use new ini sections, automatically remove default settings from ini file enable pages setting no longer requires memcard manager to be reopened to take effect it is no longer possible to switch to a negative page number LPFaint99 2010-12-10 07:11:05 +00:00
  • 2ae7f7f01f Replace characters that NTFS and HFS can't handle with '-'. Should fix issue 3443. Shawn Hoffman 2010-12-10 03:47:00 +00:00
  • 06013d5eec Make the cmake check_lib macro more versatile. It first tries pkg-config, and if that fails it then check for libraries and required headers. Also cleaned up the output a little bit. Glenn Rice 2010-12-10 02:00:05 +00:00
  • c718d2e630 Fixed an issue where the emulator would remain paused when attempting to load a non-existent save-state. skidau 2010-12-09 12:04:03 +00:00
  • f353f80302 LLE JIT: Implemented the addr, lsl and lsl16 instructions in the JIT (x64 only). skidau 2010-12-09 11:52:31 +00:00
  • 8fd825c18c change filename of isocache to always include extension and filesize. Fixes issue 3669. LPFaint99 2010-12-08 06:46:59 +00:00
  • ef093a4d35 Use the proper type for printing the OpenAL default device name. Soren Jorvang 2010-12-07 22:38:03 +00:00
  • 908273d5f4 Just rephrase something :) Shawn Hoffman 2010-12-07 05:59:18 +00:00
  • 2caa685c7f Fix a few more linkage issues in the cmake build. Glenn Rice 2010-12-06 13:06:54 +00:00
  • e2543689b8 DX11: Fix a crash when accessing the EFB. NeoBrainX 2010-12-05 22:28:46 +00:00
  • 738e5e55ee Cast size_t to unsigned long for printf to deal with (32-bit) systems where size_t is typedef int. Soren Jorvang 2010-12-05 18:22:41 +00:00
  • d171f7277b Fix the nogui build on linux. The software plugin config dialog should not be built. Fix the default wiimote emulation mouse button settings on linux. Fix a little c++ operator precedence issue. Glenn Rice 2010-12-05 18:10:13 +00:00
  • 8d9e1f2dd1 DX11: Remove some dead code. NeoBrainX 2010-12-05 17:39:42 +00:00
  • c2f84fdccb CLRun is now used everywhere but OS X. Soren Jorvang 2010-12-05 16:57:32 +00:00
  • 4934cd29b3 Move NSAutoreleasePool handling into the proper entry/exit points for the real wiimote thread as for the other threads. Soren Jorvang 2010-12-05 16:18:09 +00:00
  • 5910ef259c Fix building with BBOX_SUPPORT enabled. NeoBrainX 2010-12-05 16:15:01 +00:00
  • 0ecf88c300 LUA_USE_LINUX is suitable for everything but Win32 really. Soren Jorvang 2010-12-05 16:03:48 +00:00
  • f169def36f First pass at dealing with different size_t/off_t sizes in C90 environments. Soren Jorvang 2010-12-05 15:59:11 +00:00
  • e5311460a9 Earlier versions of wxWidgets do not implicitly include <wx/wx.h>. Soren Jorvang 2010-12-05 15:36:08 +00:00
  • a754f8e703 We effectively only have a single namespace for private header files, so the recent addition of VideoCommon/Src/Debugger.h clashed with DebuggerWX/Src/Debugger.h. Soren Jorvang 2010-12-05 15:28:31 +00:00
  • 9dae1e9674 VideoUICommon: Add descriptive tooltips to many options, part 1. NeoBrainX 2010-12-05 14:37:21 +00:00
  • f3d6b42e83 Fix VideoCommon build configuration for DebugFast/x64. NeoBrainX 2010-12-05 14:31:00 +00:00
  • 7854bd7109 Merged the D3D9 debugger into VideoCommon/VideoUICommon: Separated UI from debugger functionality. Generally cleaned up that stuff. Most functionality needs to be reimplemented now, but will be available to D3D9, D3D11 as well as OpenGL then. NeoBrainX 2010-12-05 14:15:36 +00:00
  • 9da4fe086b allow gcc to check the format of args being passed to MsgAlert and GenericLog. Fixed nearly all warnings that arose from this, as well as some preexisting ones (some were actually crashes and/or bugs...) Shawn Hoffman 2010-12-05 09:04:34 +00:00
  • 3e4aa20601 fix a crash that could occur in CompressedBlob.cpp Shawn Hoffman 2010-12-05 04:07:44 +00:00
  • 6df84ddc31 little fix for r6517 Rodolfo Osvaldo Bogado 2010-12-05 03:36:37 +00:00
  • 85d36e38c3 LLE JIT: Jitted another 8 DSP multiplier instructions (x64 only) skidau 2010-12-04 23:20:31 +00:00
  • 379fa47b6a little fix for r6513 thank to metatheos for finding the error Rodolfo Osvaldo Bogado 2010-12-04 22:04:46 +00:00
  • c8305a7b7d two fixes in this commit: first fix for issues introduced in sms in r6501, please test for a regressions in The Calling Second Fix for Issue 3539, by making pixel Dept calculation an option. in games with this issue Enabling pixel depth will solve the issue, in other games disabling the option will not cause speed lost some cleanup in dlist cache Rodolfo Osvaldo Bogado 2010-12-04 17:58:33 +00:00
  • 7901e74f00 Reestablish *BSD build using CMake. Soren Jorvang 2010-12-04 15:19:04 +00:00
  • e70e623624 Second attempt at issue 3458. Fixes issue 3458. Replaces all occurrences of ftell and fseek with ftello and fseeko, respectively. This matters on non-win32 where only these names are altered by the _FILE_OFFSET_BITS define. Win32 still just maps the funcs to ftelli64/fseeki64. Also add some File::GetSize I had skipped in my last commit. Shawn Hoffman 2010-12-04 03:50:55 +00:00
  • 97e3a3ea6f remove fifowait flag, is not needed now as we execute all events that need to be executed even if the cpu is waiting for the fifo. this way fifo will not avid other thread events to bi executed. Rodolfo Osvaldo Bogado 2010-12-04 03:44:56 +00:00
  • f5a28aecb7 Rodolfo and Me fixed ProcessFifoWaitEvents() in CoreTiming, now process the all events and not only the first :P Marcos Vitali 2010-12-03 23:12:27 +00:00
  • 63d690e94c 4.4BSD derived OS'es always have 64-bit file sizes. Soren Jorvang 2010-12-03 14:56:55 +00:00
  • 44285c2b30 LLE JIT: Implemented some of the DSP multiplier functions in the JIT compiler. Only the x64 version has been implemented so far. skidau 2010-12-03 13:59:14 +00:00
  • 3d441febda Attempt to fix issue r3458. I don't have a 32bit linux install, however I know it will at least fix compressing. Please test if uncompressed games run. Shawn Hoffman 2010-12-03 12:42:01 +00:00