Commit Graph

123 Commits (e205e74e1f08e2f5d504b0f346f8288b56920bf3)

Author SHA1 Message Date
Hexagon12 d626bc8c62 Added predicate comparison GreaterEqualWithNan 7 years ago
Laku 915ab81ec2 gl_shader_decompiler: Implement POPC (#1203)
* Implement POPC

* implement invert
7 years ago
bunnei d6accf96ff
Merge pull request #1200 from bunnei/improve-ipa
gl_shader_decompiler: Improve IPA for Pass mode with Position attribute.
7 years ago
tech4me a6dd577d02 Shaders: Implemented IADD3 7 years ago
bunnei b1ccd88434 gl_shader_decompiler: Improve IPA for Pass mode with Position attribute. 7 years ago
Laku 36093a3e4d fix SEL_IMM bitstring 7 years ago
tech4me ba2972bc64 Shaders: Added decodings for IADD3 instructions 7 years ago
Laku 8e8326595f implement lop3 7 years ago
Lioncash a0e2bd85a5 shader_bytecode: Parenthesize conditional expression within GetTextureType()
Resolves a -Wlogical-op-parentheses warning.
7 years ago
bunnei 2ae88feea7 shader_bytecode: Replace some UNIMPLEMENTED logs. 7 years ago
bunnei b20ed93884
Merge pull request #1112 from Subv/sampler_types
Shaders: Use the correct shader type when sampling textures.
7 years ago
bunnei 51ddb130c5
Merge pull request #1089 from Subv/neg_bits
Shaders: Corrected the 'abs' and 'neg' bit usage in the float arithmetic instructions.
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
bunnei 29d4f8c2dd
Merge pull request #1109 from Subv/ldg_decode
Shaders: Added decodings for  the LDG and STG instructions.
7 years ago
bunnei 9baf5de90c
Merge pull request #1108 from Subv/front_facing
Shaders: Implemented the gl_FrontFacing input attribute (attr 63).
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 403dfd68fc
Merge pull request #1010 from bunnei/unk-vert-attrib-shader
gl_shader_decompiler: Improve handling of unknown input/output attributes.
7 years ago
bunnei 0b668d5ff3 gl_shader_decompiler: Improve handling of unknown input/output attributes. 7 years ago
bunnei 670a2c1f80
Merge pull request #1018 from Subv/ssy_sync
GPU/Shader: Implemented SSY and SYNC as a set_target/jump pair.
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 25ba4d1b68
Merge pull request #982 from bunnei/stub-unk-63
gl_shader_decompiler: Stub input attribute Unknown_63.
7 years ago
bunnei 7f0d0a93f7 gl_shader_decompiler: Stub input attribute Unknown_63. 7 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.
7 years ago
bunnei 148a5bef7e shader_bytecode: Implement other TEXS masks. 7 years ago
bunnei c43eaa94f3 gl_shader_decompiler: Implement SEL instruction. 7 years ago
Lioncash bb960c8cb4 video_core: Use nested namespaces where applicable
Compresses a few namespace specifiers to be more compact.
7 years ago
bunnei 64b5e5d5d9
Merge pull request #655 from bunnei/pred-lt-nan
gl_shader_decompiler: Implement PredCondition::LessThanWithNan.
7 years ago
bunnei 49c0c081c4 gl_shader_decompiler: Implement PredCondition::LessThanWithNan. 7 years ago
bunnei 4757ffdcce gl_shader_decompiler: Use FlowCondition field in EXIT instruction. 7 years ago
Sebastian Valle 274d1fb0fc
Merge pull request #652 from Subv/fadd32i
GPU: Implement the FADD32I shader instruction.
7 years ago
bunnei 3ff21345b4
Merge pull request #651 from Subv/ffma_decode
GPU: Corrected the decoding of FFMA for immediate operands.
7 years ago
Subv c1ae841f47 GPU: Implement the FADD32I shader instruction. 7 years ago
Subv 0cad310e12 GPU: Corrected the decoding of FFMA for immediate operands. 7 years ago
bunnei 639346bcfb
Merge pull request #625 from Subv/imnmx
GPU: Implemented the IMNMX shader instruction.
7 years ago
bunnei 762bf6a522
Merge pull request #626 from Subv/shader_sync
GPU: Stub the shader SYNC and DEPBAR instructions.
7 years ago
bunnei 8b815877a6
Merge pull request #622 from Subv/unused_tex
GPU: Ignore unused textures and corrected the TEX shader instruction decoding.
7 years ago
Subv b0c92b80b1 GPU: Implemented the IMNMX shader instruction.
It's similar to the FMNMX instruction but it works on integers.
7 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.
7 years ago
Subv c42b818cf9 GPU: Corrected the decoding for the TEX shader instruction. 7 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.
7 years ago
Subv 6e4e0b2b41 GPU: Implemented MUFU suboperation 8, sqrt. 7 years ago
bunnei 066d6184d4
Merge pull request #602 from Subv/mufu_subop
GPU: Corrected the size of the MUFU subop field, and removed incorrect "min" operation.
7 years ago