summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src
AgeCommit message (Collapse)Author
2011-01-25buildfixShawn Hoffman
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6912 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-25revert my optimizations until i fix some errors and really fix issue 3976Rodolfo Osvaldo Bogado
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6911 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-25Migrate the "Adjust window size" option to the main configuration dialog ↵Glenn Rice
(under the "Display" tab, in "Emulator Display Settings", after "Window Size"). Also rework the way that the option works. When using render to main and the auto resize option, the application window will be resized and then resized back when the emulator stops. This looks much better than the box in the corner look before. Also only resize when it would actually change the size of the window. This fixes the hang on emulation stop on linux. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6910 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-24little fix for issue 3976.Rodolfo Osvaldo Bogado
some optimization for vertex color loading, please test for any change in game color, this is a optimization so nothing should change :) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6908 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-24DX11 code maintenance, part 5:NeoBrainX
Move shader and input layout management from EmuGfxState to Vertex/PixelShaderCache and D3DVertexFormat. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6906 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-24DX11 code maintenance, part 4:NeoBrainX
Move blend state management from EmuGfxState to Renderer. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6905 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-24DX11 code maintenance, part 2:NeoBrainX
Move depth state management from EmuGfxState to Renderer. Call stateman->Apply in Renderer::ApplyState instead of EmuGfxState::ApplyState. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6903 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-24DX11 code maintenance, part 1:NeoBrainX
Move sampler state/shader resource management from EmuGfxState to Renderer. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6902 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-232 fixes one for dx9 and one for software plugin.Rodolfo Osvaldo Bogado
some little optimization to normal loading. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6898 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-19little fix for my last commitRodolfo Osvaldo Bogado
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6882 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-19rework the normal loading now it should be a accurate as real hardware.Rodolfo Osvaldo Bogado
more accurate means more slow so no complains about speed lost, will optimize later. please test for regression, but i hope you will get a nice surprise about this commit :). git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6881 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-18clean a little my last commit and improve accuracy.Rodolfo Osvaldo Bogado
thanks to hrydgard and neobrain for the comments git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6876 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-18some adjustments in Normal loading to improve lighting in dx9.Rodolfo Osvaldo Bogado
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6874 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-13Removed my previous PanicAlert translation hack. Fixed with a better method ↵Glenn Rice
suggested by BhaaL. The translation is done by a callback in the MsgHandler routine that is set at program start. Added macros PanicAlertT, SuccessAlertT, PanicYesNoT, and AskYesNoT that are identical to the non T versions except those strings will be added by gettext to the po files to be translated. These can and should be used anywhere in the code for strings that should be translated. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6838 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-13Quick fifo commit:Marcos Vitali
* Change the process ProcessAllDistace to ClearRegister * Fix a bug in ProcessFifoEvents() in commandProcessro (thanks Skid) -- The last 2 items should be improve the speed lost in r6572 and maybe improve a little bit because ProcessFifoEvents() is right. (Test car selection in GxZero) * Alliviate Fifo desyncs, In the meant time I still Researching for real solution. (This fix RE0 again and maybe others "FIFOs linked but out of sync" and "GFX FIFO: Unknown Opcode (0x%x).\n" games suffers these for desync.) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6837 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-11Simplify the SSSE3 code for better understanding.xsacha
The end result is unchanged. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6815 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-11Forgot to commit the alignment for opcode last time.xsacha
Also, alignment fix for dlist (thx cotton). Hopefully no crashes now :) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6813 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-11Use alignment for ReadDataU32XN. Revert james temp fix.xsacha
Should provide some form of a speedup. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6812 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-11Quick fix for DataReadU32xN_SSSE3. Should fix crashes caused by r6802.james.jdunne
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6809 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-10Use SSSE3 shuffle for DataReader's DataReadU32xN in VideoCommon. The ↵xsacha
function is used for reading up to 16 u32's at a time (512-bits) and then converting endianness. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6802 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-09some little optimizations and some cleaning.Rodolfo Osvaldo Bogado
now lighting should be fully functional again in SM 2.0 cards git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6794 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-09TextureDecoder: Some misc clean ups. Backport code to SSE2 version. Remove ↵xsacha
redundancy in RGBA8 (5% speedup). git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6789 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-08Refactor all the SSSE3 functions in TextureDecoder so that the cpu_info ↵xsacha
check isn't looped over. Speeds up most textures dramatically (where it has previously slowed them). git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6784 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-08New SSSE3 implementation for I4 texture decode. 14% speedup over the ↵xsacha
previous SSE4 implementation (so it was scrapped). git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6783 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-08From my last commit: Fix build on Linux. Use SSSE3 instead of SSE3.xsacha
Remove some unused vars from the SSE2 CMPR. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6781 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-08New SSSE3 implementation of RGB5A3. About 40% improvement (less cycles) on ↵xsacha
the plain C version and 17% on the SSE2 version. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6779 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-07Fix alpha reads (hurray for the ZWW Pictograph quest and Killer 7)j4ck.fr0st
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6778 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-07normalize the efb to texture process for color textures to make it work the ↵Rodolfo Osvaldo Bogado
same in all the plugins and with the same accuracy as real hardware (almost :)) please test for regressions and fixes. some little changes to make pixel shader more dx9 sm2.0 friendly. the condition is not to use pixel lighting ( sorry no hardware support for the quantity of parameters needed). git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6777 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-07This needs to be in the right place to work for <sse4. Going to bed now :P.xsacha
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6776 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-07Probably want to store the result for sse4.xsacha
Makes I4 textures appear again for SSE4 codepath. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6775 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-07Fix a missing 'else' in last commit.xsacha
Remove more redundancy in CMPR (may make it faster - not tested). git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6774 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-07Add SSSE3 implementation for RGBA8 texture decode. It is 25% faster (3/4 of ↵xsacha
the cycles) than the SSE2 version. Remove a bit of redundancy in CMPR. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6773 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-07An extra 5-10% speedup for I4 texture decoding with SSE4.1 intrinsics.xsacha
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6772 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-07SSSE3 implementation of IA8 texture decode. Roughly 50% faster than SSE2 ↵xsacha
version on my computer (SSSE3: 77%, SSE2: 57% vs reference C on Core2 Duo). About half as many cycles. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6770 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-07Last commit only requires SSSE3, not SSE4.xsacha
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6769 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-07An SSE4 implementation for I8 texture decode. Slightly faster than SSE2 ↵xsacha
version on my computer (SSE4: 60%, SSE2: 55% vs reference C on Core2 Duo). git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6768 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-07Add anvideo config option to automatically resize the render window to the ↵donkopunchstania
size of the game's output resolution. This avoids artifacts that appear when the render target is scaled to fit a window of a different size. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6764 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-06Missed one MSVC-ism. Should fix build for Linux. Last revision should still ↵james.jdunne
work for Windows. No functionality changes this time. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6762 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-06Faster SSE2 optimized GX_TF_CMPR texture decoder which gets ~40% speed ↵james.jdunne
improvement on x64 and ~50% improvement on x86 as compared to reference C code. The code now uses direct pointer access from C code to write the colors to the destination texture instead of trying to force them back up into an __m128i and a single write call. This is what produces the major speed-up. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6761 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-06Changes:gnick79
* Fixed a bug on Texture Converter when Copy EFB to RAM's cache is disabled, so... * ...accordingly, I revert my latest commit because now it becomes useless. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6760 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-06Kill HAVE_OPENCL.Soren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6756 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-06Enabled SSE2 optimization of GX_TF_CMPR decoder only for x86 builds. It ↵james.jdunne
can't compete with the x64 optimized reference C code. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6755 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-05improve z copy a little further in 4 bits copy,Rodolfo Osvaldo Bogado
fix and error introduced by my last commit in dx11 plugin git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6754 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-05corrected a little error in my last commitRodolfo Osvaldo Bogado
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6752 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-05corrected depth copy shader in dx9/dx11 to improve accuracy when doing efb ↵Rodolfo Osvaldo Bogado
to texture for depth formats git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6751 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-05Fixed Linux build.james.jdunne
Fixed small undiscovered bug in WII_IPC_HLE_Device_FileIO.cpp when looking at 0-length strings. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6745 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-05Fixed S3TC DXT1 decoder implementation. I see ~40% speed improvements ↵james.jdunne
running on x86 Intel hardware and 0% improvements running on x64 AMD hardware. Strange. More investigation to follow! git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6744 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-05* By forcing resolution size to back-buffer size when the latter one is changed!gnick79
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6742 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-04Temporarily reverting to unoptimized until I can figure this out. Apologies ↵james.jdunne
for the SNAFU :) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6741 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-04~40% speed improvement for decoding GX_TF_CMPR (S3TC) textures using SSE2 ↵james.jdunne
intrinsics. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6740 8ced0084-cf51-0410-be5f-012b33b47a6e