ReinUsesLisp
d6193e2e36
shader: Add physical attributes commentaries
7 years ago
ReinUsesLisp
7680b96e1a
gl_shader_decompiler: Implement GLSL physical attributes
7 years ago
ReinUsesLisp
f96020b2ae
shader_ir/memory: Implement physical input attributes
7 years ago
ReinUsesLisp
f6194ce3fe
shader: Remove unused AbufNode Ipa mode
7 years ago
ReinUsesLisp
d786245490
shader_ir/memory: Emit AL2P IR
7 years ago
ReinUsesLisp
5ea871b373
shader_ir: Move Sampler index entry in operand< to sort declarations
7 years ago
ReinUsesLisp
cd9e8ee0eb
shader_ir: Add missing entry to Sampler operand< comparison
7 years ago
ReinUsesLisp
6ea1afc2bc
shader_ir/decode: Fix half float pre-operations and remove MetaHalfArithmetic
Operations done before the main half float operation (like HAdd) were
managing a packed value instead of the unpacked one. Adding an unpacked
operation allows us to drop the per-operand MetaHalfArithmetic entry,
simplifying the code overall.
7 years ago
ReinUsesLisp
6d47914b88
shader_ir/decode: Implement half float saturation
7 years ago
ReinUsesLisp
a87fe3ea63
renderer_opengl: Implement half float NaN comparisons
7 years ago
ReinUsesLisp
79e7fb6d6f
shader_ir: Implement STG, keep track of global memory usage and flush
7 years ago
Fernando Sahmkow
f5792ffeab
Move ConstBufferAccessor to Maxwell3d, correct mistakes and clang format.
7 years ago
Fernando Sahmkow
5ce4140257
Refactor GetTextureCode and GetTexCode to use an optional instead of optional parameters
7 years ago
Fernando Sahmkow
e6d2e59f07
Implement Bindless Handling on SetupTexture
7 years ago
Fernando Sahmkow
dea7db19cf
Unify both sampler types.
7 years ago
Fernando Sahmkow
ee9b2e3cdc
Implement Bindless Samplers and TEX_B in the IR.
7 years ago
ReinUsesLisp
0e13686917
shader_ir/decode: Implement AOFFI for TEX and TLD4
7 years ago
ReinUsesLisp
e37debc7be
shader_ir: Implement immediate register tracking
7 years ago
ReinUsesLisp
3b01587ca4
shader/decode: Remove extras from MetaTexture
7 years ago
ReinUsesLisp
8a7efd22ec
shader/decode: Split memory and texture instructions decoding
7 years ago
ReinUsesLisp
9fe3f3a100
shader_ir: Remove F4 prefix to texture operations
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.
7 years ago
ReinUsesLisp
31305cad93
shader_ir: Clean texture management code
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.
7 years ago
ReinUsesLisp
d83818d30a
gl_shader_disk_cache: Save GLSL and entries into the precompiled file
7 years ago
ReinUsesLisp
92c948999b
shader_ir: Rename BasicBlock to NodeBlock
It's not always used as a basic block. Rename it for consistency.
7 years ago
ReinUsesLisp
e3c0f29a4d
shader_ir: Pass decoded nodes as a whole instead of per basic blocks
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.
7 years ago
ReinUsesLisp
12fbe5dcf8
shader_ir: Unify constant buffer offset values
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.
7 years ago
ReinUsesLisp
d516c50fe2
shader_decode: Implement LDG and basic cbuf tracking
7 years ago
Lioncash
4addab6160
shader/shader_ir: Amend three comment typos
Given we're in the area, these are three trivial typos that can be
corrected.
7 years ago
Lioncash
a7de39a6ba
shader/shader_ir: Amend constructor initializer ordering for AbufNode
Orders the class members in the same order that they would actually be
initialized in. Gets rid of two compiler warnings.
7 years ago
ReinUsesLisp
1be12d5819
shader_ir: Pass to decoder functions basic block's code
7 years ago
ReinUsesLisp
719c83a4c2
shader_decode: Improve zero flag implementation
7 years ago
ReinUsesLisp
c75f5c634a
shader_ir: Remove composite primitives and use temporals instead
7 years ago
ReinUsesLisp
92610e9705
shader_decode: Use proper primitive names
7 years ago
ReinUsesLisp
44fce20a01
shader_decode: Use BitfieldExtract instead of shift + and
7 years ago
ReinUsesLisp
26d519c0f6
shader_ir: Remove Ipa primitive
7 years ago
ReinUsesLisp
8df3fb8b1e
shader_ir: Remove RZ and use Register::ZeroIndex instead
7 years ago
ReinUsesLisp
35724f3435
shader_decode: Implement TEXS.F16
7 years ago
ReinUsesLisp
0b1a2a74b6
video_core: Implement IR based geometry shaders
7 years ago
ReinUsesLisp
095b8f822b
shader_decode: Implement VMAD and VSETP
7 years ago
ReinUsesLisp
a71ce91f9b
shader_decode: Implement HSET2
7 years ago
ReinUsesLisp
5896358e4a
shader_decode: Rework HSETP2
7 years ago
ReinUsesLisp
54bffa5381
shader_decode: Implement HFMA2
7 years ago
ReinUsesLisp
9cf3fe7511
shader_decode: Implement POPC
7 years ago
ReinUsesLisp
43dffc4afc
shader_decode: Implement TLDS (untested)
7 years ago
ReinUsesLisp
8e4e4c60cd
shader_decode: Update TLD4 reflecting #1862 changes
7 years ago
ReinUsesLisp
fb53e79b7f
shader_ir: Fixup TEX and TEXS and partially fix TLD4 decompiling
7 years ago
ReinUsesLisp
568d9a2a7b
video_core: Address feedback
7 years ago
ReinUsesLisp
8ef8fd8188
shader_ir: Fixup file inclusions and clang-format
7 years ago
Mat M
15a03ee53f
shader_ir: Move comment node string
Co-Authored-By: ReinUsesLisp <reinuseslisp@airmail.cc>
7 years ago
ReinUsesLisp
4e8b1bf07a
shader_ir: Address feedback to avoid UB in bit casting
7 years ago