diff options
| author | 2021-05-30 19:13:22 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:37 -0400 | |
| commit | 9f3ffb996b0d02ca64b492d22ff158e8f3659257 (patch) | |
| tree | 48993eaf320484cf042071a81a1a6b1dcc829eb9 /src/shader_recompiler/backend/glsl/emit_context.cpp | |
| parent | glsl: Rework variable allocator to allow for variable reuse (diff) | |
| download | yuzu-9f3ffb996b0d02ca64b492d22ff158e8f3659257.tar.gz yuzu-9f3ffb996b0d02ca64b492d22ff158e8f3659257.tar.xz yuzu-9f3ffb996b0d02ca64b492d22ff158e8f3659257.zip | |
glsl: Rework var alloc to not assign unused results
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_context.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/emit_context.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.cpp b/src/shader_recompiler/backend/glsl/emit_context.cpp index b9594de40..da29290a2 100644 --- a/src/shader_recompiler/backend/glsl/emit_context.cpp +++ b/src/shader_recompiler/backend/glsl/emit_context.cpp | |||
| @@ -122,11 +122,9 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile | |||
| 122 | 122 | ||
| 123 | void EmitContext::SetupExtensions(std::string&) { | 123 | void EmitContext::SetupExtensions(std::string&) { |
| 124 | header += "#extension GL_ARB_separate_shader_objects : enable\n"; | 124 | header += "#extension GL_ARB_separate_shader_objects : enable\n"; |
| 125 | if (stage != Stage::Compute) { | 125 | // TODO: track this usage |
| 126 | // TODO: track this usage | 126 | header += "#extension GL_ARB_sparse_texture2 : enable\n"; |
| 127 | header += "#extension GL_ARB_sparse_texture2 : enable\n"; | 127 | header += "#extension GL_EXT_texture_shadow_lod : enable\n"; |
| 128 | header += "#extension GL_EXT_texture_shadow_lod : enable\n"; | ||
| 129 | } | ||
| 130 | if (info.uses_int64) { | 128 | if (info.uses_int64) { |
| 131 | header += "#extension GL_ARB_gpu_shader_int64 : enable\n"; | 129 | header += "#extension GL_ARB_gpu_shader_int64 : enable\n"; |
| 132 | } | 130 | } |