Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gl_shader_decompiler: Reserve element memory beforehand in BuildRegisterList() | Lioncash | 2018-08-09 | 1 | -0/+2 |
| | | | | | Avoids potentially perfoming multiple reallocations when we know the total amount of memory we need beforehand. | ||||
* | gl_shader_decompiler: Declare predicates on use. | bunnei | 2018-08-09 | 1 | -4/+5 |
| | | | | - Used by Super Mario Odyssey (when going in game). | ||||
* | Merge pull request #982 from bunnei/stub-unk-63 | bunnei | 2018-08-09 | 1 | -0/+7 |
|\ | | | | | gl_shader_decompiler: Stub input attribute Unknown_63. | ||||
| * | gl_shader_decompiler: Stub input attribute Unknown_63. | bunnei | 2018-08-08 | 1 | -0/+7 |
| | | |||||
* | | gl_shader_decompiler: Let OpenGL interpret floats. | bunnei | 2018-08-08 | 1 | -2/+2 |
|/ | | | | | - Accuracy is lost in translation to string, e.g. with NaN. - Needed for Super Mario Odyssey. | ||||
* | gl_shader_decompiler: Fix TEXS mask and dest. | bunnei | 2018-08-05 | 1 | -2/+5 |
| | |||||
* | gl_shader_decompiler: Remove unused variable in GenerateDeclarations() | Lioncash | 2018-08-03 | 1 | -2/+0 |
| | | | | | This variable was being incremented, but we were never actually using it. | ||||
* | Merge pull request #792 from lioncash/retval | bunnei | 2018-07-24 | 1 | -2/+2 |
|\ | | | | | gl_shader_decompiler: Correct return value of WriteTexsInstruction() | ||||
| * | gl_shader_decompiler: Correct return value of WriteTexsInstruction() | Lioncash | 2018-07-24 | 1 | -2/+2 |
| | | | | | | | | This should be returning void, not a std::string | ||||
* | | Merge pull request #790 from bunnei/shader-print-instr | bunnei | 2018-07-24 | 1 | -1/+2 |
|\ \ | | | | | | | gl_shader_decompiler: Print instruction value in shader comments. | ||||
| * | | gl_shader_decompiler: Print instruction value in shader comments. | bunnei | 2018-07-24 | 1 | -1/+2 |
| | | | |||||
* | | | Merge pull request #788 from bunnei/shader-check-zero | bunnei | 2018-07-24 | 1 | -0/+6 |
|\ \ \ | |_|/ |/| | | gl_shader_decompiler: Check if SetRegister result is ZeroIndex. | ||||
| * | | gl_shader_decompiler: Check if SetRegister result is ZeroIndex. | bunnei | 2018-07-24 | 1 | -0/+6 |
| |/ | |||||
* | | gl_shader_decompiler: Implement shader instruction TLDS. | bunnei | 2018-07-24 | 1 | -29/+43 |
| | | |||||
* | | gl_shader_decompiler: Simplify GetCommonDeclarations() | Lioncash | 2018-07-23 | 1 | -5/+5 |
|/ | |||||
* | gl_shader_decompiler: Remove redundant Subroutine construction in AddSubroutine() | Lioncash | 2018-07-22 | 1 | -4/+8 |
| | | | | | | We don't need to toss away the Subroutine instance after the find() call and reconstruct another instance with the same data right after it. Particularly give Subroutine contains a std::set. | ||||
* | Merge pull request #767 from bunnei/shader-cleanup | bunnei | 2018-07-22 | 1 | -78/+15 |
|\ | | | | | gl_shader_decompiler: Remove unused state tracking and minor cleanup. | ||||
| * | gl_shader_decompiler: Remove unused state tracking and minor cleanup. | bunnei | 2018-07-22 | 1 | -78/+15 |
| | | |||||
* | | gl_shader_decompiler: Implement SEL instruction. | bunnei | 2018-07-22 | 1 | -0/+9 |
|/ | |||||
* | video_core: Use nested namespaces where applicable | Lioncash | 2018-07-21 | 1 | -4/+2 |
| | | | | Compresses a few namespace specifiers to be more compact. | ||||
* | Merge pull request #731 from lioncash/shadow | bunnei | 2018-07-20 | 1 | -6/+4 |
|\ | | | | | gl_shader_decompiler: Eliminate variable and declaration shadowing | ||||
| * | gl_shader_decompiler: Eliminate variable and declaration shadowing | Lioncash | 2018-07-20 | 1 | -6/+4 |
| | | | | | | | | | | Ensures that no identifiers are being hidden, which also reduces compiler warnings. | ||||
* | | gl_shader_decompiler: Remove unnecessary const from return values | Lioncash | 2018-07-20 | 1 | -2/+2 |
|/ | | | | | This adds nothing from a behavioral point of view, and can inhibit the move constructor/RVO | ||||
* | gl_shader_gen: Implement dual vertex shader mode. | bunnei | 2018-07-13 | 1 | -32/+39 |
| | | | | - When VertexA shader stage is enabled, we combine with VertexB program to make a single Vertex Shader stage. | ||||
* | Merge pull request #655 from bunnei/pred-lt-nan | bunnei | 2018-07-13 | 1 | -5/+6 |
|\ | | | | | gl_shader_decompiler: Implement PredCondition::LessThanWithNan. | ||||
| * | gl_shader_decompiler: Implement PredCondition::LessThanWithNan. | bunnei | 2018-07-13 | 1 | -5/+6 |
| | | |||||
* | | gl_shader_decompiler: Use FlowCondition field in EXIT instruction. | bunnei | 2018-07-13 | 1 | -8/+25 |
|/ | |||||
* | Merge pull request #652 from Subv/fadd32i | Sebastian Valle | 2018-07-13 | 1 | -0/+23 |
|\ | | | | | GPU: Implement the FADD32I shader instruction. | ||||
| * | GPU: Implement the FADD32I shader instruction. | Subv | 2018-07-12 | 1 | -0/+23 |
| | | |||||
* | | Merge pull request #625 from Subv/imnmx | bunnei | 2018-07-08 | 1 | -0/+14 |
|\ \ | |/ |/| | GPU: Implemented the IMNMX shader instruction. | ||||
| * | GPU: Implemented the IMNMX shader instruction. | Subv | 2018-07-04 | 1 | -0/+14 |
| | | | | | | | | It's similar to the FMNMX instruction but it works on integers. | ||||
* | | Merge pull request #626 from Subv/shader_sync | bunnei | 2018-07-05 | 1 | -0/+7 |
|\ \ | | | | | | | GPU: Stub the shader SYNC and DEPBAR instructions. | ||||
| * | | GPU: Stub the shader SYNC and DEPBAR instructions. | Subv | 2018-07-04 | 1 | -0/+7 |
| |/ | | | | | | | 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. | ||||
* | | Merge pull request #624 from Subv/f2f_round | bunnei | 2018-07-05 | 1 | -0/+3 |
|\ \ | | | | | | | GPU: Implemented the F2F 'round' rounding mode. | ||||
| * | | GPU: Implemented the F2F 'round' rounding mode. | Subv | 2018-07-04 | 1 | -0/+3 |
| |/ | | | | | | | It's implemented via the GLSL 'roundEven()' function. | ||||
* / | GPU: Implemented the PSETP shader instruction. | Subv | 2018-07-04 | 1 | -0/+30 |
|/ | | | | It's similar to the isetp and fsetp instructions but it works on predicates instead. | ||||
* | Merge pull request #607 from jroweboy/logging | bunnei | 2018-07-03 | 1 | -26/+26 |
|\ | | | | | Logging - Customizable backends | ||||
| * | Update clang format | James Rowe | 2018-07-03 | 1 | -6/+6 |
| | | |||||
| * | Rename logging macro back to LOG_* | James Rowe | 2018-07-03 | 1 | -20/+20 |
| | | |||||
* | | GPU: Implemented MUFU suboperation 8, sqrt. | Subv | 2018-07-03 | 1 | -0/+4 |
|/ | |||||
* | Merge pull request #602 from Subv/mufu_subop | bunnei | 2018-07-01 | 1 | -4/+0 |
|\ | | | | | GPU: Corrected the size of the MUFU subop field, and removed incorrect "min" operation. | ||||
| * | GPU: Corrected the size of the MUFU subop field, and removed incorrect "min" operation. | Subv | 2018-06-30 | 1 | -4/+0 |
| | | |||||
* | | gl_shader_decompiler: Implement predicate NotEqualWithNan. | bunnei | 2018-06-30 | 1 | -17/+23 |
|/ | |||||
* | gl_shader_decompiler: Add a return path for unknown instructions. | bunnei | 2018-06-27 | 1 | -0/+1 |
| | |||||
* | Merge pull request #554 from Subv/constbuffer_ubo | bunnei | 2018-06-26 | 1 | -6/+16 |
|\ | | | | | Rasterizer: Use UBOs instead of SSBOs for uploading const buffers. | ||||
| * | Rasterizer: Use UBOs instead of SSBOs for uploading const buffers. | Subv | 2018-06-10 | 1 | -6/+16 |
| | | | | | | | | This should help a bit with GPU performance once we're GPU-bound. | ||||
* | | Build: Fixed some MSVC warnings in various parts of the code. | Subv | 2018-06-20 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #574 from Subv/shader_abs_neg | bunnei | 2018-06-19 | 1 | -7/+14 |
|\ \ | | | | | | | GPU: Perform negation after absolute value in the float shader instructions. | ||||
| * | | GPU: Perform negation after absolute value in the float shader instructions. | Subv | 2018-06-19 | 1 | -7/+14 |
| | | | |||||
* | | | GPU: Don't mark uniform buffers and registers as used for instructions which don't have them. | Subv | 2018-06-19 | 1 | -12/+15 |
|/ / | | | | | | | | | Like the MOV32I and FMUL32I instructions. This fixes a potential crash when using these instructions. | ||||
* | | gl_shader_decompiler: Implement LOP instructions. | bunnei | 2018-06-17 | 1 | -6/+28 |
| | | |||||
* | | gl_shader_decompiler: Refactor LOP32I instruction a bit in support of LOP. | bunnei | 2018-06-17 | 1 | -54/+40 |
| | | |||||
* | | gl_shader_decompiler: Implement integer size conversions for I2I/I2F/F2I. | bunnei | 2018-06-16 | 1 | -13/+41 |
| | | |||||
* | | gl_shader_decompiler: Implement LOP32I LogicOperation PassB. | bunnei | 2018-06-16 | 1 | -6/+12 |
| | | |||||
* | | Merge pull request #558 from Subv/iadd32i | bunnei | 2018-06-12 | 1 | -0/+21 |
|\ \ | | | | | | | GPU: Implemented the iadd32i shader instruction. | ||||
| * | | GPU: Implemented the iadd32i shader instruction. | Subv | 2018-06-12 | 1 | -0/+21 |
| | | | |||||
* | | | gl_shader_decompiler: Implement saturate for float instructions. | bunnei | 2018-06-12 | 1 | -37/+31 |
|/ / | |||||
* | | GPU: Convert the gl_InstanceId and gl_VertexID variables to floats when reading from them. | Subv | 2018-06-10 | 1 | -1/+1 |
| | | | | | | | | This corrects the invalid position values in some games when doing attribute-less rendering. | ||||
* | | GPU: Implement the iset family of shader instructions. | Subv | 2018-06-09 | 1 | -2/+37 |
|/ | |||||
* | Merge pull request #550 from Subv/ssy | bunnei | 2018-06-09 | 1 | -0/+5 |
|\ | | | | | GPU: Stub the SSY shader instruction. | ||||
| * | GPU: Stub the SSY shader instruction. | Subv | 2018-06-09 | 1 | -0/+5 |
| | | | | | | | | This instruction tells the GPU where the flow reconverges in a non-uniform control flow scenario, we can ignore this when generating GLSL code. | ||||
* | | Merge pull request #551 from bunnei/shr | bunnei | 2018-06-09 | 1 | -0/+13 |
|\ \ | | | | | | | gl_shader_decompiler: Implement SHR instruction. | ||||
| * | | gl_shader_decompiler: Implement SHR instruction. | bunnei | 2018-06-09 | 1 | -0/+13 |
| |/ | |||||
* | | gl_shader_decompiler: Implement IADD instruction. | bunnei | 2018-06-09 | 1 | -6/+26 |
| | | |||||
* | | gl_shader_decompiler: Add missing asserts for saturate_a instructions. | bunnei | 2018-06-09 | 1 | -7/+17 |
|/ | |||||
* | gl_shader_decompiler: Implement BFE_IMM instruction. | bunnei | 2018-06-07 | 1 | -4/+29 |
| | |||||
* | gl_shader_decompiler: F2F: Implement rounding modes. | bunnei | 2018-06-07 | 1 | -7/+23 |
| | |||||
* | Merge pull request #537 from bunnei/misc-shader | bunnei | 2018-06-07 | 1 | -8/+4 |
|\ | | | | | gl_shader_decompiler: Additional decodings, remove unused stuff from TEX | ||||
| * | gl_shader_decompiler: Remove some attribute stuff that has nothing to do with TEX/TEXS. | bunnei | 2018-06-07 | 1 | -8/+4 |
| | | |||||
* | | gl_shader_decompiler: Implement ISETP_IMM instruction. | bunnei | 2018-06-07 | 1 | -8/+9 |
|/ | |||||
* | Merge pull request #534 from Subv/multitexturing | bunnei | 2018-06-07 | 1 | -7/+38 |
|\ | | | | | GPU: Implement sampling multiple textures in the generated glsl shaders. | ||||
| * | GPU: Implement sampling multiple textures in the generated glsl shaders. | Subv | 2018-06-06 | 1 | -7/+38 |
| | | | | | | | | | | | | All tested games that use a single texture show no regression. Only Texture2D textures are supported right now, each shader gets its own "tex_fs/vs/gs" sampler array to maintain independent textures between shader stages, the textures themselves are reused if possible. | ||||
* | | gl_shader_decompiler: Implement LD_C instruction. | bunnei | 2018-06-07 | 1 | -0/+27 |
| | | |||||
* | | gl_shader_gen: Add uniform handling for indirect const buffer access. | bunnei | 2018-06-07 | 1 | -0/+15 |
| | | |||||
* | | gl_shader_decompiler: Refactor uniform handling to allow different decodings. | bunnei | 2018-06-06 | 1 | -20/+19 |
|/ | |||||
* | gl_shader_decompiler: Fix un/signed mismatch with SHL. | bunnei | 2018-06-06 | 1 | -1/+1 |
| | |||||
* | Merge pull request #516 from Subv/f2i_r | bunnei | 2018-06-06 | 1 | -3/+44 |
|\ | | | | | GPU: Implemented the F2I_R shader instruction. | ||||
| * | GPU: Implemented the F2I_R shader instruction. | Subv | 2018-06-05 | 1 | -3/+44 |
| | | |||||
* | | Merge pull request #520 from bunnei/shader-shl | bunnei | 2018-06-05 | 1 | -2/+31 |
|\ \ | | | | | | | gl_shader_decompiler: Implement SHL instruction. | ||||
| * | | gl_shader_decompiler: Fix typo with ISCADD instruction. | bunnei | 2018-06-05 | 1 | -1/+1 |
| | | | |||||
| * | | gl_shader_decompiler: Implement SHL instruction. | bunnei | 2018-06-05 | 1 | -1/+30 |
| | | | |||||
* | | | Merge pull request #518 from Subv/incomplete_shaders | bunnei | 2018-06-05 | 1 | -5/+16 |
|\ \ \ | |/ / |/| | | GPU: Implemented predicated exit instructions in the shader programs. | ||||
| * | | GPU: Implement predicated exit instructions in the shader programs. | Subv | 2018-06-05 | 1 | -4/+6 |
| | | | |||||
| * | | GPU: Take into account predicated exits when performing shader control flow analysis. | Subv | 2018-06-05 | 1 | -1/+10 |
| | | | |||||
* | | | gl_shader_decompiler: Implement PredCondition::NotEqual. | bunnei | 2018-06-05 | 1 | -3/+3 |
| | | | |||||
* | | | GPU: Implement the ISCADD shader instructions. | Subv | 2018-06-05 | 1 | -0/+24 |
| |/ |/| | |||||
* | | Merge pull request #514 from Subv/lop32i | bunnei | 2018-06-05 | 1 | -0/+43 |
|\ \ | | | | | | | GPU: Implemented the LOP32I instruction. | ||||
| * | | GPU: Implemented the LOP32I instruction. | Subv | 2018-06-04 | 1 | -0/+43 |
| | | | |||||
* | | | Merge pull request #510 from Subv/isetp | bunnei | 2018-06-05 | 1 | -6/+53 |
|\ \ \ | | | | | | | | | GPU: Implemented the ISETP_R and ISETP_C instructions | ||||
| * | | | GPU: Use explicit types when retrieving the uniform values for fsetp/fset and isetp instead of the type of an invalid output register. | Subv | 2018-06-04 | 1 | -9/+18 |
| | | | | |||||
| * | | | GPU: Implemented the ISETP_R and ISETP_C shader instructions. | Subv | 2018-06-04 | 1 | -0/+38 |
| |/ / | |||||
* | | | Merge pull request #512 from Subv/fset | bunnei | 2018-06-05 | 1 | -3/+18 |
|\ \ \ | |_|/ |/| | | GPU: Corrected the FSET and I2F instructions. | ||||
| * | | GPU: Use the bf bit in FSET to determine whether to write 0xFFFFFFFF or 1.0f. | Subv | 2018-06-04 | 1 | -1/+6 |
| | | | |||||
| * | | GPU: Corrected the I2F_R implementation. | Subv | 2018-06-04 | 1 | -2/+12 |
| |/ | |||||
* / | GPU: Partially implemented the shader BRA instruction. | Subv | 2018-06-04 | 1 | -1/+30 |
|/ | |||||
* | gl_shader_decompiler: Implement TEXS component mask. | bunnei | 2018-06-03 | 1 | -7/+10 |
| | |||||
* | Merge pull request #494 from bunnei/shader-tex | bunnei | 2018-06-03 | 1 | -2/+43 |
|\ | | | | | gl_shader_decompiler: Implement TEX, fixes for TEXS. | ||||
| * | gl_shader_decompiler: Implement TEX instruction. | bunnei | 2018-06-01 | 1 | -1/+26 |
| | | |||||
| * | gl_shader_decompiler: Support multi-destination for TEXS. | bunnei | 2018-06-01 | 1 | -2/+18 |
| | | |||||
* | | gl_shader_decompiler: Implement RRO as a register move. | bunnei | 2018-06-03 | 1 | -6/+11 |
|/ | |||||
* | Merge pull request #489 from Subv/vertexid | bunnei | 2018-05-30 | 1 | -1/+7 |
|\ | | | | | Shaders: Implemented reading the gl_InstanceID and gl_VertexID variables in the vertex shader. | ||||
| * | Shaders: Implemented reading the gl_InstanceID and gl_VertexID variables in the vertex shader. | Subv | 2018-05-30 | 1 | -1/+7 |
| | | |||||
* | | gl_shader_decompiler: F2F_R instruction: Implement abs. | bunnei | 2018-05-30 | 1 | -1/+7 |
| | | |||||
* | | gl_shader_decompiler: Partially implement F2F_R instruction. | bunnei | 2018-05-30 | 1 | -1/+6 |
|/ | |||||
* | Merge pull request #472 from bunnei/greater-equal | bunnei | 2018-05-27 | 1 | -4/+3 |
|\ | | | | | gl_shader_decompiler: Implement GetPredicateComparison GreaterEqual. | ||||
| * | gl_shader_decompiler: Implement GetPredicateComparison GreaterEqual. | bunnei | 2018-05-26 | 1 | -4/+3 |
| | | |||||
* | | shader_bytecode: Implement other variants of FMNMX. | bunnei | 2018-05-26 | 1 | -1/+3 |
|/ | |||||
* | Shader: Implemented compound predicates in fset. | Subv | 2018-05-25 | 1 | -28/+12 |
| | | | | | | You can specify a predicate in the fset instruction: Result = ((Value1 Comp Value2) OP P0) ? 1.0 : 0.0; | ||||
* | Shader: Implemented compound predicates in fsetp. | Subv | 2018-05-25 | 1 | -19/+55 |
| | | | | | | | You can specify three predicates in an fsetp instruction: P1 = (Value1 Comp Value2) OP P0; P2 = !(Value1 Comp Value2) OP P0; | ||||
* | Shaders: Implemented the FMNMX shader instruction. | Subv | 2018-05-21 | 1 | -6/+21 |
| | |||||
* | Merge pull request #422 from bunnei/shader-mov | bunnei | 2018-04-30 | 1 | -0/+6 |
|\ | | | | | Shader instructions MOV_C, MOV_R, and several minor GPU things | ||||
| * | gl_shader_decompiler: Implement MOV_R. | bunnei | 2018-04-29 | 1 | -1/+2 |
| | | |||||
| * | gl_shader_decompiler: Implement MOV_C. | bunnei | 2018-04-29 | 1 | -0/+5 |
| | | |||||
* | | Shaders: Implemented predicate condition 3 (LessEqual) in the fset and fsetp instructions. | Subv | 2018-04-29 | 1 | -0/+7 |
|/ | |||||
* | gl_shader_decompiler: Partially implement I2I_R, and I2F_R. | bunnei | 2018-04-29 | 1 | -0/+26 |
| | |||||
* | gl_shader_decompiler: More cleanups, etc. with how we handle register types. | bunnei | 2018-04-29 | 1 | -44/+120 |
| | |||||
* | GLSLRegister: Simplify register declarations, etc. | bunnei | 2018-04-29 | 1 | -63/+31 |
| | |||||
* | gl_shader_decompiler: Implement MOV32_IMM instruction. | bunnei | 2018-04-29 | 1 | -0/+5 |
| | |||||
* | gl_shader_decompiler: Add GLSLRegisterManager class to track register state. | bunnei | 2018-04-27 | 1 | -154/+262 |
| | |||||
* | gl_shader_decompiler: Boilerplate for handling integer instructions. | bunnei | 2018-04-26 | 1 | -5/+102 |
| | |||||
* | gl_shader_decompiler: Move color output to EXIT instruction. | bunnei | 2018-04-26 | 1 | -6/+12 |
| | |||||
* | Shaders: Implemented the FSET instruction. | Subv | 2018-04-25 | 1 | -0/+53 |
| | | | | This instruction is similar to the FSETP instruction, but it doesn't set a predicate, it sets the destination register to 1.0 if the condition holds, and 0 otherwise. | ||||
* | Shaders: Added decodings for the FSET instructions. | Subv | 2018-04-25 | 1 | -1/+1 |
| | |||||
* | gl_shader_decompiler: Skip RRO instruction. | bunnei | 2018-04-21 | 1 | -0/+4 |
| | |||||
* | gl_shader_decompiler: Cleanup error logging. | bunnei | 2018-04-21 | 1 | -14/+6 |
| | |||||
* | shader_bytecode: Decode instructions based on bit strings. | bunnei | 2018-04-21 | 1 | -20/+29 |
| | |||||
* | ShaderGen: Implemented the KIL instruction, which is equivalent to 'discard'. | Subv | 2018-04-21 | 1 | -1/+7 |
| | |||||
* | ShaderGen: Implemented predicated instruction execution. | Subv | 2018-04-21 | 1 | -0/+35 |
| | | | | Each predicated instruction will be wrapped in an `if (predicate) { instruction_body; }` in the GLSL, where `predicate` is one of the predicate boolean variables previously set by fsetp. | ||||
* | ShaderGen: Implemented the fsetp instruction. | Subv | 2018-04-21 | 1 | -0/+72 |
| | | | | | | | | | | Predicate variables are now added to the generated shader code in the form of 'pX' where X is the predicate id. These predicate variables are initialized to false on shader startup and are set via the fsetp instructions. TODO: * Not all the comparison types are implemented. * Only the single-predicate version is implemented. | ||||
* | ShaderGen: Register id 255 is special and is hardcoded to return 0 (SR_ZERO). | Subv | 2018-04-20 | 1 | -0/+2 |
| | |||||
* | ShaderGen: Ignore the 'sched' instruction when generating shaders. | Subv | 2018-04-20 | 1 | -0/+16 |
| | | | | The 'sched' instruction has a very convoluted encoding, but fortunately it seems to only appear on a fixed interval (once every 4 instructions). | ||||
* | Merge pull request #356 from lioncash/shader | bunnei | 2018-04-20 | 1 | -12/+30 |
|\ | | | | | glsl_shader_decompiler: Minor API changes to ShaderWriter | ||||
| * | glsl_shader_decompiler: Use std::string_view instead of std::string for AddLine() | Lioncash | 2018-04-20 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | This function doesn't need to take ownership of the string data being given to it, considering all we do is append the characters to the internal string instance. Instead, use a string view to simply reference the string data without any potential heap allocation. Now anything that is a raw const char* won't need to be converted to a std::string before appending. | ||||
| * | glsl_shader_decompiler: Add AddNewLine() function to ShaderWriter | Lioncash | 2018-04-20 | 1 | -6/+12 |
| | | | | | | | | Avoids constructing a std::string just to append a newline character | ||||
| * | glsl_shader_decompiler: Add char overload for ShaderWriter's AddLine() | Lioncash | 2018-04-20 | 1 | -4/+11 |
| | | | | | | | | Avoids constructing a std::string just to append a character. | ||||
| * | glsl_shader_decompiler: Append indentation without constructing a separate std::string | Lioncash | 2018-04-20 | 1 | -1/+5 |
| | | | | | | | | | | The interface of std::string already lets us append N copies of a character to an existing string. | ||||
* | | ShaderGen: Implemented the fmul32i shader instruction. | Subv | 2018-04-19 | 1 | -6/+16 |
| | | |||||
* | | ShaderGen: Fixed a case where the TEXS instruction would use the same registers for the input and the output. | Subv | 2018-04-19 | 1 | -2/+9 |
|/ | | | | It will now save the coords before writing the outputs in a subscope. | ||||
* | gl_shader_decompiler: Fix warnings with MarkAsUsed. | bunnei | 2018-04-17 | 1 | -1/+2 |
| | |||||
* | gl_shader_decompiler: Cleanup logging, updating to NGLOG_*. | bunnei | 2018-04-17 | 1 | -24/+22 |
| | |||||
* | gl_shader_decompiler: Implement several MUFU subops and abs_d. | bunnei | 2018-04-17 | 1 | -7/+21 |
| | |||||
* | gl_shader_decompiler: Fix swizzle in GetRegister. | bunnei | 2018-04-17 | 1 | -1/+1 |
| | |||||
* | gl_shader_decompiler: Implement FMUL/FADD/FFMA immediate instructions. | bunnei | 2018-04-17 | 1 | -12/+39 |
| | |||||
* | gl_shader_decompiler: Allow vertex position to be used in fragment shader. | bunnei | 2018-04-17 | 1 | -15/+13 |
| | |||||
* | gl_shader_decompiler: Implement IPA instruction. | bunnei | 2018-04-17 | 1 | -0/+11 |
| | |||||
* | gl_shader_decompiler: Add support for TEXS instruction. | bunnei | 2018-04-17 | 1 | -7/+29 |
| | |||||
* | gl_shader_decompiler: Use fragment output color for GPR 0-3. | bunnei | 2018-04-17 | 1 | -0/+5 |
| | |||||
* | gl_shader_decompiler: Partially implement MUFU. | bunnei | 2018-04-17 | 1 | -2/+11 |
| | |||||
* | GPU: Use the same buffer names in the generated GLSL and the buffer uploading code. | Subv | 2018-04-15 | 1 | -3/+2 |
| | |||||
* | shaders: Expose hints about used const buffers. | bunnei | 2018-04-15 | 1 | -8/+32 |
| | |||||
* | shaders: Address PR review feedback. | bunnei | 2018-04-14 | 1 | -6/+8 |
| | |||||
* | gl_shader_decompiler: Cleanup log statements. | bunnei | 2018-04-14 | 1 | -15/+15 |
| | |||||
* | shaders: Fix GCC and clang build issues. | bunnei | 2018-04-14 | 1 | -1/+1 |
| | |||||
* | gl_shader_decompiler: Implement negate, abs, etc. and lots of cleanup. | bunnei | 2018-04-14 | 1 | -20/+57 |
| | |||||
* | gl_shader_decompiler: Add shader stage hint. | bunnei | 2018-04-14 | 1 | -4/+7 |
| | |||||
* | gl_shader_decompiler: Basic impl. for very simple vertex shaders. | bunnei | 2018-04-14 | 1 | -8/+307 |
| | | | | - Tested with Puyo Puyo Tetris and Cave Story+ | ||||
* | gl_shader_decompiler: Add skeleton code from Citra for shader analysis. | bunnei | 2018-04-14 | 1 | -33/+134 |
| | |||||
* | renderer_opengl: Logging, etc. cleanup. | bunnei | 2018-03-27 | 1 | -1/+1 |
| | |||||
* | renderer_gl: Port over gl_shader_decompiler module from Citra. | bunnei | 2018-03-20 | 1 | -0/+58 |