summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2023-06-26 00:43:52 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2023-06-26 00:43:52 +0200
commitb198339580f1a54c4c670eb58593eb64e2ef945c (patch)
treef0c17442798f6f19dad728f1128556b800084d85 /src
parentOpenGL: Add Local Memory warmup shader (diff)
downloadyuzu-b198339580f1a54c4c670eb58593eb64e2ef945c.tar
yuzu-b198339580f1a54c4c670eb58593eb64e2ef945c.tar.gz
yuzu-b198339580f1a54c4c670eb58593eb64e2ef945c.tar.bz2
yuzu-b198339580f1a54c4c670eb58593eb64e2ef945c.tar.lz
yuzu-b198339580f1a54c4c670eb58593eb64e2ef945c.tar.xz
yuzu-b198339580f1a54c4c670eb58593eb64e2ef945c.tar.zst
yuzu-b198339580f1a54c4c670eb58593eb64e2ef945c.zip
Diffstat (limited to 'src')
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm.cpp b/src/shader_recompiler/backend/glasm/emit_glasm.cpp
index fd4a61a4d..b795c0179 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm.cpp
+++ b/src/shader_recompiler/backend/glasm/emit_glasm.cpp
@@ -461,7 +461,7 @@ std::string EmitGLASM(const Profile& profile, const RuntimeInfo& runtime_info, I
header += fmt::format("R{},", index);
}
if (program.local_memory_size > 0) {
- header += fmt::format("lmem[{}],", program.local_memory_size);
+ header += fmt::format("lmem[{}],", Common::DivCeil(program.local_memory_size, 4U));
}
if (program.info.uses_fswzadd) {
header += "FSWZA[4],FSWZB[4],";