shader_ir: Decompile Flow Stack
This commit is contained in:
parent
459fce3a8f
commit
926b80102f
4 changed files with 206 additions and 11 deletions
|
@ -22,6 +22,8 @@
|
|||
|
||||
namespace VideoCommon::Shader {
|
||||
|
||||
struct ShaderBlock;
|
||||
|
||||
using ProgramCode = std::vector<u64>;
|
||||
|
||||
constexpr u32 MAX_PROGRAM_LENGTH = 0x1000;
|
||||
|
@ -125,6 +127,7 @@ private:
|
|||
void Decode();
|
||||
|
||||
NodeBlock DecodeRange(u32 begin, u32 end);
|
||||
void InsertControlFlow(NodeBlock& bb, const ShaderBlock& block);
|
||||
|
||||
/**
|
||||
* Decodes a single instruction from Tegra to IR.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue