aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2017-08-21GPU/Warnings: Explicitly cast the screen refresh ticks to u64.Subv
2017-08-21Warnings: Add UNREACHABLE macros to switches that contemplate all possible ↵Subv
values.
2017-08-21HLE/Applets: Fixed some conversion warnings when creating the framebuffer ↵Subv
shared memory objects.
2017-08-21CPU/Dynarmic: Fixed a warning when incrementing the number of ticks in ↵Subv
ExecuteInstructions.
2017-08-21Dyncom: Use size_t instead of int to store the instruction offsets in the ↵Subv
instruction cache. Fixes a few warnings.
2017-08-21Dyncom: Fixed a conversion warning when decoding thumb instructions.Subv
2017-08-21swrasterizer: remove invalid TODOwwylele
This function is called in clipping, before the pespective divide, and is not used in later rasterization. Thus it doesn't need perspective correction.
2017-08-21swrasterizer/clipper: remove tested TODOwwylele
hwtested. Current implementation is the correct behavior
2017-08-21gl_shader_gen: simplify and clarify the depth transformation between vertex ↵wwylele
shader and fragment shader
2017-08-21gl_rasterizer: add clipping plane z<=0 defined in PICAwwylele
2017-08-20Merge pull request #2872 from wwylele/sw-geo-factorYuri Kunde Schlesner
SwRasterizer/Lighting: implement geometric factor
2017-08-19Merge pull request #2861 from wwylele/motion-refactorJames Rowe
Refactor MotionEmu into a InputDevice
2017-08-20HID: fix a comment and a warningwwylele
2017-08-19Merge pull request #2871 from wwylele/sw-spotlightJames Rowe
SwRasterizer/Lighting: implement spot light
2017-08-19Added missing parts in libnetwork (#2838)B3n30
* Network: Set and send the game information over enet Added Callbacks for RoomMember and GetMemberList to Room in preparation for web_services.
2017-08-19pica/command_processor: build geometry pipeline and run geometry shaderwwylele
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-19pica/shader/jit: implement SETEMIT and EMITwwylele
2017-08-19pica/primitive_assembly: Handle winding for GS primitivewwylele
hwtest shows that, although GS always emit a group of three vertices as one primitive, it still respects to the topology type, as if the three vertices are input into the primitive assembler independently and sequentially. It is also shown that the winding flag in SETEMIT only takes effect for Shader topology type, which is believed to be the actual difference between List and Shader (hence removed the TODO). However, only Shader topology type is observed in official games when GS is in use, so the other mode seems to be just unintended usage.
2017-08-19correct constnesswwylele
2017-08-19pica/shader/interpreter: implement SETEMIT and EMITwwylele
2017-08-19pica/shader: extend UnitState for GSwwylele
Among four shader units in pica, a special unit can be configured to run both VS and GS program. GSUnitState represents this unit, which extends UnitState (which represents the other three normal units) with extra state for primitive emitting. It uses lots of raw pointers to represent internal structure in order to keep it standard layout type for JIT to access. This unit doesn't handle triangle winding (inverting) itself; instead, it calls a WindingSetter handler. This will be explained in the following commits
2017-08-19motion_emu: no need to include thread in headerwwylele
2017-08-15Merge pull request #2881 from MerryMage/dsp-firm-checkYuri Kunde Schlesner
dsp_dsp: Remove size assertion in LoadComponent
2017-08-15dsp_dsp: Remove size assertion in LoadComponentMerryMage
2017-08-14Fix Spelling/English mistakesDave Leaver
2017-08-12Merge pull request #2843 from Subv/applet_slotsSebastian Valle
Services/APT: Use an array to hold data about the 4 possible concurrent applet types (Application, Library, HomeMenu, System)
2017-08-11gl_shader_gen: don't call SampleTexture when bump map is not usedwwylele
2017-08-11move MotionEmu from core/frontend to input_common as a InputDevicewwylele
2017-08-11HID: use MotionDevice for Accelerometer and Gyroscopewwylele
2017-08-11Merge pull request #2874 from danzel/spelling-1Weiyi Wang
Fix some spelling mistakes
2017-08-11Fix some spelling mistakesdanzel
2017-08-11SwRasterizer/Lighting: implement spot lightwwylele
2017-08-11SwRasterizer/Lighting: implement geometric factorwwylele
2017-08-10Merge pull request #2863 from wwylele/pad-state-zeroWeiyi Wang
HID: zero unused PadState bits
2017-08-10HID: zero unused PadState bitswwylele
2017-08-10SwRasterizer/Lighting: use make_tuple instead of constructorwwylele
implicit tuple constructor is a c++17 thing, which is not supported by some not-so-old libraries. Play safe for now
2017-08-10pica/regs: layout geometry shader configuration regswwylele
All the register meanings are derived from ctrulib (3dbrew is outdated for most of them)
2017-08-09Merge pull request #2862 from j-selby/update-cryptoppbunnei
Update CryptoPP (byte ambiguity)
2017-08-09Merge pull request #2822 from wwylele/sw_lighting-2Weiyi Wang
Implement fragment lighting in the sw renderer (take 2)
2017-08-09Merge pull request #2856 from wwylele/shader-shareWeiyi Wang
pica: upload shared shader code & swizzle to both unit
2017-08-09Service/dlp: Update function tables according 3dbrewmailwl
2017-08-08Update cryptoppJames
2017-08-07Services/APT: Use the AppletAttributes union directly when dealing with ↵Subv
applet attrs.
2017-08-07Services/APT: Use an array to hold data about the 4 possible concurrent ↵Subv
applet types (Application, Library, HomeMenu, System). This gives each applet type its own set of events as per the real NS module.
2017-08-07pica: upload shared shader code to both unitwwylele
2017-08-04Quickfix typo in OpenGL 3.3 error messageAndrea Pascal
User pointed out on the Discord server that "nothave" is erroneously concatenated. Added a space to prevent it.
2017-08-03telemetry: Add field for OsPlatform.bunnei
2017-08-03telemetry: Add field for BuildName.bunnei
2017-08-03telemetry: Add field for RequiresSharedFont.bunnei
2017-08-03telemetry_session: Log BuildDate and ProgramName fields.bunnei