summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/glsl/emit_context.cpp
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-06-08 01:20:32 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:37 +0200
commit2a504b4765320882be8b4f2bde5f90262f76fd9f (patch)
tree597ab137b61b75e3fc3ff0b20876ce985f3a9cad /src/shader_recompiler/backend/glsl/emit_context.cpp
parentglsl: Rebase fixes (diff)
downloadyuzu-2a504b4765320882be8b4f2bde5f90262f76fd9f.tar
yuzu-2a504b4765320882be8b4f2bde5f90262f76fd9f.tar.gz
yuzu-2a504b4765320882be8b4f2bde5f90262f76fd9f.tar.bz2
yuzu-2a504b4765320882be8b4f2bde5f90262f76fd9f.tar.lz
yuzu-2a504b4765320882be8b4f2bde5f90262f76fd9f.tar.xz
yuzu-2a504b4765320882be8b4f2bde5f90262f76fd9f.tar.zst
yuzu-2a504b4765320882be8b4f2bde5f90262f76fd9f.zip
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_context.cpp')
-rw-r--r--src/shader_recompiler/backend/glsl/emit_context.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.cpp b/src/shader_recompiler/backend/glsl/emit_context.cpp
index 8cbb2ec57..d6b3c7aba 100644
--- a/src/shader_recompiler/backend/glsl/emit_context.cpp
+++ b/src/shader_recompiler/backend/glsl/emit_context.cpp
@@ -294,8 +294,6 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile
}
void EmitContext::SetupExtensions(std::string&) {
- // TODO: track this usage
- header += "#extension GL_ARB_sparse_texture2 : enable\n";
if (profile.support_gl_texture_shadow_lod) {
header += "#extension GL_EXT_texture_shadow_lod : enable\n";
}
@@ -331,6 +329,9 @@ void EmitContext::SetupExtensions(std::string&) {
stage != Stage::Geometry) {
header += "#extension GL_ARB_shader_viewport_layer_array : enable\n";
}
+ if (info.uses_sparse_residency) {
+ header += "#extension GL_ARB_sparse_texture2 : enable\n";
+ }
if (UsesTyplessImage(info)) {
header += "#extension GL_EXT_shader_image_load_formatted : enable\n";
}