Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2019-06-21 | video_core: Use un-shifted block sizes to avoid integer divisions | ReinUsesLisp | 2 | -8/+5 | |
Instead of storing all block width, height and depths in their shifted form: block_width = 1U << block_shift; Store them like they are provided by the emulated hardware (their block_shift form). This way we can avoid doing the costly Common::AlignUp operation to align texture sizes and drop CPU integer divisions with bitwise logic (defined in Common::AlignBits). | |||||
2019-06-08 | kepler_compute: Use std::array for cbuf info | ReinUsesLisp | 1 | -2/+3 | |
2019-06-08 | kepler_compute: Fix block_dim_x encoding | ReinUsesLisp | 1 | -1/+1 | |
2019-06-08 | video_core/engines: Move ConstBufferInfo out of Maxwell3D | ReinUsesLisp | 3 | -10/+19 | |
2019-06-04 | shader_bytecode: Mark EXIT as flow instruction | Fernando Sahmkow | 1 | -1/+1 | |
2019-05-21 | shader/memory: Implement ST (generic memory) | ReinUsesLisp | 1 | -0/+1 | |
2019-05-21 | shader/memory: Implement LD (generic memory) | ReinUsesLisp | 1 | -4/+15 | |
2019-05-14 | maxwell_3d: reduce sevirity of different component formats assert. | Fernando Sahmkow | 1 | -1/+1 | |
This was reduced due to happening on most games and at such constant rate that it affected performance heavily for the end user. In general, we are well aware of the assert and an implementation is already planned. | |||||
2019-05-14 | video_core/engines/engine_upload: Amend constructor initializer list order | Lioncash | 1 | -1/+1 | |
Silences a -Wreorder warning. | |||||
2019-05-14 | video_core/engines/engine_upload: Default destructor in the cpp file | Lioncash | 2 | -1/+3 | |
Avoids inlining destruction logic where applicable, and also makes forward declarations not cause unexpected compilation errors depending on where the State class is used. | |||||
2019-05-14 | video_core/engines/engine_upload: Remove unnecessary const on parameters in function declarations | Lioncash | 1 | -2/+2 | |
These only apply in the definition of the function. They can be omitted from the declaration. | |||||
2019-05-14 | video_core/engines/engine_upload: Remove unnecessary includes | Lioncash | 2 | -2/+2 | |
2019-05-14 | video_core/engines/maxwell3d: Get rid of three magic values in CallMethod() | Lioncash | 1 | -3/+3 | |
We can use the named constant instead of using 32 directly. | |||||
2019-05-14 | video_core/engines/maxwell_3d: Simplify for loops into ranged for loops within InitializeRegisterDefaults() | Lioncash | 1 | -15/+15 | |
Lessens the amount of code that needs to be read, and gets rid of the need to introduce an indexing variable. Instead, we just operate on the objects directly. | |||||
2019-05-14 | video_core/engines/maxwell_3d: Add is_trivially_copyable_v check for Regs | Lioncash | 1 | -0/+2 | |
std::memset is used to clear the entire register structure, which requires that the Regs struct be trivially copyable (otherwise undefined behavior is invoked). This prevents the case where a non-trivial type is potentially added to the struct. | |||||
2019-05-03 | shader_ir/other: Implement IPA.IDX | ReinUsesLisp | 1 | -0/+1 | |
2019-05-03 | shader_ir/memory: Implement physical input attributes | ReinUsesLisp | 1 | -0/+4 | |
2019-05-03 | gl_shader_decompiler: Declare all possible varyings on physical attribute usage | ReinUsesLisp | 1 | -0/+1 | |
2019-05-03 | shader_bytecode: Add AL2P decoding | ReinUsesLisp | 1 | -2/+15 | |
2019-05-01 | Refactors and name corrections. | Fernando Sahmkow | 6 | -35/+35 | |
2019-04-23 | Fixes and Corrections to DMA Engine | Fernando Sahmkow | 2 | -37/+57 | |
2019-04-23 | Add Swizzle Parameters to the DMA engine | Fernando Sahmkow | 2 | -2/+27 | |
2019-04-23 | Add Documentation Headers to all the GPU Engines | Fernando Sahmkow | 5 | -0/+29 | |
2019-04-23 | Corrections and styling | Fernando Sahmkow | 5 | -6/+9 | |
2019-04-23 | Implement Maxwell3D Data Upload | Fernando Sahmkow | 2 | -3/+32 | |
2019-04-23 | Introduce skeleton of the GPU Compute Engine. | Fernando Sahmkow | 2 | -7/+201 | |
2019-04-23 | Revamp Kepler Memory to use a subegine to manage uploads | Fernando Sahmkow | 4 | -92/+131 | |
2019-04-18 | video_core: Silent -Wswitch warnings | ReinUsesLisp | 1 | -2/+3 | |
2019-04-16 | Use ReadBlockUnsafe on TIC and TSC reading | Fernando Sahmkow | 1 | -2/+2 | |
Use ReadBlockUnsafe on TIC and TSC reading as memory is never flushed from host GPU there. | |||||
2019-04-16 | Use WriteBlock and ReadBlock. | Fernando Sahmkow | 1 | -10/+6 | |
2019-04-16 | Implement Block Linear copies in Kepler Memory. | Fernando Sahmkow | 1 | -5/+14 | |
2019-04-16 | Do some corrections in conversion shader instructions. | Fernando Sahmkow | 1 | -7/+20 | |
Corrects encodings for I2F, F2F, I2I and F2I Implements Immediate variants of all four conversion types. Add assertions to unimplemented stuffs. | |||||
2019-04-15 | Correct Kepler Memory on Linear Pushes. | Fernando Sahmkow | 2 | -16/+48 | |
2019-04-14 | shader_ir: Implement STG, keep track of global memory usage and flush | ReinUsesLisp | 1 | -0/+6 | |
2019-04-08 | Correct LOP_IMN encoding | Fernando Sahmkow | 1 | -1/+1 | |
2019-04-08 | Correct XMAD mode, psl and high_b on different encodings. | Fernando Sahmkow | 1 | -0/+3 | |
2019-04-08 | Move ConstBufferAccessor to Maxwell3d, correct mistakes and clang format. | Fernando Sahmkow | 3 | -3/+13 | |
2019-04-08 | Implement TXQ_B | Fernando Sahmkow | 1 | -0/+2 | |
2019-04-08 | Corrections to TEX_B | Fernando Sahmkow | 1 | -0/+32 | |
2019-04-08 | Implement Bindless Handling on SetupTexture | Fernando Sahmkow | 2 | -13/+22 | |
2019-04-08 | Implement Bindless Samplers and TEX_B in the IR. | Fernando Sahmkow | 1 | -0/+2 | |
2019-04-06 | maxwell_3d: Reduce severity of ProcessSyncPoint | ReinUsesLisp | 1 | -2/+2 | |
2019-04-06 | Implement SyncPoint Register in the GPU. | Fernando Sahmkow | 2 | -1/+27 | |
2019-04-06 | video_core/engines: Make memory manager members private | Lioncash | 9 | -13/+14 | |
These aren't used externally by anything, so they can be made private data members. | |||||
2019-04-06 | video_core/engines: Remove unnecessary inclusions where applicable | Lioncash | 9 | -9/+24 | |
Replaces header inclusions with forward declarations where applicable and also removes unused headers within the cpp file. This reduces a few more dependencies on core/memory.h | |||||
2019-04-03 | shader_ir/memory: Reduce severity of LD_L cache management and log it | ReinUsesLisp | 1 | -0/+7 | |
2019-04-03 | shader_ir/memory: Reduce severity of ST_L cache management and log it | ReinUsesLisp | 1 | -1/+8 | |
2019-03-21 | maxwell_dma: Check for valid source in destination before copy. | bunnei | 1 | -0/+10 | |
- Avoid a crash in Octopath Traveler. | |||||
2019-03-21 | gpu: Rewrite virtual memory manager using PageTable. | bunnei | 2 | -5/+5 | |
2019-03-16 | video_core: Refactor to use MemoryManager interface for all memory access. | bunnei | 3 | -55/+29 | |
# Conflicts: # src/video_core/engines/kepler_memory.cpp # src/video_core/engines/maxwell_3d.cpp # src/video_core/morton.cpp # src/video_core/morton.h # src/video_core/renderer_opengl/gl_global_cache.cpp # src/video_core/renderer_opengl/gl_global_cache.h # src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | |||||
2019-03-15 | gpu: Use host address for caching instead of guest address. | bunnei | 3 | -4/+12 | |
2019-03-07 | gpu: Move command processing to another thread. | bunnei | 2 | -3/+3 | |
2019-03-06 | video_core/engines: Remove unnecessary includes | Lioncash | 8 | -10/+9 | |
Removes a few unnecessary dependencies on core-related machinery, such as the core.h and memory.h, which reduces the amount of rebuilding necessary if those files change. This also uncovered some indirect dependencies within other source files. This also fixes those. | |||||
2019-02-27 | common/math_util: Move contents into the Common namespace | Lioncash | 2 | -5/+5 | |
These types are within the common library, so they should be within the Common namespace. | |||||
2019-02-26 | maxwell_3d: Use std::bitset to manage dirty flags | ReinUsesLisp | 2 | -41/+40 | |
2019-02-26 | shader/decode: Remove extras from MetaTexture | ReinUsesLisp | 1 | -4/+4 | |
2019-02-26 | shader/decode: Split memory and texture instructions decoding | ReinUsesLisp | 1 | -8/+9 | |
2019-02-16 | video_core: Remove usages of System::GetInstance() within the engines | Lioncash | 6 | -16/+39 | |
Avoids the use of the global accessor in favor of explicitly making the system a dependency within the interface. | |||||
2019-02-16 | core_timing: Convert core timing into a class | Lioncash | 1 | -1/+1 | |
Gets rid of the largest set of mutable global state within the core. This also paves a way for eliminating usages of GetInstance() on the System class as a follow-up. Note that no behavioral changes have been made, and this simply extracts the functionality into a class. This also has the benefit of making dependencies on the core timing functionality explicit within the relevant interfaces. | |||||
2019-02-14 | shader_decompiler: Improve Accuracy of Attribute Interpolation. | Fernando Sahmkow | 2 | -6/+41 | |
2019-02-12 | core_timing: Rename CoreTiming namespace to Core::Timing | Lioncash | 1 | -1/+1 | |
Places all of the timing-related functionality under the existing Core namespace to keep things consistent, rather than having the timing utilities sitting in its own completely separate namespace. | |||||
2019-02-11 | Corrected F2I None mode to RoundEven. | Fernando Sahmkow | 1 | -1/+1 | |
2019-02-10 | kepler_compute: Fixup assert and rename engines | ReinUsesLisp | 3 | -43/+50 | |
When I originally added the compute assert I used the wrong documentation. This addresses that. The dispatch register was tested with homebrew against hardware and is triggered by some games (e.g. Super Mario Odyssey). What exactly is missing to get a valid program bound by this engine requires more investigation. | |||||
2019-02-07 | gl_rasterizer: Implement a more accurate fermi 2D copy. | bunnei | 2 | -52/+39 | |
- This is a blit, use the blit registers. | |||||
2019-02-04 | Update src/video_core/engines/shader_bytecode.h | Mat M | 1 | -1/+1 | |
Co-Authored-By: FernandoS27 <fsahmkow27@gmail.com> | |||||
2019-02-03 | Fix TXQ not using the component mask. | Fernando Sahmkow | 1 | -0/+4 | |
2019-02-03 | video_core: Assert on invalid GPU to CPU address queries | ReinUsesLisp | 4 | -41/+54 | |
2019-02-03 | maxwell_3d: Allow sampler handles with TSC id zero | ReinUsesLisp | 1 | -10/+6 | |
2019-02-03 | maxwell_3d: Allow texture handles with TIC id zero | ReinUsesLisp | 1 | -16/+7 | |
Also remove "enabled" field from Tegra::Texture::FullTextureInfo because it would become unused. | |||||
2019-02-03 | shader_bytecode: Rename BytesN enums to BitsN | ReinUsesLisp | 1 | -3/+3 | |
2019-01-30 | shader_ir: Unify constant buffer offset values | ReinUsesLisp | 1 | -0/+8 | |
Constant buffer values on the shader IR were using different offsets if the access direct or indirect. cbuf34 has a non-multiplied offset while cbuf36 does. On shader decoding this commit multiplies it by four on cbuf34 queries. | |||||
2019-01-30 | shader_decode: Implement LDG and basic cbuf tracking | ReinUsesLisp | 1 | -0/+8 | |
2019-01-22 | maxwell_3d: Set rt_separate_frag_data to 1 by default | ReinUsesLisp | 1 | -0/+5 | |
Commercial games assume that this value is 1 but they never set it. On the other hand nouveau manually sets this register. On ConfigureFramebuffers we were asserting for what we are actually implementing (according to envytools). | |||||
2019-01-15 | shader_decode: Implement VMAD and VSETP | ReinUsesLisp | 1 | -2/+3 | |
2019-01-15 | shader_decode: Implement HFMA2 | ReinUsesLisp | 1 | -0/+1 | |
2019-01-15 | shader_decode: Fixup clang-format | ReinUsesLisp | 1 | -1/+1 | |
2019-01-15 | shader_ir: Initial implementation | ReinUsesLisp | 1 | -0/+4 | |
2019-01-15 | shader_bytecode: Fixup encoding | ReinUsesLisp | 1 | -1/+1 | |
2019-01-15 | shader_header: Make local memory size getter constant | ReinUsesLisp | 1 | -1/+1 | |
2019-01-07 | gl_rasterizer_cache: Use dirty flags for the depth buffer | ReinUsesLisp | 2 | -0/+12 | |
2019-01-07 | gl_rasterizer_cache: Use dirty flags for color buffers | ReinUsesLisp | 2 | -0/+12 | |
2019-01-07 | gl_shader_cache: Use dirty flags for shaders | ReinUsesLisp | 2 | -0/+11 | |
2018-12-26 | shader_bytecode: Fixup TEXS.F16 encoding | ReinUsesLisp | 1 | -1/+1 | |
2018-12-19 | Fixed uninitialized memory due to missing returns in canary | David Marcec | 2 | -0/+4 | |
Functions which are suppose to crash on non canary builds usually don't return anything which lead to uninitialized memory being used. | |||||
2018-12-18 | shader_bytecode: Fixup half float's operator B encoding | ReinUsesLisp | 1 | -1/+1 | |
2018-12-17 | Implement postfactor multiplication/division for fmul instructions | heapo | 1 | -1/+1 | |
2018-12-05 | gl_shader_decompiler: Implement TEXS.F16 | ReinUsesLisp | 1 | -1/+2 | |
2018-11-29 | gl_rasterizer: Enable clip distances when set in register and in shader | ReinUsesLisp | 1 | -0/+1 | |
2018-11-27 | gpu: Rewrite GPU command list processing with DmaPusher class. | bunnei | 10 | -47/+52 | |
- More accurate impl., fixes Undertale (among other games). | |||||
2018-11-27 | Implement depth clamp | Rodolfo Bogado | 1 | -1/+9 | |
2018-11-27 | Add support for Clip Distance enabled register | Rodolfo Bogado | 1 | -1/+15 | |
2018-11-27 | GPU States: Implement Polygon Offset. This is used in SMO all the time. (#1784) | Marcos | 1 | -4/+26 | |
* GPU States: Implement Polygon Offset. This is used in SMO all the time. * Clang Format fixes. * Initialize polygon_offset in the constructor. | |||||
2018-11-26 | Implemented Tile Width Spacing | FernandoS27 | 1 | -2/+2 | |
2018-11-25 | gl_shader_decompiler: Implement S2R's Y_DIRECTION | ReinUsesLisp | 1 | -0/+1 | |
2018-11-24 | Add support for viewport_transfom_enable register | Rodolfo Bogado | 1 | -1/+9 | |
2018-11-24 | Add support for clear_flags register | Rodolfo Bogado | 1 | -1/+11 | |
2018-11-23 | Added predicate comparison LessEqualWithNan (#1736) | Hexagon12 | 1 | -0/+1 | |
* Added predicate comparison LessEqualWithNan * oops * Clang fix | |||||
2018-11-23 | gl_shader_decompiler: Implement clip distances | ReinUsesLisp | 2 | -1/+12 | |
2018-11-22 | maxwell_3d: Implement alternate blend equations. | bunnei | 1 | -0/+7 | |
- Used by Undertale. | |||||
2018-11-22 | gl_shader_decompiler: Rename control codes to condition codes | ReinUsesLisp | 1 | -4/+3 | |
2018-11-21 | gl_shader_decompiler: Implement BFI_IMM_R | ReinUsesLisp | 1 | -0/+3 | |
2018-11-21 | gl_shader_decompiler: Implement R2P_IMM | ReinUsesLisp | 1 | -0/+14 | |
2018-11-21 | maxwell_3d: Initialize rasterizer color mask registers as enabled. | bunnei | 1 | -0/+9 | |
- Fixes rendering regression with Sonic Mania. | |||||
2018-11-17 | small fix for alphaToOne bit location | Rodolfo Bogado | 1 | -2/+2 | |
2018-11-17 | fix for gcc compilation | Rodolfo Bogado | 1 | -60/+61 | |
2018-11-17 | add AlphaToCoverage and AlphaToOne | Rodolfo Bogado | 1 | -1/+7 | |
2018-11-17 | add support for fragment_color_clamp | Rodolfo Bogado | 1 | -1/+4 | |
2018-11-17 | set default value for point size register | Rodolfo Bogado | 1 | -0/+3 | |
2018-11-17 | fix viewport and scissor behavior | Rodolfo Bogado | 2 | -12/+18 | |
2018-11-17 | gl_rasterizer: Skip VB upload if the state is clean. | Markus Wick | 5 | -0/+34 | |
2018-11-13 | gl_rasterizer: Minor cleanup | Frederic L | 1 | -4/+2 | |
Minor code cleanup from unaddressed feedback in #1654 | |||||
2018-11-11 | Try to fix problems with stencil test in some games, relax translation to opengl enums to avoid crashing and only generate logs of the errors. | Rodolfo Bogado | 2 | -0/+21 | |
2018-11-06 | gl_rasterizer: Skip VAO binding if the state is clean. | Markus Wick | 2 | -0/+14 | |
2018-11-05 | Add support to color mask to avoid issues in blending caused by wrong values in the alpha channel in some render targets. | Rodolfo Bogado | 1 | -3/+20 | |
2018-11-05 | Implement multi-target viewports and blending | Rodolfo Bogado | 2 | -2/+28 | |
2018-11-01 | maxwell_3d: Restructure macro upload to use a single macro code memory. | bunnei | 2 | -12/+39 | |
- Fixes an issue where macros could be skipped. - Fixes rendering of distant objects in Super Mario Odyssey. | |||||
2018-10-30 | Assert Control Codes Generation | FernandoS27 | 1 | -1/+5 | |
2018-10-30 | global: Use std::optional instead of boost::optional (#1578) | Frederic L | 2 | -9/+9 | |
* get rid of boost::optional * Remove optional references * Use std::reference_wrapper for optional references * Fix clang format * Fix clang format part 2 * Adressed feedback * Fix clang format and MacOS build | |||||
2018-10-29 | Assert Control Flow Instructions using Control Codes | FernandoS27 | 1 | -1/+2 | |
2018-10-28 | Implement sRGB Support, including workarounds for nvidia driver issues and QT sRGB support | Rodolfo Bogado | 1 | -1/+6 | |
2018-10-26 | gl_rasterizer: Implement primitive restart. | bunnei | 1 | -1/+9 | |
2018-10-26 | maxwell_3d: Add code for initializing register defaults. | bunnei | 2 | -1/+21 | |
2018-10-24 | Implemented LD_L and ST_L | FernandoS27 | 2 | -0/+36 | |
2018-10-24 | maxwell_3d: Remove unused variable within ProcessQueryGet() | Lioncash | 1 | -1/+0 | |
2018-10-23 | Implement PointSize | FernandoS27 | 1 | -0/+1 | |
2018-10-23 | gl_shader_decompiler: Implement VSETP | ReinUsesLisp | 1 | -0/+2 | |
2018-10-23 | gl_shader_decompiler: Abstract VMAD into a video subset | ReinUsesLisp | 1 | -3/+13 | |
2018-10-23 | Added Saturation to FMUL32I | FernandoS27 | 1 | -0/+4 | |
2018-10-22 | Implemented Alpha Testing | FernandoS27 | 1 | -1/+3 | |
2018-10-22 | Fixed FSETP and FSET | FernandoS27 | 1 | -2/+0 | |
2018-10-20 | engines/maxwell_*: Use nested namespace specifiers where applicable | Lioncash | 3 | -12/+6 | |
These three source files are the only ones within the engines directory that don't use nested namespaces. We may as well change these over to keep things consistent. | |||||
2018-10-20 | maxwell_dma: Make variables const where applicable within HandleCopy() | Lioncash | 1 | -3/+3 | |
These are never modified, so we can make that assumption explicit. | |||||
2018-10-20 | maxwell_dma: Make FlushAndInvalidate's size parameter a u64 | Lioncash | 1 | -1/+1 | |
This prevents truncation warnings at the lambda's usage sites. | |||||
2018-10-20 | maxwell_dma: Remove unused variables in HandleCopy() | Lioncash | 1 | -3/+0 | |
These pointer variables are never used, so we can get rid of them. | |||||
2018-10-19 | GPU: Improved implementation of maxwell DMA (Subv). | bunnei | 2 | -16/+65 | |
2018-10-19 | GPU: Invalidate destination address of kepler_memory writes. | bunnei | 2 | -2/+16 | |
2018-10-19 | fermi_2d: Add support for more accurate surface copies. | bunnei | 1 | -3/+6 | |
2018-10-18 | gl_shader_decompiler: Implement PBK and BRK | ReinUsesLisp | 1 | -3/+7 | |
2018-10-18 | Implement 3D Textures | FernandoS27 | 1 | -1/+4 | |
2018-10-15 | shader_bytecode: Add Control Code enum 0xf | ReinUsesLisp | 1 | -1/+1 | |
Control Code 0xf means to unconditionally execute the instruction. This value is passed to most BRA, EXIT and SYNC instructions (among others) but this may not always be the case. | |||||
2018-10-15 | gl_shader_decompiler: Implement HSET2_R | ReinUsesLisp | 1 | -0/+18 | |
2018-10-15 | gl_shader_decompiler: Implement HSETP2_R | ReinUsesLisp | 1 | -0/+20 | |
2018-10-15 | gl_shader_decompiler: Implement HFMA2 instructions | ReinUsesLisp | 1 | -0/+32 | |
2018-10-15 | gl_shader_decompiler: Implement HADD2_IMM and HMUL2_IMM | ReinUsesLisp | 1 | -0/+30 | |
2018-10-15 | gl_shader_decompiler: Implement non-immediate HADD2 and HMUL2 instructions | ReinUsesLisp | 1 | -0/+25 | |
2018-10-15 | gl_shader_decompiler: Setup base for half float unpacking and setting | ReinUsesLisp | 1 | -0/+20 | |
2018-10-13 | Propagate depth and depth_block on modules using decoders | FernandoS27 | 3 | -10/+18 | |
2018-10-11 | gl_shader_decompiler: Implement VMAD | ReinUsesLisp | 1 | -0/+36 | |
2018-10-10 | Add memory Layout to Render Targets and Depth Buffers | FernandoS27 | 1 | -2/+14 | |
2018-10-10 | Fixed block height settings for RenderTargets and Depth Buffers, and added block width and block depth | FernandoS27 | 2 | -4/+22 | |
2018-10-09 | Assert Scissor tests | FernandoS27 | 1 | -1/+16 | |
2018-10-07 | gl_shader_decompiler: Implement geometry shaders | ReinUsesLisp | 1 | -0/+112 | |
2018-10-06 | fermi_2d: Implement simple copies with AccelerateSurfaceCopy. | bunnei | 2 | -23/+35 | |
2018-10-04 | gl_rasterizer: Implement quads topology | ReinUsesLisp | 1 | -0/+6 | |
2018-09-28 | video_core: Implement point_size and add point state sync | ReinUsesLisp | 1 | -1/+6 | |
2018-09-28 | gl_state: Pack sampler bindings into a single ARB_multi_bind | ReinUsesLisp | 1 | -0/+1 | |
2018-09-26 | video_core: Add asserts for CS, TFB and alpha testing | ReinUsesLisp | 3 | -3/+64 | |
Add asserts for compute shader dispatching, transform feedback being enabled and alpha testing. These have in common that they'll probably break rendering without logging. | |||||
2018-09-21 | shader_bytecode: Lay out the Ipa-related enums better | Lioncash | 1 | -2/+12 | |
This is more consistent with the surrounding enums. | |||||
2018-09-21 | shader_bytecode: Make operator== and operator!= of IpaMode const qualified | Lioncash | 1 | -6/+7 | |
These don't affect the state of the struct and can be const member functions. | |||||
2018-09-17 | Implemented I2I.CC on the NEU control code, used by SMO | FernandoS27 | 1 | -1/+1 | |
2018-09-17 | Implemented CSETP | FernandoS27 | 1 | -0/+11 | |
2018-09-17 | Implemented Control Codes | FernandoS27 | 1 | -0/+36 | |
2018-09-17 | Added texture misc modes to texture instructions | FernandoS27 | 1 | -1/+147 | |
2018-09-15 | Shaders: Implemented multiple-word loads and stores to and from attribute memory. | Subv | 1 | -1/+9 | |
This seems to be an optimization performed by nouveau. | |||||
2018-09-15 | Port #4182 from Citra: "Prefix all size_t with std::" | fearlessTobi | 6 | -32/+33 | |
2018-09-12 | GPU: Basic implementation of the Kepler Inline Memory engine (p2mf). | Subv | 2 | -0/+135 | |
This engine writes data from a FIFO register into the configured address. | |||||
2018-09-12 | Implemented Texture Processing Modes | FernandoS27 | 1 | -0/+10 | |
2018-09-11 | Implemented encodings for LEA and PSET | FernandoS27 | 1 | -0/+64 | |
2018-09-11 | Replace old FragmentHeader for the new Header | FernandoS27 | 1 | -9/+15 | |
2018-09-11 | Implemented (Partialy) Shader Header | FernandoS27 | 1 | -0/+97 | |
2018-09-10 | rasterizer: Drop unused handler. | Markus Wick | 1 | -2/+0 | |
This virtual function is called in a very hot spot, and it does nothing. If this kind of feature is required, please be more specific and add callbacks in the switch statement within Maxwell3D::WriteReg. There is no point in having another switch statement within the rasterizer. | |||||
2018-09-10 | gl_rasterizer: Implement multiple color attachments. | bunnei | 1 | -1/+21 | |
2018-09-10 | Implemented TMML | FernandoS27 | 1 | -5/+19 | |
2018-09-09 | Implemented TXQ dimension query type, used by SMO. | FernandoS27 | 1 | -1/+16 | |
2018-09-09 | Change name of TEXQ to TXQ, in order to match NVIDIA's naming | FernandoS27 | 1 | -2/+2 | |
2018-09-08 | GPU/DMA: Partially implemented the 'enable_2d' bit in the DMA engine. | Subv | 1 | -2/+10 | |
When not set, this tells the GPU to only use the X size when performing a DMA copy. This is only implemented for linear->linear and tiled->tiled copies. Conversion copies still retain the assert. This bit is unset by some games for various purposes, and by nouveau when copying the vertex buffers. | |||||
2018-09-08 | maxwell_3d: Remove assert that no longer applies. | bunnei | 1 | -4/+0 | |
2018-09-06 | Implemented IPA Properly | FernandoS27 | 1 | -0/+12 | |
2018-09-05 | gl_rasterizer: Implement a VAO cache. | Markus Wick | 1 | -2/+7 | |
This patch caches VAO objects instead of re-emiting all pointers per draw call. Configuring this pointers is known as a fast task, but it yields too many GL calls. So for better performance, just bind the VAO instead of 16 pointers. | |||||
2018-09-01 | Removed saturate assert | David Marcec | 1 | -1/+0 | |
Unneeded as we already implement it | |||||
2018-09-01 | Removed saturate assert | David Marcec | 1 | -1/+0 | |
Saturate already implemented | |||||
2018-09-01 | Added FMUL asserts | David Marcec | 1 | -0/+5 | |
2018-09-01 | Added FFMA asserts | David Marcec | 1 | -0/+4 | |
2018-09-01 | Added assert for TEXS nodep | David Marcec | 1 | -0/+1 | |
2018-09-01 | Added better asserts to IPA, Renamed IPA modes to match mesa | David Marcec | 1 | -2/+5 | |
IpaMode is changed to IpaInterpMode IpaMode is suppose to be 2 bits not 3 Added IpaSampleMode Added Saturate Renamed modes based on https://github.com/mesa3d/mesa/blob/d27c7918916cdc8092959124955f887592e37d72/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp#L2530 | |||||
2018-09-01 | maxwell_3d: Use CoreTiming for query timestamp | Zach Hilman | 1 | -2/+3 | |
2018-08-31 | core/core: Replace includes with forward declarations where applicable | Lioncash | 1 | -2/+1 | |
The follow-up to e2457418dae19b889b2ad85255bb95d4cd0e4bff, which replaces most of the includes in the core header with forward declarations. This makes it so that if any of the headers the core header was previously including change, then no one will need to rebuild the bulk of the core, due to core.h being quite a prevalent inclusion. This should make turnaround for changes much faster for developers. | |||||
2018-08-31 | Added predicate comparison GreaterEqualWithNan | Hexagon12 | 1 | -0/+1 | |
2018-08-31 | gl_shader_decompiler: Implement POPC (#1203) | Laku | 1 | -0/+10 | |
* Implement POPC * implement invert | |||||
2018-08-29 | Shaders: Implemented IADD3 | tech4me | 1 | -1/+23 | |
2018-08-29 | gl_shader_decompiler: Improve IPA for Pass mode with Position attribute. | bunnei | 1 | -0/+6 | |
2018-08-25 | maxwell3d: Move FinishedPrimitiveBatch event after AcceleratedDrawBatch() | Lioncash | 1 | -4/+4 | |
The start and finish events should likely not be right after one another like this, otherwise the batch will appear to complete immediately | |||||
2018-08-24 | fix SEL_IMM bitstring | Laku | 1 | -1/+1 | |
2018-08-23 | Shaders: Added decodings for IADD3 instructions | tech4me | 1 | -0/+6 | |
2018-08-23 | maxwell_3d: Update to include additional stencil registers. | bunnei | 1 | -20/+50 | |
2018-08-22 | implement lop3 | Laku | 1 | -0/+19 | |
2018-08-21 | shader_bytecode: Parenthesize conditional expression within GetTextureType() | Lioncash | 1 | -1/+1 | |
Resolves a -Wlogical-op-parentheses warning. | |||||
2018-08-21 | shader_bytecode: Replace some UNIMPLEMENTED logs. | bunnei | 1 | -2/+6 | |
2018-08-21 | GPU: Added registers for the logicop functionality. | Subv | 1 | -1/+28 | |
2018-08-19 | Shaders/TEXS: Fixed the component mask in the TEXS instruction. | Subv | 1 | -6/+11 | |
Previously we could end up with a TEXS that didn't write any outputs, this was wrong. | |||||
2018-08-19 | Shader: Added bitfields for the texture type of the various sampling instructions. | Subv | 1 | -1/+65 | |
2018-08-19 | Shaders: Added decodings for TLD4 and TLD4S | Subv | 1 | -3/+7 | |
2018-08-19 | Shaders: Added decodings for the LDG and STG instructions. | Subv | 1 | -0/+4 | |
2018-08-19 | Shaders: Implemented the gl_FrontFacing input attribute (attr 63). | Subv | 1 | -0/+3 | |
2018-08-18 | GLRasterizer: Implemented instanced vertex arrays. | Subv | 1 | -1/+14 | |
Before each draw call, for every enabled vertex array configured as instanced, we take the current instance id and divide it by its configured divisor, then we multiply that by the corresponding stride and increment the start address by the resulting amount. This way we can simulate the vertex array being incremented once per instance without actually using OpenGL's instancing functions. | |||||
2018-08-18 | Shader: Implemented the predicate and mode arguments of LOP. | Subv | 1 | -1/+6 | |
The mode can be used to set the predicate to true depending on the result of the logic operation. In some cases, this means discarding the result (writing it to register 0xFF (Zero)). This is used by Super Mario Odyssey. | |||||
2018-08-18 | Shaders: Corrected the 'abs' and 'neg' bit usage in the float arithmetic instructions. | Subv | 1 | -0/+4 | |
We should definitely audit our shader generator for more errors like this. | |||||
2018-08-18 | Added predcondition GreaterThanWithNan | David Marcec | 1 | -0/+1 | |
2018-08-15 | Rasterizer: Implemented instanced rendering. | Subv | 2 | -0/+15 | |
We keep track of the current instance and update an uniform in the shaders to let them know which instance they are. Instanced vertex arrays are not yet implemented. | |||||
2018-08-13 | gl_shader_decompiler: Implement XMAD instruction. | bunnei | 1 | -4/+25 | |
2018-08-12 | GPU/Maxwell3D: Implemented an alternative set of blend factors. | Subv | 1 | -0/+21 | |
These are used by nouveau and some games like SMO. | |||||
2018-08-12 | RasterizerGL: Ignore invalid/unset vertex attributes. | Subv | 1 | -0/+5 | |
This should make the es2gears example not crash anymore. | |||||
2018-08-12 | gl_shader_decompiler: Improve handling of unknown input/output attributes. | bunnei | 1 | -2/+1 | |
2018-08-11 | GPU/Shader: Don't predicate instructions that don't have a predicate field (SSY). | Subv | 1 | -0/+7 | |
2018-08-10 | video_core: Use variable template variants of type_traits interfaces where applicable | Lioncash | 1 | -2/+1 | |
2018-08-09 | maxwell_3d: Ignore macros that have not been uploaded yet. | bunnei | 1 | -4/+9 | |
- Used by Super Mario Odyssey (in game). | |||||
2018-08-08 | gl_shader_decompiler: Stub input attribute Unknown_63. | bunnei | 1 | -0/+2 | |
2018-08-08 | maxwell_3d: Use correct const buffer size and check bounds. | bunnei | 2 | -1/+3 | |
- Fixes mem corruption with Super Mario Odyssey and Pokkén Tournament DX. | |||||
2018-08-08 | gl_shader_decompiler: Let OpenGL interpret floats. | bunnei | 1 | -9/+4 | |
- Accuracy is lost in translation to string, e.g. with NaN. - Needed for Super Mario Odyssey. | |||||
2018-08-06 | maxwell_3d: Remove outdated assert. | bunnei | 1 | -2/+0 | |
2018-08-04 | video_core: Eliminate the g_renderer global variable | Lioncash | 2 | -6/+12 | |
We move the initialization of the renderer to the core class, while keeping the creation of it and any other specifics in video_core. This way we can ensure that the renderer is initialized and doesn't give unfettered access to the renderer. This also makes dependencies on types more explicit. For example, the GPU class doesn't need to depend on the existence of a renderer, it only needs to care about whether or not it has a rasterizer, but since it was accessing the global variable, it was also making the renderer a part of its dependency chain. By adjusting the interface, we can get rid of this dependency. | |||||
2018-07-24 | GPU: Remove the assert that required the CODE_ADDRESS to be 0. | Subv | 1 | -8/+0 | |
Games usually just leave it at 0 but nouveau sets it to something else. This already works fine, the assert is useless. | |||||
2018-07-22 | shader_bytecode: Implement other TEXS masks. | bunnei | 1 | -5/+9 | |
2018-07-22 | gl_shader_decompiler: Implement SEL instruction. | bunnei | 1 | -0/+11 | |
2018-07-22 | maxwell_3d: Add depth buffer enable, width, and height registers. | bunnei | 1 | -2/+14 | |
2018-07-21 | video_core: Use nested namespaces where applicable | Lioncash | 6 | -28/+14 | |
Compresses a few namespace specifiers to be more compact. | |||||
2018-07-20 | maxwell_3d: Remove unused variable within GetStageTextures() | Lioncash | 1 | -2/+0 | |
2018-07-17 | GPU: Added register definitions for the stencil parameters. | Subv | 1 | -2/+25 | |
2018-07-13 | gl_rasterizer: Fix check for if a shader stage is enabled. | bunnei | 2 | -24/+8 | |
2018-07-13 | gl_shader_decompiler: Implement PredCondition::LessThanWithNan. | bunnei | 1 | -0/+1 | |
2018-07-13 | gl_shader_decompiler: Use FlowCondition field in EXIT instruction. | bunnei | 1 | -0/+9 | |
2018-07-12 | GPU: Implement the FADD32I shader instruction. | Subv | 1 | -0/+9 | |
2018-07-12 | GPU: Corrected the decoding of FFMA for immediate operands. | Subv | 1 | -1/+1 | |
2018-07-05 | GPU: Allow using the old NV04 values for the depth test function. | Subv | 1 | -9/+21 | |
These seem to be just a valid as the GL token values. Thanks @ReinUsesLisp This restores graphical output to Disgaea 5 | |||||
2018-07-04 | GPU: Implemented the IMNMX shader instruction. | Subv | 1 | -3/+17 | |
It's similar to the FMNMX instruction but it works on integers. | |||||
2018-07-04 | GPU: Stub the shader SYNC and DEPBAR instructions. | Subv | 1 | -0/+5 | |
It is unknown at this moment if we actually need to do something with these instructions or if the GLSL compiler takes care of that for us. | |||||
2018-07-04 | GPU: Corrected the decoding for the TEX shader instruction. | Subv | 1 | -1/+1 | |
2018-07-04 | GPU: Implemented the PSETP shader instruction. | Subv | 1 | -0/+13 | |
It's similar to the isetp and fsetp instructions but it works on predicates instead. | |||||
2018-07-04 | GPU: Flip the triangle front face winding if the GPU is configured to not flip the triangles. | Subv | 1 | -3/+19 | |
OpenGL's default behavior is already correct when the GPU is configured to flip the triangles. This fixes 1-2 Switch's splash screen. | |||||
2018-07-03 | GPU: Support clears that don't clear the color buffer. | Subv | 1 | -2/+3 | |
2018-07-03 | GPU: Bind and clear the render target when the CLEAR_BUFFERS register is written to. | Subv | 1 | -0/+11 | |
2018-07-03 | GPU: Added registers for the CLEAR_BUFFERS and CLEAR_COLOR methods. | Subv | 1 | -2/+27 | |
2018-07-03 | GPU: Use only the least significant 3 bits when reading the depth test func. | Subv | 1 | -9/+9 | |
Some games set the full GL define value here (including nouveau), but others just seem to set those last 3 bits. | |||||
2018-07-03 | Update clang format | James Rowe | 2 | -3/+3 | |
2018-07-03 | Rename logging macro back to LOG_* | James Rowe | 3 | -3/+3 | |
2018-07-03 | GPU: Implemented MUFU suboperation 8, sqrt. | Subv | 1 | -0/+1 | |
2018-07-02 | GPU: Added registers for depth test and cull mode. | Subv | 1 | -3/+51 | |
2018-07-02 | GPU: Implemented the Z24S8 depth format and load the depth framebuffer. | Subv | 1 | -1/+1 | |
2018-07-02 | GPU: Added register definitions for the vertex buffer base element. | Subv | 1 | -1/+6 | |
2018-07-02 | GPU: Directly copy the pixels when performing a same-layout DMA. | Subv | 1 | -1/+5 | |
2018-06-30 | GPU: Corrected the size of the MUFU subop field, and removed incorrect "min" operation. | Subv | 1 | -2/+1 | |
2018-06-30 | gl_shader_decompiler: Implement predicate NotEqualWithNan. | bunnei | 1 | -0/+1 | |
2018-06-27 | maxwell_3d: Add a struct for RenderTargetConfig. | bunnei | 1 | -17/+19 | |
2018-06-20 | Build: Fixed some MSVC warnings in various parts of the code. | Subv | 2 | -4/+5 | |
2018-06-19 | GPU: Don't mark uniform buffers and registers as used for instructions which don't have them. | Subv | 1 | -2/+3 | |
Like the MOV32I and FMUL32I instructions. This fixes a potential crash when using these instructions. | |||||
2018-06-17 | gl_shader_decompiler: Implement LOP instructions. | bunnei | 1 | -0/+14 | |
2018-06-17 | gl_shader_decompiler: Refactor LOP32I instruction a bit in support of LOP. | bunnei | 1 | -3/+2 | |
2018-06-16 | gl_shader_decompiler: Implement integer size conversions for I2I/I2F/F2I. | bunnei | 1 | -1/+2 | |
2018-06-12 | GPU: Implemented the iadd32i shader instruction. | Subv | 1 | -2/+10 | |
2018-06-12 | GPU: Partially implemented the Maxwell DMA engine. | Subv | 3 | -0/+225 | |
Only tiled->linear and linear->tiled copies that aren't offsetted are supported for now. Queries are not supported. Swizzled copies are not supported. | |||||
2018-06-12 | gl_shader_decompiler: Implement saturate for float instructions. | bunnei | 1 | -2/+1 | |
2018-06-09 | GPU: Implement the iset family of shader instructions. | Subv | 1 | -0/+9 | |
2018-06-09 | GPU: Added decodings for the ISET family of instructions. | Subv | 1 | -0/+7 | |
2018-06-09 | gl_shader_decompiler: Implement SHR instruction. | bunnei | 1 | -0/+4 | |
2018-06-09 | GPU: Stub the SSY shader instruction. | Subv | 1 | -0/+2 | |
This instruction tells the GPU where the flow reconverges in a non-uniform control flow scenario, we can ignore this when generating GLSL code. | |||||
2018-06-09 | gl_shader_decompiler: Implement IADD instruction. | bunnei | 1 | -5/+11 | |
2018-06-09 | gl_shader_decompiler: Add missing asserts for saturate_a instructions. | bunnei | 1 | -1/+1 | |
2018-06-09 | GPU: Added registers for normal and independent blending. | Subv | 1 | -5/+26 | |
2018-06-07 | gl_shader_decompiler: Implement BFE_IMM instruction. | bunnei | 1 | -3/+15 | |
2018-06-07 | gl_shader_decompiler: F2F: Implement rounding modes. | bunnei | 1 | -3/+12 | |
2018-06-07 | shader_bytecode: Add instruction decodings for BFE, IMNMX, and XMAD. | bunnei | 1 | -0/+20 | |
2018-06-07 | gl_shader_decompiler: Implement LD_C instruction. | bunnei | 1 | -0/+16 | |
2018-06-06 | gl_shader_decompiler: Refactor uniform handling to allow different decodings. | bunnei | 1 | -6/+10 | |
2018-06-06 | GPU: Implement sampling multiple textures in the generated glsl shaders. | Subv | 2 | -0/+37 | |
All tested games that use a single texture show no regression. Only Texture2D textures are supported right now, each shader gets its own "tex_fs/vs/gs" sampler array to maintain independent textures between shader stages, the textures themselves are reused if possible. | |||||
2018-06-05 | GPU: Corrected the branch targets for the shader bra instruction. | Subv | 1 | -4/+5 | |
2018-06-05 | GPU: Implemented the F2I_R shader instruction. | Subv | 1 | -4/+20 | |
2018-06-05 | gl_shader_decompiler: Implement SHL instruction. | bunnei | 1 | -13/+17 | |
2018-06-05 | GPU: Implement the ISCADD shader instructions. | Subv | 1 | -0/+16 | |
2018-06-05 | GPU: Added decodings for the ISCADD instructions. | Subv | 1 | -0/+7 | |
2018-06-04 | GPU: Use the bf bit in FSET to determine whether to write 0xFFFFFFFF or 1.0f. | Subv | 1 | -1/+1 | |
2018-06-04 | GPU: Calculate the correct viewport dimensions based on the scale and translate registers. | Subv | 1 | -12/+28 | |
This is how nouveau calculates the viewport width and height. For some reason some games set 0xFFFF in the VIEWPORT_HORIZ and VIEWPORT_VERT registers, maybe those are a misnomer and actually refer to something else? | |||||
2018-06-04 | GPU: Implemented the LOP32I instruction. | Subv | 1 | -1/+15 | |
2018-06-04 | GPU: Implemented the ISETP_R and ISETP_C shader instructions. | Subv | 1 | -0/+10 | |
2018-06-04 | GPU: Partially implemented the shader BRA instruction. | Subv | 1 | -0/+13 | |
2018-06-04 | GPU: Added decoding for the BRA instruction. | Subv | 1 | -0/+2 | |
2018-06-04 | GPU: Partial implementation of long GPU queries. | Subv | 1 | -9/+24 | |
Long queries write a 128-bit result value to memory, which consists of a 64 bit query value and a 64 bit timestamp. In this implementation, only select=Zero of the Crop unit is implemented, this writes the query sequence as a 64 bit value, and a 0u64 value for the timestamp, since we emulate an infinitely fast GPU. This specific type was hwtested, but more rigorous tests should be performed in the future for the other types. | |||||
2018-06-03 | gl_shader_decompiler: Implement TEXS component mask. | bunnei | 1 | -2/+16 | |
2018-06-03 | gl_shader_decompiler: Implement RRO as a register move. | bunnei | 1 | -3/+7 | |
2018-06-01 | gl_shader_decompiler: Implement TEX instruction. | bunnei | 1 | -0/+10 | |
2018-06-01 | gl_shader_decompiler: Support multi-destination for TEXS. | bunnei | 1 | -0/+5 | |
2018-05-30 | Shaders: Implemented reading the gl_InstanceID and gl_VertexID variables in the vertex shader. | Subv | 1 | -0/+4 | |
2018-05-30 | gl_shader_decompiler: Partially implement F2F_R instruction. | bunnei | 1 | -3/+3 | |
2018-05-26 | shader_bytecode: Implement other variants of FMNMX. | bunnei | 1 | -3/+7 | |
2018-05-21 | Shaders: Implemented the FMNMX shader instruction. | Subv | 1 | -0/+5 | |
2018-05-19 | ShadersDecompiler: Added decoding for the PSETP instruction. | Subv | 1 | -0/+3 | |
2018-04-29 | maxwell_3d: Reset vertex counts after drawing. | bunnei | 1 | -0/+10 | |
2018-04-29 | shader_bytecode: Add decoding for FMNMX instruction. | bunnei | 1 | -0/+2 | |
2018-04-29 | fermi_2d: Fix surface copy block height. | bunnei | 2 | -2/+7 | |
2018-04-29 | gl_shader_decompiler: Partially implement I2I_R, and I2F_R. | bunnei | 1 | -8/+8 | |
2018-04-29 | shader_bytecode: Add decodings for i2i instructions. | bunnei | 1 | -3/+20 | |
2018-04-29 | gl_shader_decompiler: Implement MOV32_IMM instruction. | bunnei | 1 | -2/+2 | |
2018-04-27 | general: Convert assertion macros over to be fmt-compatible | Lioncash | 1 | -2/+2 | |
2018-04-26 | gl_shader_decompiler: Boilerplate for handling integer instructions. | bunnei | 1 | -1/+9 | |
2018-04-25 | GPU: Partially implemented the Fermi2D surface copy operation. | Subv | 2 | -0/+59 | |
The hardware allows for some rather complicated operations to be performed on the data during the copy, this is not implemented. Only same-format same-size raw copies are implemented for now. | |||||
2018-04-25 | Shaders: Added bit decodings for the I2I instruction. | Subv | 1 | -0/+6 | |
2018-04-25 | GPU: Added surface copy registers to Fermi2D | Subv | 1 | -1/+57 | |
2018-04-25 | GPU: Added boilerplate code for the Fermi2D engine | Subv | 2 | -2/+33 | |
2018-04-25 | GPU: Reduce the number of registers of Maxwell3D to 0xE00. | Subv | 2 | -5/+5 | |
The rest are just macro shim registers. | |||||
2018-04-25 | GPU: Move the Maxwell3D macro uploading code to the inside of the Maxwell3D processor. | Subv | 2 | -8/+23 | |
It doesn't belong in the PFIFO handler. | |||||
2018-04-25 | video-core: Move logging macros over to new fmt-capable ones | Lioncash | 1 | -2/+2 | |
2018-04-25 | Shaders: Added decodings for the FSET instructions. | Subv | 1 | -8/+29 | |
2018-04-24 | memory_manager: Make GpuToCpuAddress return an optional. | bunnei | 1 | -10/+11 | |
2018-04-24 | memory_manager: Use GPUVAdddr, not PAddr, for GPU addresses. | bunnei | 1 | -6/+5 | |
2018-04-24 | GPU: Added asserts to our code for handling the QUERY_GET GPU command. | Subv | 2 | -2/+53 | |
This is based on research from nouveau. Many things are currently unknown and will require hwtests in the future. This commit also stubs QueryMode::Write2 to do the same as Write. Nouveau code treats them interchangeably, it is currently unknown what the difference is. | |||||
2018-04-23 | GPU: Support multiple enabled vertex arrays. | Subv | 1 | -0/+5 | |
The vertex arrays will be copied to the stream buffer one after the other, and the attributes will be set using the ARB_vertex_attrib_binding extension. yuzu now thus requires OpenGL 4.3 or the ARB_vertex_attrib_binding extension. | |||||
2018-04-21 | shader_bytecode: Add several more instruction decodings. | bunnei | 1 | -5/+52 | |
2018-04-21 | shader_bytecode: Decode instructions based on bit strings. | bunnei | 1 | -185/+172 | |
2018-04-21 | ShaderGen: Implemented predicated instruction execution. | Subv | 1 | -1/+5 | |
Each predicated instruction will be wrapped in an `if (predicate) { instruction_body; }` in the GLSL, where `predicate` is one of the predicate boolean variables previously set by fsetp. | |||||
2018-04-21 | ShaderGen: Implemented the fsetp instruction. | Subv | 1 | -3/+40 | |
Predicate variables are now added to the generated shader code in the form of 'pX' where X is the predicate id. These predicate variables are initialized to false on shader startup and are set via the fsetp instructions. TODO: * Not all the comparison types are implemented. * Only the single-predicate version is implemented. | |||||
2018-04-20 | ShaderGen: Register id 255 is special and is hardcoded to return 0 (SR_ZERO). | Subv | 1 | -0/+3 | |
2018-04-19 | ShaderGen: Implemented the fmul32i shader instruction. | Subv | 1 | -3/+14 | |
2018-04-18 | gl_shader_gen: Support vertical/horizontal viewport flipping. (#347) | bunnei | 1 | -1/+10 | |
* gl_shader_gen: Support vertical/horizontal viewport flipping. * fixup! gl_shader_gen: Support vertical/horizontal viewport flipping. | |||||
2018-04-18 | GPU: Pitch textures are now supported, don't assert when encountering them. | Subv | 1 | -2/+3 | |
2018-04-18 | maxwell3d: Allow Texture2DNoMipmap as Texture2D. | bunnei | 1 | -1/+2 | |
2018-04-18 | shader_bytecode: Make ctor's constexpr and explicit. | bunnei | 1 | -7/+7 | |
2018-04-18 | renderer_opengl: Implement BlendEquation and BlendFunc. | bunnei | 2 | -4/+48 | |
2018-04-17 | gl_shader_decompiler: Implement FMUL/FADD/FFMA immediate instructions. | bunnei | 1 | -0/+14 | |
2018-04-17 | gl_shader_decompiler: Add support for TEXS instruction. | bunnei | 1 | -5/+14 | |
2018-04-17 | gl_rasterizer: Implement indexed vertex mode. | bunnei | 2 | -2/+46 | |
2018-04-15 | GPU: Added a function to determine whether a shader stage is enabled or not. | Subv | 2 | -0/+24 | |
2018-04-15 | shaders: Add NumTextureSamplers const, remove unused #pragma. | bunnei | 1 | -2/+0 | |
2018-04-14 | shaders: Address PR review feedback. | bunnei | 1 | -1/+1 | |
2018-04-14 | shaders: Fix GCC and clang build issues. | bunnei | 1 | -3/+3 | |
2018-04-14 | gl_shader_decompiler: Implement negate, abs, etc. and lots of cleanup. | bunnei | 1 | -20/+39 | |
2018-04-14 | shader_bytecode: Add FSETP and KIL to GetInfo. | bunnei | 1 | -0/+3 | |
2018-04-14 | shader_bytecode: Add SubOp decoding. | bunnei | 1 | -0/+10 | |
2018-04-14 | maxwell_3d: Make memory_manager public. | bunnei | 1 | -2/+1 | |
2018-04-14 | maxwell_3d: Fix shader_config decodings. | bunnei | 1 | -6/+3 | |
2018-04-14 | shader_bytecode: Add initial module for shader decoding. | bunnei | 1 | -0/+297 | |
2018-04-07 | GPU: Assert when finding a texture with a format type other than UNORM. | Subv | 1 | -0/+2 | |
2018-04-01 | GPU: Use the MacroInterpreter class to execute the GPU macros instead of HLEing them. | Subv | 2 | -121/+13 | |
2018-04-01 | GPU: Implemented a gpu macro interpreter. | Subv | 2 | -0/+8 | |
The Ryujinx macro interpreter and envydis were used as reference. Macros are programs that are uploaded by the games during boot and can later be called by writing to their method id in a GPU command buffer. | |||||
2018-03-27 | gl_rasterizer: Add a SyncViewport method. | bunnei | 1 | -0/+10 | |
2018-03-27 | gl_rasterizer: Normalize vertex array data as appropriate. | bunnei | 1 | -0/+4 | |
2018-03-27 | maxwell_3d: Use names that match envytools for VertexType. | bunnei | 1 | -8/+8 | |
2018-03-27 | maxwell_3d: Add VertexAttribute struct and cleanup. | bunnei | 1 | -121/+160 | |
2018-03-27 | Maxwell3D: Call AccelerateDrawBatch on DrawArrays. | bunnei | 1 | -1/+8 | |
2018-03-27 | gl_rasterizer: Implement AnalyzeVertexArray. | bunnei | 1 | -0/+35 | |
2018-03-27 | maxwell: Add RenderTargetFormat enum. | bunnei | 1 | -3/+4 | |
2018-03-26 | GPU: Load the sampler info (TSC) when retrieving active textures. | Subv | 2 | -21/+67 | |
2018-03-25 | GPU: Make the debug_context variable a member of the frontend instead of a global. | Subv | 1 | -11/+13 | |
2018-03-24 | GPU: Added a function to retrieve the active textures for a shader stage. | Subv | 2 | -50/+59 | |
TODO: A shader may not use all of these textures at the same time, shader analysis should be performed to determine which textures are actually sampled. | |||||
2018-03-24 | GPU: Implement the Incoming/FinishedPrimitiveBatch debug breakpoints. | Subv | 1 | -0/+7 | |
2018-03-24 | GPU: Implement the MaxwellCommandLoaded/Processed debug breakpoints. | Subv | 1 | -0/+10 | |
2018-03-24 | GPU: Added a method to unswizzle a texture without decoding it. | Subv | 1 | -1/+1 | |
Allow unswizzling of DXT1 textures. | |||||
2018-03-24 | GPU: Preliminary work for texture decoding. | Subv | 1 | -0/+45 | |
2018-03-24 | GPU: Added viewport registers to Maxwell3D's reg structure. | Subv | 1 | -1/+18 | |
2018-03-23 | maxwell_3d: Add some format decodings and string helper functions. | bunnei | 1 | -3/+107 | |
2018-03-21 | GPU: Added vertex attribute format registers. | Subv | 1 | -1/+14 | |
2018-03-21 | GPU: Added registers for the number of vertices to render. | Subv | 1 | -2/+13 | |
2018-03-19 | GPU: Added Z buffer registers to Maxwell3D's reg structure. | Subv | 1 | -1/+17 | |
2018-03-19 | GPU: Added the render target (RT) registers to Maxwell3D's reg structure. | Subv | 1 | -1/+32 | |
2018-03-19 | Clang Fixes | N00byKing | 1 | -1/+2 | |
2018-03-19 | Clean Warnings (?) | N00byKing | 1 | -1/+1 | |
2018-03-19 | GPU: Added the TSC registers to the Maxwell3D register structure. | Subv | 1 | -1/+15 | |
2018-03-19 | GPU: Added the TIC registers to the Maxwell3D register structure. | Subv | 1 | -1/+16 | |
2018-03-19 | GPU: Implement macro 0xE1A BindTextureInfoBuffer in HLE. | Subv | 2 | -1/+29 | |
This macro simply sets the current CB_ADDRESS to the texture buffer address for the input shader stage. | |||||
2018-03-18 | GPU: Implement the BindStorageBuffer macro method in HLE. | Subv | 2 | -1/+36 | |
This macro binds the SSBO Info Buffer as the current ConstBuffer. This buffer is usually bound to c0 during shader execution. Games seem to use this macro instead of directly writing the address for some reason. | |||||
2018-03-18 | GPU: Handle writes to the CB_DATA method. | Subv | 2 | -0/+39 | |
Writing to this method will cause the written value to be stored in the currently-set ConstBuffer plus CB_POS. This method is usually used to upload uniforms or other shader-visible data. | |||||
2018-03-18 | GPU: Store uploaded GPU macros and keep track of the number of method parameters. | Subv | 2 | -11/+24 | |
2018-03-18 | GPU: Macros are specific to the Maxwell3D engine, so handle them internally. | Subv | 6 | -31/+55 | |
2018-03-18 | GPU: Renamed ShaderType to ShaderStage as that is less confusing. | Subv | 2 | -19/+19 | |
2018-03-18 | GPU: Store shader constbuffer bindings in the GPU state. | Subv | 2 | -5/+61 | |
2018-03-18 | GPU: Corrected some register offsets and removed superfluous macro registers. | Subv | 1 | -9/+3 | |
2018-03-18 | GPU: Make the SetShader macro call do the same as the real macro's code. | Subv | 2 | -3/+44 | |
It'll now set the CB_SIZE, CB_ADDRESS and CB_BIND registers when it's called. Presumably this SetShader function is binding the constant shader uniforms to buffer 1 (c1[]). | |||||
2018-03-17 | GPU: Corrected the parameter documentation for the SetShader macro call. | Subv | 2 | -11/+12 | |
Register 0xE24 is actually a macro that sets some shader parameters in the register structure. Macros are uploaded to the GPU at startup and have their own ISA, we'll probably write an interpreter for this in the future. | |||||
2018-03-17 | GPU: Handle the SetShader method call (0xE24) and store the shader config. | Subv | 2 | -4/+38 | |
2018-03-17 | GPU: Added the vertex array registers. | Subv | 1 | -2/+33 | |
2018-03-17 | GPU: Process command mode 5 (IncreaseOnce) differently from other commands. | Subv | 6 | -1/+56 | |
Accumulate all arguments before calling the desired method. Note: Maybe we should do the same for the NonIncreasing mode? | |||||
2018-03-17 | GPU: Assert that we get a 0 CODE_ADDRESS register in the 3D engine. | Subv | 1 | -0/+8 | |
Shader address calculation depends on this value to some extent, we do not currently know what it being 0 entails. | |||||
2018-03-17 | GPU: Added Maxwell registers for Shader Program control. | Subv | 1 | -2/+55 | |
2018-03-05 | GPU: Intercept writes to the VERTEX_END_GL register. | Subv | 2 | -1/+18 | |
This is the register that gets written after a game calls DrawArrays(). We should collect all GPU state and draw using our graphics API here. | |||||
2018-02-14 | maxwell_3d: Make constructor explicit | Lioncash | 1 | -1/+1 | |
2018-02-12 | GPU: Partially implemented the QUERY_* registers in the Maxwell3D engine. | Subv | 2 | -2/+94 | |
Only QueryMode::Write is supported at the moment. | |||||
2018-02-12 | Make a GPU class in VideoCore to contain the GPU state. | Subv | 6 | -18/+24 | |
Also moved the GPU MemoryManager class to video_core since it makes more sense for it to be there. | |||||
2018-02-12 | GPU: Added a command processor to decode the GPU pushbuffers and forward the commands to their respective engines. | Subv | 6 | -0/+99 | |