diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-01-04 19:40:57 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-01-04 19:40:57 +0100 |
commit | 3dd6b55851978440f39487a6ad06b30b792b3b36 (patch) | |
tree | d5019053dc20d420181443ff90207aab2ff28938 /src/video_core/shader/shader_ir.h | |
parent | Shader_IR: add the ability to amend code in the shader ir. (diff) | |
download | yuzu-3dd6b55851978440f39487a6ad06b30b792b3b36.tar yuzu-3dd6b55851978440f39487a6ad06b30b792b3b36.tar.gz yuzu-3dd6b55851978440f39487a6ad06b30b792b3b36.tar.bz2 yuzu-3dd6b55851978440f39487a6ad06b30b792b3b36.tar.lz yuzu-3dd6b55851978440f39487a6ad06b30b792b3b36.tar.xz yuzu-3dd6b55851978440f39487a6ad06b30b792b3b36.tar.zst yuzu-3dd6b55851978440f39487a6ad06b30b792b3b36.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/shader/shader_ir.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/shader/shader_ir.h b/src/video_core/shader/shader_ir.h index 52f130e1b..aacd0a0da 100644 --- a/src/video_core/shader/shader_ir.h +++ b/src/video_core/shader/shader_ir.h @@ -176,7 +176,7 @@ public: /// Returns a condition code evaluated from internal flags Node GetConditionCode(Tegra::Shader::ConditionCode cc) const; - const Node& GetAmendNode(u32 index) const { + const Node& GetAmendNode(std::size_t index) const { return amend_code[index]; } @@ -396,8 +396,8 @@ private: Tegra::Shader::Instruction instr, bool is_write); - /// Amends - u32 DeclareAmend(Node new_amend); + /// Register new amending code and obtain the reference id. + std::size_t DeclareAmend(Node new_amend); const ProgramCode& program_code; const u32 main_offset; @@ -413,7 +413,7 @@ private: std::map<u32, NodeBlock> basic_blocks; NodeBlock global_code; ASTManager program_manager{true, true}; - NodeBlock amend_code; + std::vector<Node> amend_code; std::set<u32> used_registers; std::set<Tegra::Shader::Pred> used_predicates; |