shader_ir: Decompile Flow Stack

This commit is contained in:
Fernando Sahmkow
2019-06-25 11:10:45 -04:00
committed by FernandoS27
parent 459fce3a8f
commit 926b80102f
4 changed files with 206 additions and 11 deletions

View File

@ -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.