summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glsl/emit_context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_context.cpp')
-rw-r--r--src/shader_recompiler/backend/glsl/emit_context.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.cpp b/src/shader_recompiler/backend/glsl/emit_context.cpp
index 0dcdff152..e08d2d2eb 100644
--- a/src/shader_recompiler/backend/glsl/emit_context.cpp
+++ b/src/shader_recompiler/backend/glsl/emit_context.cpp
@@ -378,7 +378,7 @@ void EmitContext::SetupExtensions() {
378 if (info.uses_shadow_lod && profile.support_gl_texture_shadow_lod) { 378 if (info.uses_shadow_lod && profile.support_gl_texture_shadow_lod) {
379 header += "#extension GL_EXT_texture_shadow_lod : enable\n"; 379 header += "#extension GL_EXT_texture_shadow_lod : enable\n";
380 } 380 }
381 if (info.uses_int64) { 381 if (info.uses_int64 && profile.support_int64) {
382 header += "#extension GL_ARB_gpu_shader_int64 : enable\n"; 382 header += "#extension GL_ARB_gpu_shader_int64 : enable\n";
383 } 383 }
384 if (info.uses_int64_bit_atomics) { 384 if (info.uses_int64_bit_atomics) {
@@ -402,7 +402,7 @@ void EmitContext::SetupExtensions() {
402 info.uses_subgroup_shuffles || info.uses_fswzadd) { 402 info.uses_subgroup_shuffles || info.uses_fswzadd) {
403 header += "#extension GL_ARB_shader_ballot : enable\n" 403 header += "#extension GL_ARB_shader_ballot : enable\n"
404 "#extension GL_ARB_shader_group_vote : enable\n"; 404 "#extension GL_ARB_shader_group_vote : enable\n";
405 if (!info.uses_int64) { 405 if (!info.uses_int64 && profile.support_int64) {
406 header += "#extension GL_ARB_gpu_shader_int64 : enable\n"; 406 header += "#extension GL_ARB_gpu_shader_int64 : enable\n";
407 } 407 }
408 if (profile.support_gl_warp_intrinsics) { 408 if (profile.support_gl_warp_intrinsics) {
@@ -539,7 +539,7 @@ void EmitContext::DefineHelperFunctions() {
539 if (info.uses_atomic_s32_max) { 539 if (info.uses_atomic_s32_max) {
540 header += "uint CasMaxS32(uint op_a,uint op_b){return uint(max(int(op_a),int(op_b)));}"; 540 header += "uint CasMaxS32(uint op_a,uint op_b){return uint(max(int(op_a),int(op_b)));}";
541 } 541 }
542 if (info.uses_global_memory) { 542 if (info.uses_global_memory && profile.support_int64) {
543 header += DefineGlobalMemoryFunctions(); 543 header += DefineGlobalMemoryFunctions();
544 } 544 }
545 if (info.loads_indexed_attributes) { 545 if (info.loads_indexed_attributes) {