summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-06-25 22:34:40 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:39 +0200
commit65daec8b75dafb96296c6066db9c1d696948e7fe (patch)
tree69695dc79a6d467e2ce6340af69d2379ee8cec6c
parentopengl: Implement LOP.CC (diff)
downloadyuzu-65daec8b75dafb96296c6066db9c1d696948e7fe.tar
yuzu-65daec8b75dafb96296c6066db9c1d696948e7fe.tar.gz
yuzu-65daec8b75dafb96296c6066db9c1d696948e7fe.tar.bz2
yuzu-65daec8b75dafb96296c6066db9c1d696948e7fe.tar.lz
yuzu-65daec8b75dafb96296c6066db9c1d696948e7fe.tar.xz
yuzu-65daec8b75dafb96296c6066db9c1d696948e7fe.tar.zst
yuzu-65daec8b75dafb96296c6066db9c1d696948e7fe.zip
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/backend/glsl/emit_glsl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl.cpp b/src/shader_recompiler/backend/glsl/emit_glsl.cpp
index 46d72963d..ffdc6dbba 100644
--- a/src/shader_recompiler/backend/glsl/emit_glsl.cpp
+++ b/src/shader_recompiler/backend/glsl/emit_glsl.cpp
@@ -5,7 +5,7 @@
#include <ranges>
#include <string>
-#include "common/alignment.h"
+#include "common/div_ceil.h"
#include "common/settings.h"
#include "shader_recompiler/backend/glsl/emit_context.h"
#include "shader_recompiler/backend/glsl/emit_glsl.h"
@@ -219,11 +219,11 @@ std::string EmitGLSL(const Profile& profile, const RuntimeInfo& runtime_info, IR
ctx.header.insert(0, version);
if (program.shared_memory_size > 0) {
ctx.header +=
- fmt::format("shared uint smem[{}];", Common::AlignUp(program.shared_memory_size, 4));
+ fmt::format("shared uint smem[{}];", Common::DivCeil(program.shared_memory_size, 4U));
}
ctx.header += "void main(){\n";
if (program.local_memory_size > 0) {
- ctx.header += fmt::format("uint lmem[{}];", Common::AlignUp(program.local_memory_size, 4));
+ ctx.header += fmt::format("uint lmem[{}];", Common::DivCeil(program.local_memory_size, 4U));
}
DefineVariables(ctx, ctx.header);
if (ctx.uses_cc_carry) {