Liam
9245b426e3
shader_recompiler: fix emulation of 3D textureGrad
2 years ago
Fernando Sahmkow
c03f0b3c89
Shader Recomnpiler: implement textuzreGrad 3D emulation constant propagation
2 years ago
Wollnashorn
780240e697
shader_recompiler: Add subpixel offset for correct rounding at `ImageGather`
On AMD a subpixel offset of 1/512 of the texel size is applied to the texture coordinates at a ImageGather call to ensure the rounding at the texel centers is done the same way as in Maxwell or other Nvidia architectures.
See https://www.reedbeta.com/blog/texture-gathers-and-coordinate-precision/ for more details why this might be necessary.
This should fix shadow artifacts at object edges in Zelda: Breath of the Wild (#9957 , #6956 ).
3 years ago
ameerj
08feba2b56
emit_glsl_image: Implement TXQ with MSAA textures
Also fixes for texture buffers, which do not have mips eithers.
3 years ago
ameerj
2c2e019a44
shader_recompiler: TXQ: Skip QueryLevels when possible
3 years ago
ameerj
c0cedbae94
emit_glsl_image: Fix ImageFetch for MSAA textures
3 years ago
FengChen
b2a6dde438
video_code: support rectangle texture
3 years ago
Morph
99ceb03a1c
general: Convert source file copyright comments over to SPDX
This formats all copyright comments according to SPDX formatting guidelines.
Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
4 years ago
ameerj
f32b2bcd20
shader_recompiler: Adjust emit_context includes
4 years ago
ReinUsesLisp
e66d5b88a6
shader: Properly scale image reads and add GL SPIR-V support
Thanks for everything!
4 years ago
ReinUsesLisp
cfeb161c7e
glsl/glasm: Pass and use scaling parameters in shaders
4 years ago
ReinUsesLisp
c15332c44f
shader: Add IsTextureScaled opcode
4 years ago
ameerj
ae4e452759
glsl: Add Shader_GLSL logging
5 years ago
ameerj
5e7b2b9661
glsl: Add stubs for sparse queries and variable aoffi when not supported
5 years ago
ameerj
39c29664f9
glsl: Minor cleanup
5 years ago
ameerj
e81c73a874
glsl: Address more feedback. Implement indexed texture reads
5 years ago
ameerj
85399e119d
glsl: Reorganize backend code, remove unneeded [[maybe_unused]]
5 years ago
ameerj
421847cf1e
glsl: Implement image atomics and set layer
along with some more cleanup/oversight fixes
5 years ago
ameerj
d41aef03c7
glsl: Fix image gather logic
5 years ago
ameerj
747b8556a4
glsl: Use textureGrad fallback when EXT_texture_shadow_lod is unsupported
5 years ago
ameerj
d12f2b8ccf
emit_glsl_image: Use immediate offsets when possible
5 years ago
ameerj
34fdb6471d
glsl: Cleanup and address feedback
5 years ago
ameerj
8d8ce24f20
glsl: Implement Load/WriteGlobal
along with some other misc changes and fixes
5 years ago
ameerj
af9696059c
glsl: Implement Images
5 years ago
ameerj
c7d085b505
glsl: Implement ImageGradient and other texture function variants
5 years ago
ameerj
df53046d68
glsl: Use NotImplemented macro with function name output
5 years ago
ameerj
3a024b3026
glsl: Implement gl_ViewportIndex
SSBU now working
5 years ago
ameerj
1269a0cf8b
glsl: Rework variable allocator to allow for variable reuse
5 years ago
ameerj
7df0815117
glsl: Implement more instructions used by SMO
5 years ago
ameerj
1542f31e79
glsl: minor cleanup
5 years ago
ameerj
3047eb6688
glsl: Implement TXQ and other misc changes
5 years ago
ameerj
5fd92780b2
glsl: TLD4 implementation
5 years ago
ameerj
697eacd095
glsl: Implement TLD instruction
5 years ago
ameerj
e4ba755705
glsl: Implement TEXS
5 years ago
ameerj
59a692e9ed
glsl: Cleanup texture functions
5 years ago
lat9nq
c9a25855bc
shader_recompiler: GCC fixes
5 years ago
ameerj
7619b7d427
glsl: Implement TEX depth functions
5 years ago
ameerj
55e0211a5e
glsl: Implement TEX ImageSample functions
5 years ago
ameerj
453cd25da5
glsl: SSBO access fixes and wip SampleExplicitLod implementation.
5 years ago
ameerj
2a71333716
glsl: Fix bindings, add some CC ops
5 years ago
ameerj
6674637853
glsl: remove unused headers
5 years ago
ameerj
a752ec88d0
glsl: Implement derivatives and YDirection
plus some other misc additions/changed
5 years ago
ameerj
d171083d53
glsl: textures wip
5 years ago
ameerj
3d086e6130
glsl: Implement some attribute getters and setters
5 years ago
ameerj
eaff1030de
glsl: Initial backend
5 years ago
ReinUsesLisp
b10cf64c48
glasm: Add GLASM backend infrastructure
5 years ago