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
ReinUsesLisp
37de0d1560
shader_decode: Implement LOP3
7 years ago
ReinUsesLisp
9aed1ef451
shader_decode: Implement LOP32I
7 years ago
ReinUsesLisp
0425f475d5
shader_decode: Implement TEX and TXQ
7 years ago
ReinUsesLisp
c8d0937ae5
shader_decode: Implement TEXS (F32)
7 years ago
ReinUsesLisp
74ee18de5e
shader_ir: Add condition code helper
7 years ago
ReinUsesLisp
283dd9fb61
shader_ir: Add predicate combiner helper
7 years ago
ReinUsesLisp
d28033adca
shader_ir: Add comparison helpers
7 years ago
ReinUsesLisp
c0d053482c
shader_ir: Add half float helpers
7 years ago
ReinUsesLisp
e46dd3ce5f
shader_ir: Add integer helpers
7 years ago
ReinUsesLisp
b91929bf10
shader_ir: Add float helpers
7 years ago
ReinUsesLisp
83e750c9ae
shader_ir: Add setters
7 years ago
ReinUsesLisp
394f906044
shader_ir: Add local memory getters
7 years ago