diff options
| author | 2021-05-31 16:57:11 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:34 -0400 | |
| commit | 22f0c4f002b1d215fe5accde7a25dfb724889ee8 (patch) | |
| tree | da95fcac6096bb228c4d46f3ef293d6a98198cea /src | |
| parent | shader,glasm: Implement legacy texcoord loads (diff) | |
| download | yuzu-22f0c4f002b1d215fe5accde7a25dfb724889ee8.tar.gz yuzu-22f0c4f002b1d215fe5accde7a25dfb724889ee8.tar.xz yuzu-22f0c4f002b1d215fe5accde7a25dfb724889ee8.zip | |
emit_glasm_context_get_set: Remove unused variable
Diffstat (limited to 'src')
| -rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp index 3b73e8757..c1df7a342 100644 --- a/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp +++ b/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp | |||
| @@ -20,7 +20,6 @@ void GetCbuf(EmitContext& ctx, IR::Inst& inst, const IR::Value& binding, ScalarU | |||
| 20 | const Register ret{ctx.reg_alloc.Define(inst)}; | 20 | const Register ret{ctx.reg_alloc.Define(inst)}; |
| 21 | if (offset.type == Type::U32) { | 21 | if (offset.type == Type::U32) { |
| 22 | // Avoid reading arrays out of bounds, matching hardware's behavior | 22 | // Avoid reading arrays out of bounds, matching hardware's behavior |
| 23 | const u32 imm_offset{offset.imm_u32}; | ||
| 24 | if (offset.imm_u32 >= 0x10'000) { | 23 | if (offset.imm_u32 >= 0x10'000) { |
| 25 | ctx.Add("MOV.S {},0;", ret); | 24 | ctx.Add("MOV.S {},0;", ret); |
| 26 | return; | 25 | return; |