yuzu-android/src/video_core
wwylele 0f35755572 pica/command_processor: build geometry pipeline and run geometry shader
The geometry pipeline manages data transfer between VS, GS and primitive assembler. It has known four modes:
 - no GS mode: sends VS output directly to the primitive assembler (what citra currently does)
 - GS mode 0: sends VS output to GS input registers, and sends GS output to primitive assembler
 - GS mode 1: sends VS output to GS uniform registers, and sends GS output to primitive assembler. It also takes an index from the index buffer at the beginning of each primitive for determine the primitive size.
 - GS mode 2: similar to mode 1, but doesn't take the index and uses a fixed primitive size.
hwtest shows that immediate mode also supports GS (at least for mode 0), so the geometry pipeline gets refactored into its own class for supporting both drawing mode.
In the immediate mode, some games don't set the pipeline registers to a valid value until the first attribute input, so a geometry pipeline reset flag is set in `pipeline.vs_default_attributes_setup.index` trigger, and the actual pipeline reconfigure is triggered in the first attribute input.
In the normal drawing mode with index buffer, the vertex cache is a little bit modified to support the geometry pipeline. Instead of OutputVertex, it now holds AttributeBuffer, which is the input to the geometry pipeline. The AttributeBuffer->OutputVertex conversion is done inside the pipeline vertex handler. The actual hardware vertex cache is believed to be implemented in a similar way (because this is the only way that makes sense).
Both geometry pipeline and GS unit rely on states preservation across drawing call, so they are put into the global state. In the future, the other three vertex shader units should be also placed in the global state, and a scheduler should be implemented on top of the four units. Note that the current gs_unit already allows running VS on it in the future.
2017-08-19 10:13:20 +03:00
..
debug_utils Doxygen: Amend minor issues (#2593) 2017-02-26 17:58:51 -08:00
renderer_opengl Merge pull request #2816 from wwylele/proctex-lutlutlut 2017-07-22 23:03:48 -05:00
shader pica/shader/jit: implement SETEMIT and EMIT 2017-08-19 10:13:20 +03:00
swrasterizer SwRasterizer/Lighting: shorten file name 2017-08-03 13:51:22 +03:00
texture video_core: remove #pragma once in cpp file (#2570) 2017-02-15 00:16:50 -08:00
CMakeLists.txt pica/command_processor: build geometry pipeline and run geometry shader 2017-08-19 10:13:20 +03:00
command_processor.cpp pica/command_processor: build geometry pipeline and run geometry shader 2017-08-19 10:13:20 +03:00
command_processor.h Remove empty newlines in #include blocks. 2016-09-21 11:15:47 +09:00
geometry_pipeline.cpp pica/command_processor: build geometry pipeline and run geometry shader 2017-08-19 10:13:20 +03:00
geometry_pipeline.h pica/command_processor: build geometry pipeline and run geometry shader 2017-08-19 10:13:20 +03:00
gpu_debugger.h Add all services to the Service namespace 2016-12-11 00:07:27 +00:00
pica_state.h pica/command_processor: build geometry pipeline and run geometry shader 2017-08-19 10:13:20 +03:00
pica_types.h Remove empty newlines in #include blocks. 2016-09-21 11:15:47 +09:00
pica.cpp pica/command_processor: build geometry pipeline and run geometry shader 2017-08-19 10:13:20 +03:00
pica.h VideoCore: Move Regs to its own file 2017-02-04 13:59:12 -08:00
primitive_assembly.cpp pica/primitive_assembly: Handle winding for GS primitive 2017-08-19 10:13:20 +03:00
primitive_assembly.h pica/primitive_assembly: Handle winding for GS primitive 2017-08-19 10:13:20 +03:00
rasterizer_interface.h rasterizer: separate TextureCopy from DisplayTransfer 2016-09-29 10:01:34 +08:00
regs_framebuffer.h pica: correct bit field length for some registers 2017-05-16 19:24:06 +03:00
regs_lighting.h gl_rasterizer/lighting: fix LUT interpolation 2017-06-21 23:13:06 +03:00
regs_pipeline.h pica/regs: layout geometry shader configuration regs 2017-08-10 01:53:08 +03:00
regs_rasterizer.h pica: correct bit field length for some registers 2017-05-16 19:24:06 +03:00
regs_shader.h pica/regs: layout geometry shader configuration regs 2017-08-10 01:53:08 +03:00
regs_texturing.h Merge pull request #2743 from wwylele/wrap-fix 2017-06-13 21:28:12 -07:00
regs.cpp Pica/Regs: Use binary search to look up reg names 2017-02-09 00:04:24 -08:00
regs.h pica/swrasterizer: implement procedural texture 2017-05-20 13:50:50 +03:00
renderer_base.cpp VideoCore: Move software rasterizer files to sub-directory 2017-02-12 18:08:11 -08:00
renderer_base.h Remove empty newlines in #include blocks. 2016-09-21 11:15:47 +09:00
utils.h VideoCore: Run include-what-you-use and fix most includes. 2016-04-30 17:02:41 +01:00
vertex_loader.cpp VideoCore: Move Regs to its own file 2017-02-04 13:59:12 -08:00
vertex_loader.h VideoCore: Move Regs to its own file 2017-02-04 13:59:12 -08:00
video_core.cpp config: Add option for specifying screen resolution scale factor. 2017-01-07 03:23:22 -05:00
video_core.h Move screen size constants from video_core to core 2017-05-27 18:41:24 -07:00