diff options
| author | 2021-02-21 23:42:38 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:22 -0400 | |
| commit | 274897dfd59b4d08029ab7e93be4f84654abcdc8 (patch) | |
| tree | 083336a4d665476a87b888368878a311a7edab2a /src/shader_recompiler/backend/spirv/emit_context.h | |
| parent | shader: Rename, implement FADD.SAT and P2R (imm) (diff) | |
| download | yuzu-274897dfd59b4d08029ab7e93be4f84654abcdc8.tar.gz yuzu-274897dfd59b4d08029ab7e93be4f84654abcdc8.tar.xz yuzu-274897dfd59b4d08029ab7e93be4f84654abcdc8.zip | |
spirv: Fixes and Intel specific workarounds
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_context.h')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_context.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_context.h b/src/shader_recompiler/backend/spirv/emit_context.h index 8de203da2..d20cf387e 100644 --- a/src/shader_recompiler/backend/spirv/emit_context.h +++ b/src/shader_recompiler/backend/spirv/emit_context.h | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | 11 | ||
| 12 | #include "shader_recompiler/frontend/ir/program.h" | 12 | #include "shader_recompiler/frontend/ir/program.h" |
| 13 | #include "shader_recompiler/shader_info.h" | 13 | #include "shader_recompiler/shader_info.h" |
| 14 | #include "shader_recompiler/profile.h" | ||
| 14 | 15 | ||
| 15 | namespace Shader::Backend::SPIRV { | 16 | namespace Shader::Backend::SPIRV { |
| 16 | 17 | ||
| @@ -30,11 +31,13 @@ private: | |||
| 30 | 31 | ||
| 31 | class EmitContext final : public Sirit::Module { | 32 | class EmitContext final : public Sirit::Module { |
| 32 | public: | 33 | public: |
| 33 | explicit EmitContext(IR::Program& program); | 34 | explicit EmitContext(const Profile& profile, IR::Program& program); |
| 34 | ~EmitContext(); | 35 | ~EmitContext(); |
| 35 | 36 | ||
| 36 | [[nodiscard]] Id Def(const IR::Value& value); | 37 | [[nodiscard]] Id Def(const IR::Value& value); |
| 37 | 38 | ||
| 39 | const Profile& profile; | ||
| 40 | |||
| 38 | Id void_id{}; | 41 | Id void_id{}; |
| 39 | Id U1{}; | 42 | Id U1{}; |
| 40 | Id U16{}; | 43 | Id U16{}; |