summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glasm
diff options
context:
space:
mode:
authorGravatar lat9nq2021-07-11 22:10:38 -0400
committerGravatar ameerj2021-07-22 21:51:40 -0400
commit49946cf780c317b4c5ccabb52ec433eba01c1970 (patch)
tree628060b15b133cf3a1aaf716fba3517fc5c983f0 /src/shader_recompiler/backend/glasm
parentmain: Update Shader Cache menu options (diff)
downloadyuzu-49946cf780c317b4c5ccabb52ec433eba01c1970.tar.gz
yuzu-49946cf780c317b4c5ccabb52ec433eba01c1970.tar.xz
yuzu-49946cf780c317b4c5ccabb52ec433eba01c1970.zip
shader_recompiler, video_core: Resolve clang errors
Silences the following warnings-turned-errors: -Wsign-conversion -Wunused-private-field -Wbraced-scalar-init -Wunused-variable And some other errors
Diffstat (limited to 'src/shader_recompiler/backend/glasm')
-rw-r--r--src/shader_recompiler/backend/glasm/emit_context.h2
-rw-r--r--src/shader_recompiler/backend/glasm/reg_alloc.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_context.h b/src/shader_recompiler/backend/glasm/emit_context.h
index 1da51a996..8433e5c00 100644
--- a/src/shader_recompiler/backend/glasm/emit_context.h
+++ b/src/shader_recompiler/backend/glasm/emit_context.h
@@ -59,7 +59,7 @@ public:
59 } 59 }
60 60
61 std::string code; 61 std::string code;
62 RegAlloc reg_alloc{*this}; 62 RegAlloc reg_alloc{};
63 const Info& info; 63 const Info& info;
64 const Profile& profile; 64 const Profile& profile;
65 const RuntimeInfo& runtime_info; 65 const RuntimeInfo& runtime_info;
diff --git a/src/shader_recompiler/backend/glasm/reg_alloc.h b/src/shader_recompiler/backend/glasm/reg_alloc.h
index 5a703daf2..82aec66c6 100644
--- a/src/shader_recompiler/backend/glasm/reg_alloc.h
+++ b/src/shader_recompiler/backend/glasm/reg_alloc.h
@@ -86,7 +86,7 @@ struct ScalarF64 : Value {};
86 86
87class RegAlloc { 87class RegAlloc {
88public: 88public:
89 RegAlloc(EmitContext& ctx_) : ctx{ctx_} {} 89 RegAlloc() = default;
90 90
91 Register Define(IR::Inst& inst); 91 Register Define(IR::Inst& inst);
92 92
@@ -142,7 +142,6 @@ private:
142 142
143 void Free(Id id); 143 void Free(Id id);
144 144
145 EmitContext& ctx;
146 size_t num_used_registers{}; 145 size_t num_used_registers{};
147 size_t num_used_long_registers{}; 146 size_t num_used_long_registers{};
148 std::bitset<NUM_REGS> register_use{}; 147 std::bitset<NUM_REGS> register_use{};