VERY experimental Nintendo Switch 2 emulator
C++
gl_shader_cache: Hack shared memory size
ReinUsesLisp2726dca44cdb
diff --git a/src/video_core/renderer_opengl/gl_shader_cache.cpp b/src/video_core/renderer_opengl/gl_shader_cache.cppindex 41ca005a17..370bdf0522 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, ShaderTypvariant.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) {