diff options
| author | 2019-12-13 21:35:29 -0500 | |
|---|---|---|
| committer | 2019-12-13 21:35:29 -0500 | |
| commit | 2b650543c652623294fe4d7fe096ae0d4820b147 (patch) | |
| tree | e513ea4b2408307d180bfcba060be1ae92503aaa /src/video_core | |
| parent | Merge pull request #3214 from lioncash/svc-func (diff) | |
| parent | gl_shader_cache: Add missing new-line on emitted GLSL (diff) | |
| download | yuzu-2b650543c652623294fe4d7fe096ae0d4820b147.tar.gz yuzu-2b650543c652623294fe4d7fe096ae0d4820b147.tar.xz yuzu-2b650543c652623294fe4d7fe096ae0d4820b147.zip | |
Merge pull request #3212 from ReinUsesLisp/fix-smem-lmem
gl_shader_cache: Add missing new-line on emitted GLSL
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_cache.cpp | 4 |
1 files changed, 2 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 370bdf052..270a9dc2b 100644 --- a/src/video_core/renderer_opengl/gl_shader_cache.cpp +++ b/src/video_core/renderer_opengl/gl_shader_cache.cpp | |||
| @@ -281,11 +281,11 @@ CachedProgram BuildShader(const Device& device, u64 unique_identifier, ShaderTyp | |||
| 281 | if (variant.shared_memory_size > 0) { | 281 | if (variant.shared_memory_size > 0) { |
| 282 | // TODO(Rodrigo): We should divide by four here, but having a larger shared memory pool | 282 | // TODO(Rodrigo): We should divide by four here, but having a larger shared memory pool |
| 283 | // avoids out of bound stores. Find out why shared memory size is being invalid. | 283 | // avoids out of bound stores. Find out why shared memory size is being invalid. |
| 284 | source += fmt::format("shared uint smem[{}];", variant.shared_memory_size); | 284 | source += fmt::format("shared uint smem[{}];\n", variant.shared_memory_size); |
| 285 | } | 285 | } |
| 286 | 286 | ||
| 287 | if (variant.local_memory_size > 0) { | 287 | if (variant.local_memory_size > 0) { |
| 288 | source += fmt::format("#define LOCAL_MEMORY_SIZE {}", | 288 | source += fmt::format("#define LOCAL_MEMORY_SIZE {}\n", |
| 289 | Common::AlignUp(variant.local_memory_size, 4) / 4); | 289 | Common::AlignUp(variant.local_memory_size, 4) / 4); |
| 290 | } | 290 | } |
| 291 | } | 291 | } |