ryujinx/Ryujinx.Graphics/Gal
gdkchan 6b23a2c125 New shader translator implementation (#654)
* Start implementing a new shader translator

* Fix shift instructions and a typo

* Small refactoring on StructuredProgram, move RemovePhis method to a separate class

* Initial geometry shader support

* Implement TLD4

* Fix -- There's no negation on FMUL32I

* Add constant folding and algebraic simplification optimizations, nits

* Some leftovers from constant folding

* Avoid cast for constant assignments

* Add a branch elimination pass, and misc small fixes

* Remove redundant branches, add expression propagation and other improvements on the code

* Small leftovers -- add missing break and continue, remove unused properties, other improvements

* Add null check to handle empty block cases on block visitor

* Add HADD2 and HMUL2 half float shader instructions

* Optimize pack/unpack sequences, some fixes related to half float instructions

* Add TXQ, TLD, TLDS and TLD4S shader texture instructions, and some support for bindless textures, some refactoring on codegen

* Fix copy paste mistake that caused RZ to be ignored on the AST instruction

* Add workaround for conditional exit, and fix half float instruction with constant buffer

* Add missing 0.0 source for TLDS.LZ variants

* Simplify the switch for TLDS.LZ

* Texture instructions related fixes

* Implement the HFMA instruction, and some misc. fixes

* Enable constant folding on UnpackHalf2x16 instructions

* Refactor HFMA to use OpCode* for opcode decoding rather than on the helper methods

* Remove the old shader translator

* Remove ShaderDeclInfo and other unused things

* Add dual vertex shader support

* Add ShaderConfig, used to pass shader type and maximum cbuffer size

* Move and rename some instruction enums

* Move texture instructions into a separate file

* Move operand GetExpression and locals management to OperandManager

* Optimize opcode decoding using a simple list and binary search

* Add missing condition for do-while on goto elimination

* Misc. fixes on texture instructions

* Simplify TLDS switch

* Address PR feedback, and a nit
2019-04-18 09:57:08 +10:00
..
OpenGL New shader translator implementation (#654) 2019-04-18 09:57:08 +10:00
EmbeddedResource.cs Do naming refactoring on Ryujinx.Graphics (#611) 2019-03-04 12:45:25 +11:00
GalBlendEquation.cs Implment common and independent blend properly (fixes #458) (#485) 2018-11-01 01:22:24 -03:00
GalBlendFactor.cs Implment common and independent blend properly (fixes #458) (#485) 2018-11-01 01:22:24 -03:00
GalClearBufferFlags.cs Merge shader branch, adding support for GLSL decompilation, a macro 2018-04-08 16:41:38 -03:00
GalColorF.cs Do naming refactoring on Ryujinx.Graphics (#611) 2019-03-04 12:45:25 +11:00
GalComparisonOp.cs Implement some GPU features (#209) 2018-07-05 15:47:29 -03:00
GalCullFace.cs Implement some GPU features (#209) 2018-07-05 15:47:29 -03:00
GalFrontFace.cs Do naming refactoring on Ryujinx.Graphics (#611) 2019-03-04 12:45:25 +11:00
GalImage.cs Do naming refactoring on Ryujinx.Graphics (#611) 2019-03-04 12:45:25 +11:00
GalImageFormat.cs Do naming refactoring on Ryujinx.Graphics (#611) 2019-03-04 12:45:25 +11:00
GalIndexFormat.cs Merge shader branch, adding support for GLSL decompilation, a macro 2018-04-08 16:41:38 -03:00
GalMemoryLayout.cs Allow "reinterpretation" of framebuffer/zeta formats (#418) 2018-09-18 01:30:35 -03:00
GalPipelineState.cs Do naming refactoring on Ryujinx.Graphics (#611) 2019-03-04 12:45:25 +11:00
GalPrimitiveType.cs Split main project into core,graphics and chocolarm4 subproject (#29) 2018-02-20 17:09:23 -03:00
GalShaderType.cs Merge shader branch, adding support for GLSL decompilation, a macro 2018-04-08 16:41:38 -03:00
GalStencilOp.cs Implement some GPU features (#209) 2018-07-05 15:47:29 -03:00
GalSurfaceFormat.cs Do naming refactoring on Ryujinx.Graphics (#611) 2019-03-04 12:45:25 +11:00
GalTextureFilter.cs Merge shader branch, adding support for GLSL decompilation, a macro 2018-04-08 16:41:38 -03:00
GalTextureFormat.cs Do naming refactoring on Ryujinx.Graphics (#611) 2019-03-04 12:45:25 +11:00
GalTextureMipFilter.cs Merge shader branch, adding support for GLSL decompilation, a macro 2018-04-08 16:41:38 -03:00
GalTextureSampler.cs Do naming refactoring on Ryujinx.Graphics (#611) 2019-03-04 12:45:25 +11:00
GalTextureSource.cs Added more shader instructions, including BFE, BRA (partial), FMNMX, ISCADD, SHL, LD_C, some shader related fixes, added support for texture component selection 2018-05-17 15:25:42 -03:00
GalTextureTarget.cs Initial non 2D textures support (#525) 2019-02-28 12:12:24 +11:00
GalTextureType.cs Do naming refactoring on Ryujinx.Graphics (#611) 2019-03-04 12:45:25 +11:00
GalTextureWrap.cs Merge shader branch, adding support for GLSL decompilation, a macro 2018-04-08 16:41:38 -03:00
GalVertexAttrib.cs Do naming refactoring on Ryujinx.Graphics (#611) 2019-03-04 12:45:25 +11:00
GalVertexAttribSize.cs Split main project into core,graphics and chocolarm4 subproject (#29) 2018-02-20 17:09:23 -03:00
GalVertexAttribType.cs Split main project into core,graphics and chocolarm4 subproject (#29) 2018-02-20 17:09:23 -03:00
GalVertexBinding.cs Quads, QuadStrip, const attributes and half-float attributes support (#447) 2018-10-13 01:37:01 +00:00
GalZetaFormat.cs Improve texture tables (#457) 2018-10-17 18:02:23 -03:00
IGalConstBuffer.cs Do naming refactoring on Ryujinx.Graphics (#611) 2019-03-04 12:45:25 +11:00
IGalMemory.cs Do naming refactoring on Ryujinx.Graphics (#611) 2019-03-04 12:45:25 +11:00
IGalPipeline.cs Do naming refactoring on Ryujinx.Graphics (#611) 2019-03-04 12:45:25 +11:00
IGalRasterizer.cs Do naming refactoring on Ryujinx.Graphics (#611) 2019-03-04 12:45:25 +11:00
IGalRenderer.cs Do naming refactoring on Ryujinx.Graphics (#611) 2019-03-04 12:45:25 +11:00
IGalRenderTarget.cs Do naming refactoring on Ryujinx.Graphics (#611) 2019-03-04 12:45:25 +11:00
IGalShader.cs New shader translator implementation (#654) 2019-04-18 09:57:08 +10:00
IGalTexture.cs Do naming refactoring on Ryujinx.Graphics (#611) 2019-03-04 12:45:25 +11:00
ShaderDumper.cs Do naming refactoring on Ryujinx.Graphics (#611) 2019-03-04 12:45:25 +11:00
ShaderException.cs Do naming refactoring on Ryujinx.Graphics (#611) 2019-03-04 12:45:25 +11:00