bunnei
2ae88feea7
shader_bytecode: Replace some UNIMPLEMENTED logs.
7 years ago
Subv
f7edbcd7a3
Shaders/TEXS: Fixed the component mask in the TEXS instruction.
Previously we could end up with a TEXS that didn't write any outputs, this was wrong.
7 years ago
Subv
73b937b190
Shader: Added bitfields for the texture type of the various sampling instructions.
7 years ago
Subv
656758fd81
Shaders: Added decodings for TLD4 and TLD4S
7 years ago
Subv
1b92ae136f
Shaders: Added decodings for the LDG and STG instructions.
7 years ago
Subv
731701a2d2
Shaders: Implemented the gl_FrontFacing input attribute (attr 63).
7 years ago
Subv
8335b2f115
Shader: Implemented the predicate and mode arguments of LOP.
The mode can be used to set the predicate to true depending on the result of the logic operation. In some cases, this means discarding the result (writing it to register 0xFF (Zero)).
This is used by Super Mario Odyssey.
7 years ago
Subv
2e95ba2e9c
Shaders: Corrected the 'abs' and 'neg' bit usage in the float arithmetic instructions.
We should definitely audit our shader generator for more errors like this.
7 years ago
David Marcec
63dff47e22
Added predcondition GreaterThanWithNan
7 years ago
bunnei
534abf9d97
gl_shader_decompiler: Implement XMAD instruction.
7 years ago
bunnei
0b668d5ff3
gl_shader_decompiler: Improve handling of unknown input/output attributes.
7 years ago
Subv
c1ad973881
GPU/Shader: Don't predicate instructions that don't have a predicate field (SSY).
7 years ago
Lioncash
b8c43b6080
video_core: Use variable template variants of type_traits interfaces where applicable
7 years ago
bunnei
7f0d0a93f7
gl_shader_decompiler: Stub input attribute Unknown_63.
8 years ago
bunnei
e542356d0c
gl_shader_decompiler: Let OpenGL interpret floats.
- Accuracy is lost in translation to string, e.g. with NaN.
- Needed for Super Mario Odyssey.
8 years ago
bunnei
148a5bef7e
shader_bytecode: Implement other TEXS masks.
8 years ago
bunnei
c43eaa94f3
gl_shader_decompiler: Implement SEL instruction.
8 years ago
Lioncash
bb960c8cb4
video_core: Use nested namespaces where applicable
Compresses a few namespace specifiers to be more compact.
8 years ago
bunnei
49c0c081c4
gl_shader_decompiler: Implement PredCondition::LessThanWithNan.
8 years ago
bunnei
4757ffdcce
gl_shader_decompiler: Use FlowCondition field in EXIT instruction.
8 years ago
Subv
c1ae841f47
GPU: Implement the FADD32I shader instruction.
8 years ago
Subv
0cad310e12
GPU: Corrected the decoding of FFMA for immediate operands.
8 years ago
Subv
b0c92b80b1
GPU: Implemented the IMNMX shader instruction.
It's similar to the FMNMX instruction but it works on integers.
8 years ago
Subv
77cfe4f027
GPU: Stub the shader SYNC and DEPBAR instructions.
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.
8 years ago
Subv
c42b818cf9
GPU: Corrected the decoding for the TEX shader instruction.
8 years ago
Subv
53a55bd751
GPU: Implemented the PSETP shader instruction.
It's similar to the isetp and fsetp instructions but it works on predicates instead.
8 years ago
Subv
6e4e0b2b41
GPU: Implemented MUFU suboperation 8, sqrt.
8 years ago
Subv
f33e406ff2
GPU: Corrected the size of the MUFU subop field, and removed incorrect "min" operation.
8 years ago
bunnei
c96da97630
gl_shader_decompiler: Implement predicate NotEqualWithNan.
8 years ago
Subv
a3d82ef5d9
Build: Fixed some MSVC warnings in various parts of the code.
8 years ago
Subv
eab7457c00
GPU: Don't mark uniform buffers and registers as used for instructions which don't have them.
Like the MOV32I and FMUL32I instructions.
This fixes a potential crash when using these instructions.
8 years ago
bunnei
afdd657d30
gl_shader_decompiler: Implement LOP instructions.
8 years ago
bunnei
5673ce39c7
gl_shader_decompiler: Refactor LOP32I instruction a bit in support of LOP.
8 years ago
bunnei
d383043e07
gl_shader_decompiler: Implement integer size conversions for I2I/I2F/F2I.
8 years ago
Subv
db0497b808
GPU: Implemented the iadd32i shader instruction.
8 years ago
bunnei
5f3d6c85db
gl_shader_decompiler: Implement saturate for float instructions.
8 years ago
Subv
b366b885a1
GPU: Implement the iset family of shader instructions.
8 years ago
Subv
3cb753eeb1
GPU: Added decodings for the ISET family of instructions.
8 years ago
bunnei
5440b9c634
gl_shader_decompiler: Implement SHR instruction.
8 years ago
Subv
abec5f82e2
GPU: Stub the SSY shader instruction.
This instruction tells the GPU where the flow reconverges in a non-uniform control flow scenario, we can ignore this when generating GLSL code.
8 years ago
bunnei
bbc4f369ed
gl_shader_decompiler: Implement IADD instruction.
8 years ago
bunnei
79e9c2e237
gl_shader_decompiler: Add missing asserts for saturate_a instructions.
8 years ago
bunnei
92209f905f
gl_shader_decompiler: Implement BFE_IMM instruction.
8 years ago
bunnei
128aeba0f3
gl_shader_decompiler: F2F: Implement rounding modes.
8 years ago
bunnei
4b114e1b8a
shader_bytecode: Add instruction decodings for BFE, IMNMX, and XMAD.
8 years ago
bunnei
4669f15f8b
gl_shader_decompiler: Implement LD_C instruction.
8 years ago
bunnei
6e386a334b
gl_shader_decompiler: Refactor uniform handling to allow different decodings.
8 years ago
Subv
e7dfcdde74
GPU: Corrected the branch targets for the shader bra instruction.
8 years ago
Subv
4b89348c00
GPU: Implemented the F2I_R shader instruction.
8 years ago
bunnei
c23c30c76f
gl_shader_decompiler: Implement SHL instruction.
8 years ago