1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-23 21:42:02 +00:00
Ryujinx/Ryujinx.Graphics/Gal
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
..
OpenGL Initial non 2D textures support (#525) 2019-02-28 12:12:24 +11:00
Shader Initial non 2D textures support (#525) 2019-02-28 12:12:24 +11:00
EmbeddedResource.cs Somewhat better NvFlinger (I guess) (fixes #30) 2018-02-23 18:48:27 -03: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 Merge shader branch, adding support for GLSL decompilation, a macro 2018-04-08 16:41:38 -03: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 Implement some GPU features (#209) 2018-07-05 15:47:29 -03:00
GalImage.cs Initial non 2D textures support (#525) 2019-02-28 12:12:24 +11:00
GalImageFormat.cs Some improvements for nvnflinger (#555) 2019-01-05 22:26:16 +01: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 Scissor test implementation. Partially stubbed until geometry shaders… (#556) 2019-01-13 23:26:42 +02: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 Allow "reinterpretation" of framebuffer/zeta formats (#418) 2018-09-18 01:30:35 -03:00
GalTextureFilter.cs Merge shader branch, adding support for GLSL decompilation, a macro 2018-04-08 16:41:38 -03:00
GalTextureFormat.cs Improve texture tables (#457) 2018-10-17 18:02:23 -03:00
GalTextureMipFilter.cs Merge shader branch, adding support for GLSL decompilation, a macro 2018-04-08 16:41:38 -03:00
GalTextureSampler.cs Initial non 2D textures support (#525) 2019-02-28 12:12:24 +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 Rendertarget attachments, texture and image changes (#358) 2018-08-19 22:25:26 -03:00
GalTextureWrap.cs Merge shader branch, adding support for GLSL decompilation, a macro 2018-04-08 16:41:38 -03:00
GalVertexAttrib.cs Better process implementation (#491) 2018-11-28 20:18:09 -02: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 Better process implementation (#491) 2018-11-28 20:18:09 -02:00
IGalMemory.cs Improve shader sending method to GAL, use a memory interface instead of reading a fixed array size and sending every time 2018-05-22 22:43:31 -03:00
IGalPipeline.cs Improve texture tables (#457) 2018-10-17 18:02:23 -03:00
IGalRasterizer.cs Better process implementation (#491) 2018-11-28 20:18:09 -02:00
IGalRenderer.cs Move GPU emulation from Ryujinx.HLE to Ryujinx.Graphics and misc changes (#402) 2018-09-08 14:51:50 -03:00
IGalRenderTarget.cs Initial non 2D textures support (#525) 2019-02-28 12:12:24 +11:00
IGalShader.cs Avoid querying and setting texture bindings in hot code (#376) 2018-08-23 01:54:32 -03:00
IGalTexture.cs Initial non 2D textures support (#525) 2019-02-28 12:12:24 +11:00
ShaderDeclInfo.cs Initial non 2D textures support (#525) 2019-02-28 12:12:24 +11:00
ShaderDumper.cs Initial support for shader half float instructions (#507) 2019-01-31 09:43:24 -03:00
ShaderException.cs Merge shader branch, adding support for GLSL decompilation, a macro 2018-04-08 16:41:38 -03:00