summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/SWVertexLoader.cpp
AgeCommit message (Collapse)Author
2018-03-14Assert: Uppercase assertion macrosLioncash
Macros should be all upper-cased. This is also kind of a wart that's been sticking out for quite a while now (we avoid prefixing underscores).
2017-09-11Renderer: Move cull mode to a rasterization state objectStenzek
Also moves logic for primitive handling to VideoCommon.
2017-09-09SWVertexLoader: Remove GetIndexBuffer()Lioncash
It's only ever used in one place internally and is arguably unnecessary.
2017-09-09SWVertexLoader: Normalize class variable namesLioncash
Follows our coding style.
2017-08-22SW NativeVertexFormat: Utilize std::array where applicableLioncash
Gets rid of some hardcoded looping bounds, and also simplifies code in some places, sometimes allowing for removal of a loop altogether.
2017-07-30NativeVertexFormat: Drop unused virtual method SetupVertexPointersStenzek
2017-02-18VertexManagerBase: Make CreateNativeVertexFormat return a unique_ptrLioncash
Much safer as opposed to just returning raw allocated memory.
2017-02-08OpcodeDecoding: Convert #defines into enum constantsLioncash
Gets several constants out of global scope.
2017-01-04VideoCommon: Make dst_alpha state implicit.degasus
2016-09-24Software: Clean out unnecessary includes/fwd declsLioncash
2016-09-22SWVertexLoader: Value initialize SetupUnit instanceLioncash
2016-08-22VertexManager: Correct variable naming schemeLioncash
Altered to indicate regular class members
2016-06-24Reformat all the things. Have fun with merge conflicts.Pierre Bourdon
2016-04-30VideoSW: Fix special case.degasus
I have no clue what this special case shall be, but accessing g_main_cp_state within Flush() is not allowed. We likely still have a bad behavior, but now it only depends on the current state, not on the next one after flushing.
2016-03-06VideoSW: Drop SetTevReg for colors.degasus
2016-03-06VideoSW: Drop SetScissor().degasus
Just access the global state directly.
2016-03-06VideoSW: Drop SetViewOffset.degasus
Just use the global state.
2016-01-31VideoCommon: Convert some DataReader includes into forward declarationsLioncash
Gets rid of some indirect inclusions in cpp files. Also this will reduce the amount of rebuilt files if changes occur in the DataReader header.
2016-01-17VideoCommon: Header cleanupLioncash
Also remedies places where the video backends and core rely on things being indirectly included.
2016-01-06VideoSW: Use more VideoCommondegasus
Now we require lots of empty functions, but this removes by far more duplicated code.
2015-12-28VideoSW: Clear Vertex data before usagedegasus
This must have no effect, everything else is usage of uninitialized memory.
2015-12-27Revert "ShaderGen: Toggle value of uninitialized color."Scott Mansell
2015-12-22VertexLoaderBase: Get rid of explicit delete and newLioncash
2015-12-19VideoSW: Clear normal vertex data.degasus
This data might not be initialized but used for lighting. This matches our ShaderGen usage in VertexShaderGen.cpp:166.
2015-12-06VideoSW: Use Zero for undefined colors.degasus
2015-09-20VideoSW: Don't raise a PanicAlert because of indicesdegasus
It's not panic, it may just render wrong. And this case seems to happen often.
2015-05-30Clean up cached_arraybases. Update VideoSW to new scheme.Scott Mansell
Move ownership of cached_arraybases from CPMemory to VertexLoaderManager to better match it usage.
2015-05-25Merge pull request #2274 from degasus/disable_bboxRyan Houdek
Disable bbox
2015-05-25Set copyright year to when a file was createdTillmann Karras
2015-05-25Update license headers to GPLv2+Tillmann Karras
2015-05-25BBox: remove now unreachable SW bbox implementationdegasus
2015-03-18SWVertexLoader: fix truncated componentsTillmann Karras
2015-02-13Change RunVertices' function arguments.Ryan Houdek
This reduces some dumb state shuffling when calling the emitted vertex loaders.
2015-01-18VideoSW: Fix vertex skippingdegasus
2015-01-04Fix building with PCH disabled.Rohit Nirmal
2014-12-21VideoCommon: split VertexLoaderBase from VertexLoaderdegasus
2014-12-21VertexLoader: remove inlined gettersdegasus
They just blow up the code.
2014-12-21VideoLoader: remove VAT_*_FRACBITSdegasus
They are used to remove the flush amounts, but as we don't flush anymore on vertex loader changes (only on native vertex format right now), this optimization is now unneeded. This will allow us to hard code the frac factors within the vertex loaders.
2014-12-13VideoSW: rewrite VertexLoader to use the VideoCommon onedegasus
2014-12-09VideoCommon: Rename s_pCurBufferPointerdegasus
2014-12-09VertexLoader: Move the old Datareader function into VertexLoaderdegasus
2014-11-20Vertex Loader: SSE implementations of more position/texcoord/normal formatsFiora
~35-45% faster NFS:HP2, possibly other vertex-bound games.
2014-10-21Add missing includes where headers depend on other headers having been ↵comex
included first. This is good hygiene, and also happens to be required to build Dolphin using Clang modules. (Under this setup, each header file becomes a module, and each #include is automatically translated to a module import. Recursive includes still leak through (by default), but modules are compiled independently, and can't depend on defines or types having previously been set up. The main reason to retrofit it onto Dolphin is compilation performance - no more textual includes whatsoever, rather than putting a few blessed common headers into a PCH. Unfortunately, I found multiple Clang bugs while trying to build Dolphin this way, so it's not ready yet, but I can start with this prerequisite.)
2014-09-28Mechanical changes to move most CP state to a struct rather than separate ↵comex
globals. The next commit will add a separate copy of the struct and the ability for LoadCPReg to work on it.
2014-09-08Include CommonTypes.h instead of Common.h.Rohit Nirmal
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-07-29Convert some more header inclusions into forward declarationsLioncash
2014-07-11avoid the extern keyword in .cpp filesdegasus
2014-05-16Video backends: mass-replace "xfregs" with "xfmem".magumagu
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.