summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/BPStructs.cpp
AgeCommit message (Collapse)Author
2011-04-03VideoCommon: Update color writing mask if pixel format changes.NeoBrainX
Possibly fixes issue 4340. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7436 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-05Missed a critical section.Jordan Woyak
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7295 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-26Add EFB encode-to-RAM support in DX11 backend. It could probably be ↵Nolan Check
simplified a lot, and not all the possible formats are implemented. I tried to use the dynamic-linking feature of shader model 5, but Microsoft's HLSL compiler is broken. "Dynamic mode" is implemented, but disabled for now. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7253 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-02-02Remove PluginSpecs.h. Merge the few needed enums from that file into ↵Glenn Rice
Common.h for now. I am up for suggestions on a better place for those. Fix frame dumping on linux. Make sure that on screen messages get cleared between games. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7039 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-29initial implementation of fog range adjust, I don't think is correct or work ↵Rodolfo Osvaldo Bogado
right but is a start. some tweaks and fixes. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6957 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-27Clean out the long since bit-rotted video profiling code.Soren Jorvang
Profiler.{cpp,h} also happened to be the only dupliated filenames left in Source, the absence of which should make link-time optimization easier to get working. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6935 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-01-27Fixed the black (alpha) textures in the 8ing games like Tatsunoko vs Capcom ↵skidau
and the Naruto series when using the OpenGL plug-in. Thanks to jim.lee for the tip. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6930 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
2010-12-31Finish implementing gamma correction in DX9.donkopunchstania
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6697 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-12-27Implement pixel data reinterpretation on EFB format change.NeoBrainX
Whatever that means, it fixes that stupid Super Mario Sunshine glitch and possibly lots of other stuff, so test as many glitchy games as possible with this ;) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6669 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-12-18**Changes**gnick79
* More formats recognition for "Clear Screen" step. Improved the ability handling the alpha channel (% color translucency). * Related to CPUID detecting: - Added support displaying correct SysInfo for recent multicore Intel CPUs x86-64 with HT/SMT (Core i3/i5/i7 and Xeon) based on Nehalem architecture. + minor and passive changes. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6604 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-12-05Fix building with BBOX_SUPPORT enabled.NeoBrainX
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6530 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-11-18Move some shared gfx plugin code into VideoCommon. Changed "Renderer" class ↵Jordan Woyak
to use virtual functions. (setting stuff up for video plugin merging) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6433 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-11-07DX9/DX11: Remove some dead or obsolete code.NeoBrainX
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6354 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-08-05Move the ZTP hack to the game properties (reverted all changes from r6057 to ↵NeoBrainX
the video plugins) due to some obvious reasons. Also some fixes to the coding style. Remove a member variable which I introduced in r5907 although it never actually got used. Restores binary compatibility (at least in that regard) to pre-r5907 video plugins, but breaks any binaries after that :P Update FIFO watermark tightness recommendations. 1000 is quite a high value I guess, but some people seem to need it. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6060 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-08-05This commit addresses the Hyrule field slowdown issue in Zelda: Twilight ↵Fircrestsk8
Princess, as discussed in Xtreme2damax's thread: http://forums.dolphin-emu.com/thread-10638.html. It can be activated in the DX9, DX11, and OpenGL plugin GUI's. Enabling the hack while playing other games besides ZTP will likely have either an undesirable or no(more likely) effect. The code changes disable the usual pipeline flush for certain BP Writes that occur while the minimap is being drawn in Zelda: twilight princess. This significantly increases speed while in hyrule field. The way this is accomplished is described more in depth on page 42 of Xtreme's thread. Big thanks to Xtreme for doing a great job hosting that thread, and Kiesel-stein for initial work on the hack Also, I used the resource editor in Visual studio to generate the GUI code for the DX11 plugin, and some code appeared to be removed, although the behavior of the GUI did not seem to change. Hopefully someone more experienced with resource files (forms?) can double check that no code was damaged git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6057 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-07-06cleanup + some eolzluisr142004
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5842 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-05space changes, merge #defines, language fix, and code reorder/cleanup :Pluisr142004
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5614 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-24Fix a few compiler/valgrind warnings, kill check for 17th texenv registers, pierre
and one problem reading a truncated sram file. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5474 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-01-12D3D: Fix some texture wrapping issues by setting the texture state for every ↵hrydgard
texture used at draw time. Hopefully there will not be a noticable slowdown, thanks to the state caching. Also some minor cleanup. Should fix issues like repeated shadows. TODO: In theory it should have worked without this, so I should investigate why this change was needed. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4815 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-12-28Fix an issue with BPMEM_LOADTLUT, thanks to revned @ issue 1831, also fix a ↵sl1nk3.s
speed issue int the FIFO loop introduced recently (ZWW was ~20% slower) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4739 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-12-09Small fix for the last commit, and a little fix for disable fog to really ↵Rodolfo Osvaldo Bogado
disable it :) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4662 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-10-10Moving pixel engine and command processor from core to video common. This ↵donkopunchstania
will break previous save states. Adds decoding single pixels to texture decoder. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4391 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-09-13D3D: Fix 8-bit signed normals. Fixes lighting problems in Super Smash Bros ↵hrydgard
Melee. misc tiny things git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4265 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-09-13D3D: Eliminate black borders, add 4:3 and 16:9 settings, and the widescreen ↵hrydgard
hack. Unfortunately this temporarily breaks MSAA (in d3d only) until I have time to fix it. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4263 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-09-04Fix screen flickering with frameskip on D3D plugin, also fix occasional hang ↵sl1nk3.s
when turning frameskip off git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4194 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-09-02Warning fixes/suppressions(aui), assorted code cleanup, d3d vertex shader ↵hrydgard
cache expiration interval increased. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4165 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-28Now ALL copyright dates are fixed to the legally correct year: The year in ↵XTra.KrazzY
which the project began. Now we don't have to change it every year :) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3898 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-26GFX: updated Dates, code formatting cleanup, code cleanup / organization, ↵omegadox
some unknown BPs uncovered, fixed OGL's config dialog bug, added another shader DSPHLE: Some warning fixes and added some logging for unknown voice cases Please report if anything has broken. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3884 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-22Fixed the load-state memory leak, also fixed various other savestate issues. ↵XTra.KrazzY
Found (probably) the cause of load-state crashing Dolphin: BPWrites. Tried to put a CriticalSection around BPWritten but it only causes Dolphin to hang when loading a state. Can someone find why it hangs? git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3873 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-19do the rounding in the if, shouldn't cause trouble afaik. (pso kept spamming ↵daco65
logs under, cause xfblines was 574.205566) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3851 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-19Rename scale_something to scale_invert. Plus, sneak in a tiny Thread.h change.Nolan Check
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3845 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-18Seems to fix issue 1131. Please test Real XFB mode.Nolan Check
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3838 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-15Some minor changes to VideoCommon, improved SawWave sound, the denied sound ↵omegadox
in ZWW sounds better (compared it to real HW to be sure). git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3810 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-15Code cleanup. Juggling rectangles. I'm about to investigate the problems ↵Nolan Check
with Real XFB's in PAL games, so I wanted to make sure all our rectangles were cleaned up and organized. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3794 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-06add *.user, Win32, and x64 build dir to ignore list for DebuggerUICommon and ↵LPFaint99
Unit Tests add *.aps to ignore list for DolphinWX dir add eol-style native to 120 or so files git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3689 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-29Move to new Virtual XFB system which correctly handles games which store ↵Nolan Check
multiple XFB's in memory. More OpenGL cleanup. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3591 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-29Grok EFB pixel format to determine whether render target has alpha, thus ↵Nolan Check
fixing the "Stage Clear" screen in SSBM. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3588 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-28Graphics: (faked) bounding box support. Helps some Paper Mario effects ↵hrydgard
although they're still a bit glitchy. Might also help other games? Enable with the #define in VideoCommon.h. Since there might be a speed hit it's off by default. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3580 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-28Delete some obsolete junk, in zelda ucode and in gl plugin.hrydgard
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3577 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-22revert last 2 commitsnakeee
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3533 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-22They should be called SU Registers (Setup Unit/Rasterization). BP (Bypass) ↵omegadox
is really the name of the commands that are passed in. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3531 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-22Some commenting and added some unknown cases to BPStructs, see: ↵omegadox
http://code.google.com/p/dolphin-emu/issues/detail?id=360#c90 git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3530 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-15Attempt to calculate actual refresh rate (i.e. a CPU-GPU synced Mhz), no ↵John Peterson
real success. Anybody have any ideas? Is there no indication from the game when the screen refresh should occur? No, not what I could find, we currently calculate the refresh rate and m_VBeamPos from the CPU ticks progress. That works perfectly if the CPU and GPU is perfectly synced as in the single core and no-idle skipping mode. So I guess it's possible that the game doesn't indicate when the screen should be refreshed, but rather that the hardware calculate that from the CPU ticks progress. That leaves us with a problem in the dual core and idle skipping modes to calculate a CPU-GPU synced CPU ticks progress. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3447 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-04Compile fix :pMarcus Wanners
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3323 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-06-04Got rid of warning (see ↵Marcus Wanners
http://code.google.com/p/dolphin-emu/issues/detail?id=360#c92). git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3322 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-04-15revised how texture scaling is handled. it now works correctly when adding ↵donkopunchstania
output together from indirect stages which use power 2 and non power 2 textures and it is simpler. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2972 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-04-08Some commenting fixes and use INFO_LOG again.omegadox
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2923 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-04-07More commenting.omegadox
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2921 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-04-06More commenting and cleanup and added another BP Function.omegadox
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2903 8ced0084-cf51-0410-be5f-012b33b47a6e