summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-11-22 08:59:18 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-11-23 01:28:49 +0100
commit894ad74b8776687bdf9699b53c75659fbc757941 (patch)
tree12fbe0e6097c72a5d95ccdd56cdec589c2984e60 /src/video_core
parentgl_shader_decompiler: Normalize image bindings (diff)
downloadyuzu-894ad74b8776687bdf9699b53c75659fbc757941.tar
yuzu-894ad74b8776687bdf9699b53c75659fbc757941.tar.gz
yuzu-894ad74b8776687bdf9699b53c75659fbc757941.tar.bz2
yuzu-894ad74b8776687bdf9699b53c75659fbc757941.tar.lz
yuzu-894ad74b8776687bdf9699b53c75659fbc757941.tar.xz
yuzu-894ad74b8776687bdf9699b53c75659fbc757941.tar.zst
yuzu-894ad74b8776687bdf9699b53c75659fbc757941.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_cache.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_cache.cpp b/src/video_core/renderer_opengl/gl_shader_cache.cpp
index 41ca005a1..370bdf052 100644
--- a/src/video_core/renderer_opengl/gl_shader_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_cache.cpp
@@ -279,8 +279,9 @@ CachedProgram BuildShader(const Device& device, u64 unique_identifier, ShaderTyp
variant.block_x, variant.block_y, variant.block_z);
if (variant.shared_memory_size > 0) {
- source += fmt::format("shared uint smem[{}];",
- Common::AlignUp(variant.shared_memory_size, 4) / 4);
+ // TODO(Rodrigo): We should divide by four here, but having a larger shared memory pool
+ // avoids out of bound stores. Find out why shared memory size is being invalid.
+ source += fmt::format("shared uint smem[{}];", variant.shared_memory_size);
}
if (variant.local_memory_size > 0) {