summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/SWVertexLoader.cpp
AgeCommit message (Collapse)Author
2020-11-20Software: Use same logic for colors as hardware backendsStenzek
2020-11-09Software: Migrate logging over to fmtLioncash
Migrates the software backend over to the fmt-capable logger.
2019-12-05VideoCommon/IndexGenerator: Eliminate static stateLioncash
Now that we've extracted all of the stateless functions that can be hidden, it's time to make the index generator a regular class with active data members. This can just be a member that sits within the vertex manager base class. By deglobalizing the state of the index generator we also get rid of the wonky dual-initializing that was going on within the OpenGL backend. Since the renderer is always initialized before the vertex manager, we now only call Init() once throughout the execution lifecycle.
2019-07-10VideoCommon/Statistics: Rename stats global to g_statsLioncash
Makes the global variable follow our convention of prefixing g_ on global variables to make it obvious in surrounding code that it's not a local variable.
2019-07-10VideoCommon/Statistics: Normalize statistic variable namesLioncash
Normalizes all variables related to statistics so that they follow our coding style. These are relatively low traffic areas, so this modification isn't too noisy.
2019-02-19Move most backend functionality to VideoCommonStenzek
2018-12-04Use main buffers for utility drawsStenzek
2018-10-14VideoCommon: Clean up class-memaccess warningsTechjar
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.