diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-06-25 17:10:45 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-07-09 14:14:38 +0200 |
commit | 926b80102f1c00675a9f3956258a066bfe0c3642 (patch) | |
tree | 616288030c9e72f8cf6a3ee12ae89faa07b9da79 /src/video_core/shader/shader_ir.h | |
parent | shader_ir: propagate shader size to the IR (diff) | |
download | yuzu-926b80102f1c00675a9f3956258a066bfe0c3642.tar yuzu-926b80102f1c00675a9f3956258a066bfe0c3642.tar.gz yuzu-926b80102f1c00675a9f3956258a066bfe0c3642.tar.bz2 yuzu-926b80102f1c00675a9f3956258a066bfe0c3642.tar.lz yuzu-926b80102f1c00675a9f3956258a066bfe0c3642.tar.xz yuzu-926b80102f1c00675a9f3956258a066bfe0c3642.tar.zst yuzu-926b80102f1c00675a9f3956258a066bfe0c3642.zip |
Diffstat (limited to 'src/video_core/shader/shader_ir.h')
-rw-r--r-- | src/video_core/shader/shader_ir.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/shader/shader_ir.h b/src/video_core/shader/shader_ir.h index a67d4f390..a6729064b 100644 --- a/src/video_core/shader/shader_ir.h +++ b/src/video_core/shader/shader_ir.h @@ -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. |