1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-24 01:02:04 +00:00
Ryujinx/Ryujinx.Graphics/Gal/Shader
Thomas Guillemard 884b4e5fd3 Initial non 2D textures support (#525)
* Initial non 2D textures support

- Shaders still need to be changed
- Some types aren't yet implemented

* Start implementing texture instructions suffixes

Fix wrong texture type with cube and TEXS

Also support array textures in TEX and TEX.B

Clean up TEX and TEXS coords managment

Fix TEXS.LL with non-2d textures

Implement TEX.AOFFI

Get the right arguments for TEX, TEXS and TLDS

Also, store suffix operands in appropriate values to support multiple
suffix combinaisons

* Support depth in read/writeTexture

Also support WrapR and detect mipmap

* Proper cube map textures support + fix TEXS.LZ

* Implement depth compare

* some code clean up

* Implement CubeMap textures in OGLTexture.Create

* Implement TLD4 and TLD4S

* Add Texture 1D support

* updates comments

* fix some code style issues

* Fix some nits + rename some things to be less confusing

* Remove GetSuffix local functions

* AOFFI => AOffI

* TextureType => GalTextureTarget

* finish renaming TextureType to TextureTarget

* Disable LL, LZ and LB support in the decompiler

This needs more work at the GL level (GLSL implementation should be
right)

* Revert "Disable LL, LZ and LB support in the decompiler"

This reverts commit 64536c3d9f673645faff3152838d1413c3203395.

* Fix TEXS ARRAY_2D index

* ImageFormat depth should be 1 for all image format

* Fix shader build issues with sampler1DShadow and texture

* Fix DC & AOFFI combinaison with TEX/TEXS

* Support AOFFI with TLD4 and TLD4S

* Fix shader compilation error for TLD4.AOFFI with no DC

* Fix binding isuses on the 2d copy engine

TODO: support 2d array copy

* Support 2D array copy operation in the 2D engine

This make every copy right in the GPU side.
Thie CPU copy probably needs to be updated

* Implement GetGpuSize + fix somes issues with 2d engine copies

TODO: mipmap level in it

* Don't throw an exception in the layer handling

* Fix because of rebase

* Reject 2d layers of non textures in 2d copy engine

* Add 3D textures and mipmap support on BlockLinearSwizzle

* Fix naming on new BitUtils methods

* gpu cache: Make sure to invalidate textures that doesn't have the same target

* Add the concept of layer count for array instead of using depth

Also cleanup GetGpuSize as Swizzle can compute the size with mipmap

* Support multi layer with mip map in ReadTexture

* Add more check for cache invalidation & remove cubemap and cubemap array code for now

Also fix compressed 2d array

* Fix texelFetchOffset shader build error

* Start looking into cube map again

Also add some way to log write in register in engines

* fix write register log levles

* Remove debug logs in WriteRegister

* Disable AOFFI support on non NVIDIA drivers

* Fix code align
2019-02-28 12:12:24 +11:00
..
GlslDecl.cs Initial non 2D textures support (#525) 2019-02-28 12:12:24 +11:00
GlslDecompiler.cs Initial non 2D textures support (#525) 2019-02-28 12:12:24 +11:00
GlslProgram.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
ShaderDecodeAlu.cs Fix XMAD shader instruction, gl_FrontFacing and enable face culling (#583) 2019-02-15 14:23:14 +11:00
ShaderDecodeFlow.cs Allow "reinterpretation" of framebuffer/zeta formats (#418) 2018-09-18 01:30:35 -03:00
ShaderDecodeFunc.cs Allow "reinterpretation" of framebuffer/zeta formats (#418) 2018-09-18 01:30:35 -03:00
ShaderDecodeHelper.cs Add support for saturation on some shader instructions, fix ReadTexture alignment and add ColorMask support (#451) 2018-10-13 23:54:14 -03:00
ShaderDecodeMem.cs Initial non 2D textures support (#525) 2019-02-28 12:12:24 +11:00
ShaderDecodeMove.cs Allow "reinterpretation" of framebuffer/zeta formats (#418) 2018-09-18 01:30:35 -03:00
ShaderDecodeOpCode.cs Initial non 2D textures support (#525) 2019-02-28 12:12:24 +11:00
ShaderDecoder.cs Improve texture tables (#457) 2018-10-17 18:02:23 -03:00
ShaderDecodeSpecial.cs Allow "reinterpretation" of framebuffer/zeta formats (#418) 2018-09-18 01:30:35 -03:00
ShaderHeader.cs Implement multiple rendertarget attachments and depth writting (#375) 2018-08-23 02:07:23 -03:00
ShaderIpaMode.cs Shaders: Handle Ipa PASS argument as needed in Fragment Shaders (#392) 2018-09-01 18:44:19 -03:00
ShaderIrAsg.cs Merge shader branch, adding support for GLSL decompilation, a macro 2018-04-08 16:41:38 -03:00
ShaderIrBlock.cs Allow "reinterpretation" of framebuffer/zeta formats (#418) 2018-09-18 01:30:35 -03:00
ShaderIrCmnt.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
ShaderIrCond.cs [GPU] Add more shader instructions, add support for rgb565 textures 2018-04-10 16:50:32 -03:00
ShaderIrInst.cs Initial non 2D textures support (#525) 2019-02-28 12:12:24 +11:00
ShaderIrMeta.cs [GPU] Add more shader instructions, add support for rgb565 textures 2018-04-10 16:50:32 -03:00
ShaderIrMetaIpa.cs Shaders: Handle Ipa PASS argument as needed in Fragment Shaders (#392) 2018-09-01 18:44:19 -03:00
ShaderIrMetaTex.cs Initial non 2D textures support (#525) 2019-02-28 12:12:24 +11:00
ShaderIrMetaTexq.cs [GPU] Add more shader instructions, add support for rgb565 textures 2018-04-10 16:50:32 -03:00
ShaderIrNode.cs Merge shader branch, adding support for GLSL decompilation, a macro 2018-04-08 16:41:38 -03:00
ShaderIrOp.cs [GPU] Add more shader instructions, add support for rgb565 textures 2018-04-10 16:50:32 -03:00
ShaderIrOperAbuf.cs Implement Geometry shaders (#280) 2018-07-19 02:33:27 -03:00
ShaderIrOperCbuf.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
ShaderIrOperGpr.cs Initial support for shader half float instructions (#507) 2019-01-31 09:43:24 -03:00
ShaderIrOperImm.cs Merge shader branch, adding support for GLSL decompilation, a macro 2018-04-08 16:41:38 -03:00
ShaderIrOperImmf.cs Merge shader branch, adding support for GLSL decompilation, a macro 2018-04-08 16:41:38 -03:00
ShaderIrOperPred.cs Merge shader branch, adding support for GLSL decompilation, a macro 2018-04-08 16:41:38 -03:00
ShaderOpCodeTable.cs Initial non 2D textures support (#525) 2019-02-28 12:12:24 +11:00
ShaderOper.cs [GPU] Add more shader instructions, add support for rgb565 textures 2018-04-10 16:50:32 -03:00
ShaderRegisterSize.cs Initial support for shader half float instructions (#507) 2019-01-31 09:43:24 -03:00
ShaderTexqInfo.cs [GPU] Add more shader instructions, add support for rgb565 textures 2018-04-10 16:50:32 -03:00