summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-05-22 01:46:40 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:33 +0200
commitc31521512fd49603ea42c93e2a6eac5d7985cd78 (patch)
treefdbf1009f76f543f11e3fd41df18f3a5b752637a /src/shader_recompiler/backend
parentgl_shader_cache: Improve GLASM error print logic (diff)
downloadyuzu-c31521512fd49603ea42c93e2a6eac5d7985cd78.tar
yuzu-c31521512fd49603ea42c93e2a6eac5d7985cd78.tar.gz
yuzu-c31521512fd49603ea42c93e2a6eac5d7985cd78.tar.bz2
yuzu-c31521512fd49603ea42c93e2a6eac5d7985cd78.tar.lz
yuzu-c31521512fd49603ea42c93e2a6eac5d7985cd78.tar.xz
yuzu-c31521512fd49603ea42c93e2a6eac5d7985cd78.tar.zst
yuzu-c31521512fd49603ea42c93e2a6eac5d7985cd78.zip
Diffstat (limited to 'src/shader_recompiler/backend')
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm.cpp b/src/shader_recompiler/backend/glasm/emit_glasm.cpp
index 0c2bbf284..8718cc7ec 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm.cpp
+++ b/src/shader_recompiler/backend/glasm/emit_glasm.cpp
@@ -271,8 +271,7 @@ void SetupOptions(const IR::Program& program, const Profile& profile,
"OPTION NV_shader_storage_buffer;"
"OPTION NV_gpu_program_fp64;"
"OPTION NV_bindless_texture;"
- "OPTION ARB_derivative_control;"
- "OPTION EXT_shader_image_load_formatted;";
+ "OPTION ARB_derivative_control;";
if (info.uses_int64_bit_atomics) {
header += "OPTION NV_shader_atomic_int64;";
}
@@ -297,6 +296,9 @@ void SetupOptions(const IR::Program& program, const Profile& profile,
header += "OPTION NV_viewport_array2;";
}
}
+ if (info.uses_typeless_image_reads && profile.support_typeless_image_loads) {
+ header += "OPTION EXT_shader_image_load_formatted;";
+ }
if (stage == Stage::Fragment && runtime_info.force_early_z != 0) {
header += "OPTION NV_early_fragment_tests;";
}