summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2021-05-31 22:57:11 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:34 +0200
commit22f0c4f002b1d215fe5accde7a25dfb724889ee8 (patch)
treeda95fcac6096bb228c4d46f3ef293d6a98198cea
parentshader,glasm: Implement legacy texcoord loads (diff)
downloadyuzu-22f0c4f002b1d215fe5accde7a25dfb724889ee8.tar
yuzu-22f0c4f002b1d215fe5accde7a25dfb724889ee8.tar.gz
yuzu-22f0c4f002b1d215fe5accde7a25dfb724889ee8.tar.bz2
yuzu-22f0c4f002b1d215fe5accde7a25dfb724889ee8.tar.lz
yuzu-22f0c4f002b1d215fe5accde7a25dfb724889ee8.tar.xz
yuzu-22f0c4f002b1d215fe5accde7a25dfb724889ee8.tar.zst
yuzu-22f0c4f002b1d215fe5accde7a25dfb724889ee8.zip
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp1
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
const Register ret{ctx.reg_alloc.Define(inst)};
if (offset.type == Type::U32) {
// Avoid reading arrays out of bounds, matching hardware's behavior
- const u32 imm_offset{offset.imm_u32};
if (offset.imm_u32 >= 0x10'000) {
ctx.Add("MOV.S {},0;", ret);
return;