Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | clang-format | Nguyen Dac Nam | 2020-03-31 | 1 | -2/+1 |
| | |||||
* | shader_decode: fix by suggestion | Nguyen Dac Nam | 2020-03-31 | 1 | -27/+22 |
| | |||||
* | clang-format | namkazy | 2020-03-30 | 1 | -3/+3 |
| | |||||
* | shader_decode: ATOM/ATOMS: add function to avoid code repetition | namkazy | 2020-03-30 | 1 | -70/+39 |
| | |||||
* | shader_decode: implement ATOM operation for S32 and U32 | Nguyen Dac Nam | 2020-03-30 | 1 | -6/+39 |
| | |||||
* | clang-format | namkazy | 2020-03-30 | 1 | -3/+3 |
| | |||||
* | shader_decode: implement ATOMS instr partial. | Nguyen Dac Nam | 2020-03-30 | 1 | -10/+42 |
| | |||||
* | Merge pull request #3347 from ReinUsesLisp/local-mem | bunnei | 2020-01-30 | 1 | -30/+55 |
|\ | | | | | shader/memory: Implement LDL.S16, LDS.S16, STL.S16 and STS.S16 | ||||
| * | shader/memory: Implement STL.S16 and STS.S16 | ReinUsesLisp | 2020-01-25 | 1 | -3/+10 |
| | | |||||
| * | shader/memory: Implement unaligned LDL.S16 and LDS.S16 | ReinUsesLisp | 2020-01-25 | 1 | -5/+3 |
| | | |||||
| * | shader/memory: Move unaligned load/store to functions | ReinUsesLisp | 2020-01-25 | 1 | -18/+27 |
| | | |||||
| * | shader/memory: Implement LDL.S16 and LDS.S16 | ReinUsesLisp | 2020-01-25 | 1 | -12/+23 |
| | | |||||
* | | shader/memory: Implement ATOM.ADD | ReinUsesLisp | 2020-01-26 | 1 | -1/+21 |
|/ | | | | | | | | | | | | | ATOM operates atomically on global memory. For now only add ATOM.ADD since that's what was found in commercial games. This asserts for ATOM.ADD.S32 (handling the others as unimplemented), although ATOM.ADD.U32 shouldn't be any different. This change forces us to change the default type on SPIR-V storage buffers from float to uint. We could also alias the buffers, but it's simpler for now to just use uint. While we are at it, abstract the code to avoid repetition. | ||||
* | shader/memory: Implement ATOMS.ADD.U32 | ReinUsesLisp | 2020-01-16 | 1 | -0/+19 |
| | |||||
* | shader_ir/memory: Implement u16 and u8 for STG and LDG | ReinUsesLisp | 2020-01-09 | 1 | -33/+51 |
| | | | | | | | Using the same technique we used for u8 on LDG, implement u16. In the case of STG, load memory and insert the value we want to set into it with bitfieldInsert. Then set that value. | ||||
* | shader/memory: Implement LDG.U8 and unaligned U8 loads | ReinUsesLisp | 2019-12-18 | 1 | -6/+32 |
| | | | | | | | | | | | | LDG can load single bytes instead of full integers or packs of integers. These have the advantage of loading bytes that are not aligned to 4 bytes. To emulate these this commit gets the byte being referenced (by doing "address & 3" and then using that to extract the byte from the loaded integer: result = bitfieldExtract(loaded_integer, (address % 4) * 8, 8) | ||||
* | shader_ir/memory: Implement patch stores | ReinUsesLisp | 2019-12-10 | 1 | -16/+18 |
| | |||||
* | shader_ir/memory: Ignore global memory when tracking fails | ReinUsesLisp | 2019-10-22 | 1 | -16/+23 |
| | | | | | | | | | | | Ignore global memory operations instead of invoking undefined behaviour when constant buffer tracking fails and we are blasting through asserts, ignore the operation. In the case of LDG this means filling the destination registers with zeroes; for STG this means ignore the instruction as a whole. The default behaviour is still to abort execution on failure. | ||||
* | shader_ir: Implement LD_S | ReinUsesLisp | 2019-09-05 | 1 | -10/+13 |
| | | | | Loads from shared memory. | ||||
* | shader_ir: Implement ST_S | ReinUsesLisp | 2019-09-05 | 1 | -9/+16 |
| | | | | | This instruction writes to a memory buffer shared with threads within the same work group. It is known as "shared" memory in GLSL. | ||||
* | shader_ir: Rename Get/SetTemporal to Get/SetTemporary | Lioncash | 2019-07-17 | 1 | -11/+11 |
| | | | | | | This is more accurate in terms of describing what the functions are actually doing. Temporal relates to time, not the setting of a temporary itself. | ||||
* | shader: Allow tracking of indirect buffers without variable offset | ReinUsesLisp | 2019-07-15 | 1 | -12/+7 |
| | | | | | | While changing this code, simplify tracking code to allow returning the base address node, this way callers don't have to manually rebuild it on each invocation. | ||||
* | shader: Use shared_ptr to store nodes and move initialization to file | ReinUsesLisp | 2019-06-06 | 1 | -4/+5 |
| | | | | | | | | | Instead of having a vector of unique_ptr stored in a vector and returning star pointers to this, use shared_ptr. While changing initialization code, move it to a separate file when possible. This is a first step to allow code analysis and node generation beyond the ShaderIR class. | ||||
* | Merge pull request #2485 from ReinUsesLisp/generic-memory | bunnei | 2019-05-25 | 1 | -27/+55 |
|\ | | | | | shader/memory: Implement generic memory stores and loads (ST and LD) | ||||
| * | shader/memory: Implement ST (generic memory) | ReinUsesLisp | 2019-05-21 | 1 | -21/+35 |
| | | |||||
| * | shader/memory: Implement LD (generic memory) | ReinUsesLisp | 2019-05-21 | 1 | -7/+21 |
| | | |||||
* | | shader/decode/memory: Remove left in debug pragma | Lioncash | 2019-05-22 | 1 | -2/+0 |
|/ | |||||
* | shader_ir/memory: Assert on non-32 bits ALD.PHYS | ReinUsesLisp | 2019-05-03 | 1 | -0/+3 |
| | |||||
* | shader: Add physical attributes commentaries | ReinUsesLisp | 2019-05-03 | 1 | -1/+1 |
| | |||||
* | shader_ir/memory: Implement physical input attributes | ReinUsesLisp | 2019-05-03 | 1 | -3/+6 |
| | |||||
* | shader: Remove unused AbufNode Ipa mode | ReinUsesLisp | 2019-05-03 | 1 | -5/+2 |
| | |||||
* | shader_ir/memory: Emit AL2P IR | ReinUsesLisp | 2019-05-03 | 1 | -0/+17 |
| | |||||
* | Merge pull request #2315 from ReinUsesLisp/severity-decompiler | bunnei | 2019-04-17 | 1 | -4/+5 |
|\ | | | | | shader_ir/decode: Reduce the severity of common assertions | ||||
| * | shader_ir/memory: Reduce severity of LD_L cache management and log it | ReinUsesLisp | 2019-04-03 | 1 | -2/+2 |
| | | |||||
| * | shader_ir/memory: Reduce severity of ST_L cache management and log it | ReinUsesLisp | 2019-04-03 | 1 | -2/+3 |
| | | |||||
* | | shader_ir: Implement STG, keep track of global memory usage and flush | ReinUsesLisp | 2019-04-14 | 1 | -35/+74 |
|/ | |||||
* | shader/decode: Split memory and texture instructions decoding | ReinUsesLisp | 2019-02-26 | 1 | -493/+0 |
| | |||||
* | Merge pull request #2118 from FernandoS27/ipa-improve | bunnei | 2019-02-25 | 1 | -1/+1 |
|\ | | | | | shader_decompiler: Improve Accuracy of Attribute Interpolation. | ||||
| * | shader_decompiler: Improve Accuracy of Attribute Interpolation. | Fernando Sahmkow | 2019-02-14 | 1 | -1/+1 |
| | | |||||
* | | gl_shader_decompiler: Re-implement TLDS lod | ReinUsesLisp | 2019-02-12 | 1 | -1/+1 |
|/ | |||||
* | shader_ir: Remove F4 prefix to texture operations | ReinUsesLisp | 2019-02-07 | 1 | -8/+7 |
| | | | | | | This was originally included because texture operations returned a vec4. These operations now return a single float and the F4 prefix doesn't mean anything. | ||||
* | shader_ir: Clean texture management code | ReinUsesLisp | 2019-02-07 | 1 | -96/+58 |
| | | | | | | | | | Previous code relied on GLSL parameter order (something that's always ill-formed on an IR design). This approach passes spatial coordiantes through operation nodes and array and depth compare values in the the texture metadata. It still contains an "extra" vector containing generic nodes for bias and component index (for example) which is still a bit ill-formed but it should be better than the previous approach. | ||||
* | Merge pull request #2083 from ReinUsesLisp/shader-ir-cbuf-tracking | bunnei | 2019-02-07 | 1 | -6/+6 |
|\ | | | | | shader/track: Add a more permissive global memory tracking | ||||
| * | shader_ir: Rename BasicBlock to NodeBlock | ReinUsesLisp | 2019-02-03 | 1 | -5/+4 |
| | | | | | | | | It's not always used as a basic block. Rename it for consistency. | ||||
| * | shader_ir: Pass decoded nodes as a whole instead of per basic blocks | ReinUsesLisp | 2019-02-03 | 1 | -2/+3 |
| | | | | | | | | | | | | | | | | | | Some games call LDG at the top of a basic block, making the tracking heuristic to fail. This commit lets the heuristic the decoded nodes as a whole instead of per basic blocks. This may lead to some false positives but allows it the heuristic to track cases it previously couldn't. | ||||
* | | Merge pull request #2081 from ReinUsesLisp/lmem-64 | bunnei | 2019-02-05 | 1 | -12/+43 |
|\ \ | | | | | | | shader_ir/memory: Add LD_L 64 bits loads | ||||
| * | | shader_ir/memory: Add ST_L 64 and 128 bits stores | ReinUsesLisp | 2019-02-03 | 1 | -3/+11 |
| | | | |||||
| * | | shader_ir/memory: Add LD_L 128 bits loads | ReinUsesLisp | 2019-02-03 | 1 | -7/+19 |
| | | | |||||
| * | | shader_bytecode: Rename BytesN enums to BitsN | ReinUsesLisp | 2019-02-03 | 1 | -4/+4 |
| | | | |||||
| * | | shader_ir/memory: Add LD_L 64 bits loads | ReinUsesLisp | 2019-02-03 | 1 | -6/+17 |
| |/ | |||||
* | | Merge pull request #2082 from FernandoS27/txq-stl | bunnei | 2019-02-05 | 1 | -6/+9 |
|\ \ | |/ |/| | Fix TXQ not using the component mask. | ||||
| * | Fix TXQ not using the component mask. | Fernando Sahmkow | 2019-02-03 | 1 | -6/+9 |
| | | |||||
* | | shader_ir: Unify constant buffer offset values | ReinUsesLisp | 2019-01-30 | 1 | -3/+3 |
|/ | | | | | | | Constant buffer values on the shader IR were using different offsets if the access direct or indirect. cbuf34 has a non-multiplied offset while cbuf36 does. On shader decoding this commit multiplies it by four on cbuf34 queries. | ||||
* | shader_decode: Implement LDG and basic cbuf tracking | ReinUsesLisp | 2019-01-30 | 1 | -0/+49 |
| | |||||
* | shader_ir: Pass to decoder functions basic block's code | ReinUsesLisp | 2019-01-15 | 1 | -1/+1 |
| | |||||
* | shader_ir: Remove composite primitives and use temporals instead | ReinUsesLisp | 2019-01-15 | 1 | -145/+149 |
| | |||||
* | shader_decode: Use proper primitive names | ReinUsesLisp | 2019-01-15 | 1 | -2/+2 |
| | |||||
* | shader_ir: Remove RZ and use Register::ZeroIndex instead | ReinUsesLisp | 2019-01-15 | 1 | -6/+11 |
| | |||||
* | shader_decode: Implement TEXS.F16 | ReinUsesLisp | 2019-01-15 | 1 | -13/+25 |
| | |||||
* | shader_decode: Implement TLDS (untested) | ReinUsesLisp | 2019-01-15 | 1 | -8/+61 |
| | |||||
* | shader_decode: Update TLD4 reflecting #1862 changes | ReinUsesLisp | 2019-01-15 | 1 | -52/+49 |
| | |||||
* | shader_ir: Fixup TEX and TEXS and partially fix TLD4 decompiling | ReinUsesLisp | 2019-01-15 | 1 | -50/+49 |
| | |||||
* | shader_decode: Implement ST_L | ReinUsesLisp | 2019-01-15 | 1 | -0/+17 |
| | |||||
* | shader_decode: Implement LD_L | ReinUsesLisp | 2019-01-15 | 1 | -0/+18 |
| | |||||
* | shader_decode: Implement LD_C | ReinUsesLisp | 2019-01-15 | 1 | -0/+31 |
| | |||||
* | shader_decode: Implement TMML | ReinUsesLisp | 2019-01-15 | 1 | -3/+45 |
| | |||||
* | shader_decode: Implement TEX and TXQ | ReinUsesLisp | 2019-01-15 | 1 | -0/+219 |
| | |||||
* | shader_decode: Implement TEXS (F32) | ReinUsesLisp | 2019-01-15 | 1 | -0/+199 |
| | |||||
* | shader_decode: Implement ST_A | ReinUsesLisp | 2019-01-15 | 1 | -0/+30 |
| | |||||
* | shader_decode: Implement LD_A | ReinUsesLisp | 2019-01-15 | 1 | -1/+39 |
| | |||||
* | shader_ir: Initial implementation | ReinUsesLisp | 2019-01-15 | 1 | -0/+24 |