summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoader.cpp
AgeCommit message (Collapse)Author
2014-09-08Remove the inaccurately named ABI_PushAllCalleeSavedRegsAndAdjustStack (it ↵comex
didn't preserve FPRs!) and replace with ABI_PushRegistersAndAdjustStack. To avoid FPRs being pushed unnecessarily, I checked the uses: DSPEmitter doesn't use FPRs, and VertexLoader doesn't use anything but RAX, so I specified the register list accordingly. The regular JIT, however, does use FPRs, and as far as I can tell, it was incorrect not to save them in the outer routine. Since the dispatcher loop is only exited when pausing or stopping, this should have no noticeable performance impact.
2014-09-08Improve code and clarify parameters to ABI_Push/PopRegistersAndAdjustStack.comex
- Factor common work into a helper function. - Replace confusingly named "noProlog" with "rsp_alignment". Now that x86 is not supported, we can just specify it explicitly as 8 for clarity. - Add the option to include more frame size, which I'll need later. - Revert a change by magumagu in March which replaced MOVAPD with MOVUPD on account of 32-bit Windows, since it's no longer supported. True, apparently recent processors don't execute the former any faster if the pointer is, in fact, aligned, but there's no point using MOVUPD for something that's guaranteed to be aligned... (I discovered that GenFrsqrte and GenFres were incorrectly passing false to noProlog - they were, in fact, functions without prologs, the original meaning of the parameter - which caused the previous change to break. This is now fixed.)
2014-09-06Split some parts of UpdateBoundingBox into multiple lines. Also,Rohit Nirmal
fix issues causing failure on Lint.
2014-09-01VertexLoader: Change VtxDesc to use u64 instead of u32Pierre Bourdon
This is required to make packing consistent between compilers: with u32, MSVC would not allocate a bitfield that spans two u32s (it would leave a "hole").
2014-08-30VideoCommon: Clean up brace placementsLioncash
2014-08-04VertexLoader: do not prepare for vertices if we need to skip themPierre Bourdon
2014-08-03Merge pull request #428 from Sonicadvance1/x86_32-removalPierre Bourdon
Remove x86_32 support from Dolphin.
2014-08-03Remove x86_32 from VertexLoader.Ryan Houdek
2014-08-02VertexLoader: Remove more global state dependencies (this time ↵Pierre Bourdon
IndexGenerator and VertexManager)
2014-07-26VertexLoader: Remove global state dependency on g_nativeVertexFmtPierre Bourdon
2014-07-24VertexLoader: take the VAT object directly for RunVerticesPierre Bourdon
2014-07-24VertexLoader: Simplify SetVATPierre Bourdon
2014-07-11remove unused globalsdegasus
Also change globals into statics which are only used in one file
2014-07-11mark all local functions as staticdegasus
2014-07-04VideoCommon: Cache native vertex formatsdegasus
We are used to have a 1:1 mapping of GX vertex formats and the native (OGL + D3D) ones, but there are by far more GX ones. This new cache maps them directly so that we don't flush on GX vertex format changes as long as the native one doesn't change. The idea is stolen from galop1n.
2014-06-03x64Emitter: J_CC: use 32 bit offset automaticallyTillmann Karras
2014-05-16Video backends: mass-replace "xfregs" with "xfmem".magumagu
2014-05-16Video backend: merge global var xfmem into xfregs.magumagu
There isn't really any reason to keep them separate.
2014-05-16Video backends: unify xfregs/xfmem structures.magumagu
Removes the duplicate swxfregs global variable/struct from the software backend in favor of the ones from VideoCommon.
2014-04-30Changes posmtx vertex attribute to integer.Ryan Houdek
This makes it so we don't need to do some dumb casting from float to integer in our shaders. Only tested in OpenGL, needs to be tested in D3D.
2014-04-10Merge pull request #213 from Jezze/vertexloader-cleanupsTony Wasserka
Vertexloader cleanups
2014-03-29Remove all trailing whitespaces from our codebase.Pierre Bourdon
2014-03-27VideoCommon/VertexLoader: Add more use of std::min and std::maxJens Nyberg
2014-03-27VideoCommon/VertexLoader: Remove duplicate point min and max calculationJens Nyberg
2014-03-26VideoCommon/VertexLoader: Remove NRM enumJens Nyberg
2014-03-18Remove superfluous bit shiftJens Nyberg
2014-03-11Fixes spacing for "for", "while", "switch" and "if"Matthew Parlane
Also moved && and || to ends of lines instead of start. Fixed misc vertical alignments and some { needed newlining.
2014-03-09clang-modernize -use-nullptrTillmann Karras
and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine
2014-03-04Make our architecture defines less stupid.Ryan Houdek
Our defines were never clear between what meant 64bit or x86_64 This makes a clear cut between bitness and architecture. This commit also has the side effect of bringing up aarch64 compiling support.
2014-02-28Fix various warnings reported by clangTillmann Karras
- mostly remove unused variables - rename some generic JIT identifiers
2014-02-20Fix more header sorting issues in VideoCommon/ (now check-includes clean).Pierre Bourdon
2014-02-18Convert all includes to relative paths.Lioncash
2014-02-17Second and final pass of clearing out tabs.Lioncash
2014-02-16Fix some vertical alignmentsLioncash
ie. uses spaces for alignment.
2014-02-10Some tidy up of sprintf to StringFromFormatMatthew Parlane
Includes a small fix to SetupWiiMemory
2014-02-09Revert "Merge pull request #49 from Parlane/sprintf_tidy"Pierre Bourdon
Change broke the build on Debian stable. This reverts commit 28755439b36ac8e875d764da5db31ad693459ace, reversing changes made to 64e01ec763d21915e7166e625f8a3e85b46fbcbb.
2014-02-08Some tidy up of sprintf to StringFromFormatMatthew Parlane
2014-02-04Silence warningTillmann Karras
2014-01-31Merge pull request #11 from degasus/VertexLoaderCleanupTony Wasserka
Vertex loader cleanup.
2014-01-31VideoCommon: small VertexLoader(Manager)? refactoringdegasus
2014-01-31VideoCommon: remove Cache Displaylistdegasus
This option was known to break every second game and only boost a bit. It also seems to be broken because of streaming into pinned memory and buffer storage buffers. v2: also remove dlc_desc
2014-01-31PortableVertexFormat: use AttributeFormat for posmtx attribute formatdegasus
2014-01-31PortableVertexFormat: use AttributeFormat for texcoord attribute formatdegasus
2014-01-31PortableVertexFormat: use AttributeFormat for color attribute formatdegasus
2014-01-31PortableVertexFormat: use AttributeFormat for normal attribute formatdegasus
2014-01-31PortableVertexFormat: add a struct which hold all needed information for ↵degasus
every vertex and use this for position atm, position attribute is hardcoded both in VertexLoader and in backends. v2: fix coding style + cleanup lookup table
2014-01-26BBox: Changed the rounding again, the old one fixed Paper Mario but had bugs ↵crudelios
in Mickey's Magical Mirror. This change fixes the glitches in both games. Also fixed some compiler warnings.
2014-01-25BBox: fix for a small rounding issue.crudelios
The new chapter title in Paper Mario TTYD had a small graphical bug due to the new code because it read one extra pixel, this fixes it. I hope this gets everything, I though I had checked most bugs and yet here I am, commit-spamming...
2014-01-25BBox: read from the proper world matrix index when transforming vertexes to ↵crudelios
screen coordinates. Fixes some remaining bbox related bugs in Mickey's Magical Mirror and a slight graphical glitch in Paper Mario: TTYD when flipping and Vivian as your companion (I've been scratching my head for days to find this one).
2014-01-25Rewrote bounding box algotithm. Fixes issues 5967, 6154, 6196, 6211.crudelios
Instead of being vertex-based, it is now primitive (point, line or dissected triangle) based, with proper clipping. Also, screen position is now calculated based on viewport values, instead of "guesstimating". This fixes many graphical glitches in Paper Mario: TTYD and Super Paper Mario. Also, the new code allows Mickey's Magical Mirror and Disney's Hide & Sneak to work (mostly) bug-free. I changed their inis to use bbox. These changes have a slight cost in performance when bbox is being used (rare), mostly due to the new clipping algorithm. Please check for any regressions or crashes.