summaryrefslogtreecommitdiffstats
path: root/src/video_core/vertex_shader.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* GPU: Refactor "VertexShader" namespace to "Shader".bunnei2015-08-151-629/+0
| | | | - Also renames "vertex_shader.*" to "shader_interpreter.*"
* Merge pull request #963 from yuriks/gpu-fixesbunnei2015-07-291-0/+6
|\ | | | | Misc. GPU vertex loading fixes
| * VideoCore: Saturate vertex colors before interpolatingYuri Kunde Schlesner2015-07-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | During testing, it was discovered that hardware does not interpolate colors output by the vertex shader as-is. Rather, it drops the sign and saturates the value to 1.0. This is done before interpolation, such that (e.g.) interpolating outputs 1.5 and -0.5 is equivalent to as if the shader had output the values 1.0 and 0.5 instead, with the interpolated value never crossing 0.0. This change has been tested against hardware.
* | Merge pull request #992 from yuriks/hot-path-debugbunnei2015-07-261-0/+2
|\ \ | | | | | | VideoCore: #ifdef out some debugging routines
| * | VideoCore: #ifdef out some debugging routinesYuri Kunde Schlesner2015-07-261-0/+2
| |/ | | | | | | | | | | | | Some disabled debugging functionality was being called from rendering routines in VideoCore. Although disabled, many of them still allocated memory or did some extra work that was enough to show up in a profiler. Gives a slight (~2ms) speedup.
* | Videocore: Simplify variables in vertex shader interpreterYuri Kunde Schlesner2015-07-261-24/+21
| | | | | | | | Simplifies the code and gives a tiny speed-up.
* | Videocore: Replace std::stack in shader interpreter with static_vectorYuri Kunde Schlesner2015-07-261-6/+6
|/ | | | Shaves off 1/3rd of the vertex shader time in Fire Emblem
* Merge pull request #929 from neobrain/geoshader_definitionsTony Wasserka2015-07-211-9/+7
|\ | | | | Pica/Shader: Add geometry shader definitions.
| * Pica/Shader: Add geometry shader definitions.Tony Wasserka2015-07-151-9/+7
| |
* | Pica: Fix DP3 instruction, which wasn't assigning to the w componentYuri Kunde Schlesner2015-07-201-1/+1
|/
* vertex_shader: Use address offset on src2 in inverted mode.bunnei2015-05-311-3/+3
|
* vertex_shader: Implement SLT/SLTI instructions.bunnei2015-05-311-4/+10
|
* vertex_shader: Implement MIN instruction.bunnei2015-05-311-0/+9
|
* Remove every trailing whitespace from the project (but externals).Emmanuel Gil Peyrot2015-05-291-2/+2
|
* Pica: Create 'State' structure and move state memory there.bunnei2015-05-231-69/+27
|
* Memmap: Re-organize memory function in two filesYuri Kunde Schlesner2015-05-151-2/+0
| | | | | | | memory.cpp/h contains definitions related to acessing memory and configuring the address space mem_map.cpp/h contains higher-level definitions related to configuring the address space accoording to the kernel and allocating memory.
* GPU: Add more fine grained profiling for vertex shader and rasterizationYuri Kunde Schlesner2015-05-121-0/+5
|
* vertex_shader: Implement FLR instruction.bunnei2015-05-101-0/+9
|
* vertex_shader: Implement MADI instruction.bunnei2015-05-101-4/+7
| | | | nihstro: Update submodule to latest upstream/master to support MADI instruction decoding.
* GPU: Implemented default vertex shader attributes.Subv2015-05-071-16/+23
| | | | Fixes some games crashing.
* Pica/VertexShader: Fix a bug caused due to incorrect assumptions of consecutive output register tables.Tony Wasserka2015-03-121-20/+24
| | | | We now write create a temporary buffer for output registers and copy all of them to the actual output vertex structure after the shader has run. This is technically not necessary, but it's easier to vectorize in the future.
* Update nihstro submodule to the initial release version.archshift2015-03-081-37/+38
| | | | Includes more opcodes to implement in the future.
* Pica/VertexShader: Fixed LOOP with more than one iteration.Subv2015-02-211-1/+4
| | | | | Previously it wouldn't jump back to the start of the loop code once it reached the end of the block. Fixes the texture problems in a lot of games.
* Pica/VertexShader: Implement the LOOP instruction.Tony Wasserka2015-02-181-14/+36
|
* Build: Fixed some warningsSubv2015-02-121-2/+2
|
* Asserts: break/crash program, fit to style guide; log.h->assert.harchshift2015-02-111-8/+5
| | | | | | | Involves making asserts use printf instead of the log functions (log functions are asynchronous and, as such, the log won't be printed in time) As such, the log type argument was removed (printf obviously can't use it, and it's made obsolete by the file and line printing) Also removed some GEKKO cruft.
* Merge pull request #478 from archshift/pp3ports4bunnei2015-01-131-0/+69
|\ | | | | Pica/VertexShader: Implement the MAD instruction.
| * Pica/VertexShader: Implement the MAD instruction.Tony Wasserka2015-01-131-0/+69
| |
* | Pica/VertexShader: Implement JMPC/JMPU/CALLC/CALLU.Tony Wasserka2015-01-131-23/+52
|/
* Pica/VertexShader: Coding style fixes.Tony Wasserka2014-12-311-16/+8
|
* Pica/CommandProcessor: Add support for integer uniforms.Tony Wasserka2014-12-311-0/+7
|
* Vertex Shader: Zero OutputVertex to avoid denormalsYuri Kunde Schlesner2014-12-291-0/+4
| | | | | | | | | Unused OutputVertex attributes were being left un-initialized. The leftover garbage sometimes decoded as floating-point denormalized values, causing fallbacks to microcode and massive slowdowns in the rest of the rasterization pipeline even though the results were unused. By zeroing the structure we ensure these attributes only contain harmless zeros.
* Merge pull request #327 from Apology11/masterbunnei2014-12-271-4/+4
|\ | | | | Fix visual studio ambiguous symbol error
| * Fix visual studio ambiguous symbol errorApology112014-12-211-4/+4
| |
* | Merge pull request #291 from purpasmart96/licensebunnei2014-12-211-1/+1
|\ \ | |/ |/| License change
| * License changepurpasmart962014-12-211-1/+1
| |
* | Pica/VertexShader: Promote a log message to critical status.Tony Wasserka2014-12-201-1/+1
| |
* | Pica/VertexShader: Small optimization.Tony Wasserka2014-12-201-7/+7
| |
* | Pica/VertexShader: Be robust against invalid inputs.Tony Wasserka2014-12-201-2/+9
| | | | | | | | More specifically, this also fixes crashes by Citra trying to load a src2 register even if the current instruction does not use that.
* | Pica/VertexShader: Clarify a comment.Tony Wasserka2014-12-201-1/+3
| |
* | Pica/VertexShader: Cleanup flow control logic and implement CMP/IFU instructions.Tony Wasserka2014-12-201-50/+56
| |
* | Pica/VertexShader: Run instruction handlers according to the effective opcode.Tony Wasserka2014-12-201-1/+1
| | | | | | | | This allows for proper emulation of the different CMP/LRP/MAD instructions.
* | Pica/VertexShader: Implement MAX instructions.Tony Wasserka2014-12-201-0/+9
| |
* | Pica: Add support for boolean uniforms.Tony Wasserka2014-12-201-1/+7
| |
* | Pica/VertexShader: Add support for MOVA, CMP and IFC.Tony Wasserka2014-12-201-7/+130
| |
* | Pica/VertexShader: Move code around a bit.Tony Wasserka2014-12-201-42/+58
| |
* | Pica/VertexShader: Some cleanups using std::array.Tony Wasserka2014-12-201-5/+16
| |
* | Pica/VertexShader: Support negating src2.Tony Wasserka2014-12-201-2/+9
| |
* | Pica/VertexShader: Remove (now) duplicated shader bytecode definitions in favor of nihstro's ones.Tony Wasserka2014-12-201-13/+30
|/
* Convert old logging calls to new logging macrosYuri Kunde Schlesner2014-12-131-3/+3
|
* Integrate Boost into build system and perform a trivial cleanup in vertex_shader.cpp.Tony Wasserka2014-12-071-6/+10
|
* Fix warnings in video_coreLioncash2014-10-081-1/+1
|
* Pica/VertexShader: Fix a bug in the call stack handling.Tony Wasserka2014-08-251-2/+3
|
* Pica/VertexShader: Fix a bug in the bitfield definitions and add the "negate" field for swizzlers.Tony Wasserka2014-08-251-11/+17
|
* Pica: Add debug utilities for dumping shaders.Tony Wasserka2014-08-251-0/+18
|
* Pica: Add vertex shader implementation.Tony Wasserka2014-08-121-0/+270