Commit Graph

105 Commits (13d46f6820f231fe245eabdd95c7e70c5b3bb023)

Author SHA1 Message Date
Ricardo de Almeida Gonzaga 13d46f6820 Fix typos 9 years ago
Yuri Kunde Schlesner 84fbbe2629 Use negative priorities to avoid special-casing the self-include 9 years ago
Emmanuel Gil Peyrot ebdae19fd2 Remove empty newlines in #include blocks.
This makes clang-format useful on those.

Also add a bunch of forgotten transitive includes, which otherwise
prevented compilation.
9 years ago
Yuri Kunde Schlesner 396a8d91a4 Manually tweak source formatting and then re-run clang-format 9 years ago
Emmanuel Gil Peyrot dc8479928c Sources: Run clang-format on everything. 9 years ago
Jannik Vogel 57855a1701 Pica: Add fog state 9 years ago
bunnei 552018c50a Merge pull request #1812 from JayFoxRox/refactor-shader
Retrieve shader result from new OutputRegisters-type
9 years ago
bunnei a316fbb15a Merge pull request #1733 from lioncash/vert_loader
VertexLoader: Minor changes
9 years ago
Jannik Vogel ff0fa86b17 Retrieve shader result from new OutputRegisters-type 9 years ago
Jannik Vogel 6c6d99ca51 Move default_attributes into Pica state 9 years ago
Jannik Vogel ae7a82fa1c Turn ShaderSetup into struct 9 years ago
Lioncash 1357724cd9 vertex_loader: Add constructors to facilitate immediate and two-step initialization 9 years ago
Jannik Vogel 7a77b8356c Pica: Rename VertexLoaded breakpoint to VertexShaderInvocation 9 years ago
Emmanuel Gil Peyrot 691a42fe98 VideoCore: Run include-what-you-use and fix most includes. 9 years ago
bunnei 90243c56fb Merge pull request #1730 from hrydgard/vertex-loader
* Remove late accesses to attribute_config

* Refactor: Extract VertexLoader from command_processor.cpp.

Preparation for a similar concept to Dolphin or PPSSPP. These can be JIT-ed and cached.

* Move "&" to their proper place, add missing includes and make some properly relative.

* Don't keep base_address in the loader, it doesn't belong there (with it, the loader can't be cached).

* Optimize the vertex loader, nearly doubling its speed.

* Debugger fix

* Move and rename the MemoryAccesses class to MemoryAccessTracker.
9 years ago
Yuri Kunde Schlesner e3a8292495 Common: Remove section measurement from profiler (#1731)
This has been entirely superseded by MicroProfile. The rest of the code
can go when a simpler frametime/FPS meter is added to the GUI.
9 years ago
Henrik Rydgard a86d7cacc1 Move and rename the MemoryAccesses class to MemoryAccessTracker. 9 years ago
Henrik Rydgard 2403e86cbb Don't keep base_address in the loader, it doesn't belong there (with it, the loader can't be cached). 9 years ago
Henrik Rydgard 47ff008817 Refactor: Extract VertexLoader from command_processor.cpp.
Preparation for a similar concept to Dolphin or PPSSPP. These can be JIT-ed and cached.
9 years ago
Henrik Rydgard 0cf15f64ef Remove late accesses to attribute_config 9 years ago
bunnei ffcf7ecee9 shader: Remove unused 'state' argument from 'Setup' function. 9 years ago
Jannik Vogel ff7c798d86 Pica: Remove geometry dumper (PICA_DUMP_GEOMETRY) 9 years ago
Yuri Kunde Schlesner 81004211dd Pica: Improve accuracy of immediate-mode support
This partially fixes Etrian Odyssey IV.
9 years ago
bunnei 58852bedbf Merge pull request #1535 from JayFoxRox/fix-align
PICA: Alignment happens locally in vertex
9 years ago
Lioncash 63e956cc7a video_core: Don't cast away const 9 years ago
Jannik Vogel 7eef9ebc3b PICA: Alignment happens locally in vertex 9 years ago
Jannik Vogel a66c186e81 PICA: Align vertex attributes 9 years ago
Lioncash bf76afc68d renderer_base: Don't directly expose the rasterizer unique_ptr
There's no reason to allow direct access to the unique_ptr instance. Only
its contained pointer.
9 years ago
Dwayne Slater 6b775034dd Add immediate mode vertex submission 9 years ago
bunnei e04e6aabbc Merge pull request #1395 from ds84182/padding-attributes
Add support for padding vertex attributes
9 years ago
Dwayne Slater ed8072b48b Fix out of bounds array access when loading a component >= 12 9 years ago
Dwayne Slater 82fc075ff6 Add support for padding vertex attributes 9 years ago
MerryMage 6c71858c5c BitField: Make trivially copyable and remove assignment operator 9 years ago
bunnei a949fd5f25 pica_types: Replace float24/20/16 with a template class. 9 years ago
bunnei d171822dce command_processor: Add an assertion to ensure LUTs are not written past their boundaries. 9 years ago
bunnei 281bc90ad2 pica: Implement fragment lighting LUTs. 9 years ago
Lioncash 4966568076 command_processor: Get rid of variable shadowing 10 years ago
Yuri Kunde Schlesner 195fedccf0 VideoCore: Unify interface to OpenGL and SW rasterizers
This removes explicit checks sprinkled all over the codebase to instead
just have the SW rasterizer expose an implementation with no-ops for
most operations.
10 years ago
Subv 7a37dba75b GPU/Loaders: Log an error when a loader tries to load from a component beyond the available ones (12).
Related to #1170
10 years ago
Lioncash aec28ed91e video_core: Reorganize headers 10 years ago
aroulin ba998b85a1 video_core: Fix format specifiers warnings 10 years ago
bunnei e77dc4e9d2 Merge pull request #1059 from Subv/vertex_offset
GPU: Implemented register 0x22A PICA_REG_DRAW_VERTEX_OFFSET
10 years ago
Subv 12a11472f1 GPU: Implemented register 0x22A.
This is the equivalent of the "first" parameter in glDrawArrays, it tells the GPU the vertex index at which to start rendering.

Register 0x22A doesn't affect indexed rendering.
10 years ago
Yuri Kunde Schlesner 0fcabd2b11 Integrate the MicroProfile profiling library
This brings goodies such as a configurable user interface and
multi-threaded timeline view.
10 years ago
Tony Wasserka f5144e6c10 Merge pull request #997 from Lectem/cmdlist_full_debug
citra-qt: Improve pica command list widget (add mask, fix some issues)
10 years ago
Tony Wasserka 33ba604fd9 Introduce a shader tracer to allow inspection of input/output values for each processed instruction. 10 years ago
bunnei 3f69c2039d Shader: Define a common interface for running vertex shader programs. 10 years ago
bunnei 18527b9e21 Shader: Move shader code to its own subdirectory, "shader". 10 years ago
bunnei 642b9b5030 GPU: Refactor "VertexShader" namespace to "Shader".
- Also renames "vertex_shader.*" to "shader_interpreter.*"
10 years ago
Yuri Kunde Schlesner a96502edd3 Videocore: Implement simple vertex caching
This gives a ~2/3 reduction in the amount of vertices that need to be
processed through the vertex loaders and the vertex shader, yielding a
good speedup.
10 years ago