diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-06-25 07:57:32 -0400 |
|---|---|---|
| committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-07-09 08:14:37 -0400 |
| commit | 459fce3a8f26241ff2a68c323e75fb70e7e1ba79 (patch) | |
| tree | 4b653d7dd8fd7e6d325ca69cdd1384187cbd73ac /src/video_core/shader/shader_ir.cpp | |
| parent | 8a6fc529a968e007f01464abadd32f9b5eb0a26c (diff) | |
shader_ir: propagate shader size to the IR
Diffstat (limited to 'src/video_core/shader/shader_ir.cpp')
| -rw-r--r-- | src/video_core/shader/shader_ir.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/shader_ir.cpp b/src/video_core/shader/shader_ir.cpp index 11b545cca..5994bfc4e 100644 --- a/src/video_core/shader/shader_ir.cpp +++ b/src/video_core/shader/shader_ir.cpp @@ -22,8 +22,8 @@ using Tegra::Shader::PredCondition; using Tegra::Shader::PredOperation; using Tegra::Shader::Register; -ShaderIR::ShaderIR(const ProgramCode& program_code, u32 main_offset) - : program_code{program_code}, main_offset{main_offset} { +ShaderIR::ShaderIR(const ProgramCode& program_code, u32 main_offset, const std::size_t size) + : program_code{program_code}, main_offset{main_offset}, program_size{size} { Decode(); } |
