aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/engines
AgeCommit message (Collapse)Author
2018-08-04video_core: Eliminate the g_renderer global variableLioncash
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-24GPU: Remove the assert that required the CODE_ADDRESS to be 0.Subv
Games usually just leave it at 0 but nouveau sets it to something else. This already works fine, the assert is useless.
2018-07-22shader_bytecode: Implement other TEXS masks.bunnei
2018-07-22gl_shader_decompiler: Implement SEL instruction.bunnei
2018-07-21maxwell_3d: Add depth buffer enable, width, and height registers.bunnei
2018-07-20video_core: Use nested namespaces where applicableLioncash
Compresses a few namespace specifiers to be more compact.
2018-07-19maxwell_3d: Remove unused variable within GetStageTextures()Lioncash
2018-07-17GPU: Added register definitions for the stencil parameters.Subv
2018-07-12gl_rasterizer: Fix check for if a shader stage is enabled.bunnei
2018-07-12Merge pull request #655 from bunnei/pred-lt-nanbunnei
gl_shader_decompiler: Implement PredCondition::LessThanWithNan.
2018-07-12gl_shader_decompiler: Implement PredCondition::LessThanWithNan.bunnei
2018-07-12gl_shader_decompiler: Use FlowCondition field in EXIT instruction.bunnei
2018-07-12Merge pull request #652 from Subv/fadd32iSebastian Valle
GPU: Implement the FADD32I shader instruction.
2018-07-12Merge pull request #651 from Subv/ffma_decodebunnei
GPU: Corrected the decoding of FFMA for immediate operands.
2018-07-12GPU: Implement the FADD32I shader instruction.Subv
2018-07-12GPU: Corrected the decoding of FFMA for immediate operands.Subv
2018-07-07Merge pull request #625 from Subv/imnmxbunnei
GPU: Implemented the IMNMX shader instruction.
2018-07-05Merge pull request #629 from Subv/depth_testbunnei
GPU: Allow using the old NV04 values for the depth test function.
2018-07-05GPU: Allow using the old NV04 values for the depth test function.Subv
These seem to be just a valid as the GL token values. Thanks @ReinUsesLisp This restores graphical output to Disgaea 5
2018-07-05Merge pull request #626 from Subv/shader_syncbunnei
GPU: Stub the shader SYNC and DEPBAR instructions.
2018-07-05Merge pull request #622 from Subv/unused_texbunnei
GPU: Ignore unused textures and corrected the TEX shader instruction decoding.
2018-07-05Merge pull request #621 from Subv/psetp_bunnei
GPU: Implemented the PSETP shader instruction.
2018-07-04GPU: Implemented the IMNMX shader instruction.Subv
It's similar to the FMNMX instruction but it works on integers.
2018-07-04GPU: Stub the shader SYNC and DEPBAR instructions.Subv
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-04GPU: Corrected the decoding for the TEX shader instruction.Subv
2018-07-04GPU: Implemented the PSETP shader instruction.Subv
It's similar to the isetp and fsetp instructions but it works on predicates instead.
2018-07-04GPU: Flip the triangle front face winding if the GPU is configured to not ↵Subv
flip the triangles. 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-03Merge pull request #609 from Subv/clear_buffersbunnei
GPU: Implemented the CLEAR_BUFFERS register.
2018-07-03GPU: Support clears that don't clear the color buffer.Subv
2018-07-03GPU: Bind and clear the render target when the CLEAR_BUFFERS register is ↵Subv
written to.
2018-07-03GPU: Added registers for the CLEAR_BUFFERS and CLEAR_COLOR methods.Subv
2018-07-03Merge pull request #607 from jroweboy/loggingbunnei
Logging - Customizable backends
2018-07-02Merge pull request #611 from Subv/enabled_depth_testbunnei
GPU: Don't try to parse the depth test function if the depth test is disabled and use only the least significant 3 bits in the depth test func
2018-07-02Merge pull request #610 from Subv/mufu_8bunnei
GPU: Implemented MUFU suboperation 8, sqrt.
2018-07-02GPU: Use only the least significant 3 bits when reading the depth test func.Subv
Some games set the full GL define value here (including nouveau), but others just seem to set those last 3 bits.
2018-07-02Update clang formatJames Rowe
2018-07-02Rename logging macro back to LOG_*James Rowe
2018-07-02Merge pull request #608 from Subv/depthbunnei
GPU: Implemented the depth buffer and depth test + culling
2018-07-02GPU: Implemented MUFU suboperation 8, sqrt.Subv
2018-07-02Merge pull request #606 from Subv/base_vertexSebastian Valle
GPU: Fixed the index offset and implement BaseVertex when doing indexed rendering.
2018-07-02Merge pull request #605 from Subv/dma_copySebastian Valle
GPU: Directly copy the pixels when performing a same-layout DMA.
2018-07-02GPU: Added registers for depth test and cull mode.Subv
2018-07-02GPU: Implemented the Z24S8 depth format and load the depth framebuffer.Subv
2018-07-02GPU: Added register definitions for the vertex buffer base element.Subv
2018-07-02GPU: Directly copy the pixels when performing a same-layout DMA.Subv
2018-07-01Merge pull request #602 from Subv/mufu_subopbunnei
GPU: Corrected the size of the MUFU subop field, and removed incorrect "min" operation.
2018-06-30GPU: Corrected the size of the MUFU subop field, and removed incorrect "min" ↵Subv
operation.
2018-06-30gl_shader_decompiler: Implement predicate NotEqualWithNan.bunnei
2018-06-27maxwell_3d: Add a struct for RenderTargetConfig.bunnei
2018-06-20Build: Fixed some MSVC warnings in various parts of the code.Subv