diff options
| author | 2021-06-02 03:02:33 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:34 -0400 | |
| commit | 79f2fe1a39120f498e915fa0c740b15dc0f09793 (patch) | |
| tree | ee1fb2edc8193295930abbf1ad157bdaf4a682d5 /src/shader_recompiler/backend/glasm/emit_glasm.cpp | |
| parent | buffer_cache: Reduce uniform buffer size from shader usage (diff) | |
| download | yuzu-79f2fe1a39120f498e915fa0c740b15dc0f09793.tar.gz yuzu-79f2fe1a39120f498e915fa0c740b15dc0f09793.tar.xz yuzu-79f2fe1a39120f498e915fa0c740b15dc0f09793.zip | |
glasm: Use ARB_derivative_control conditionally
Diffstat (limited to 'src/shader_recompiler/backend/glasm/emit_glasm.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm.cpp b/src/shader_recompiler/backend/glasm/emit_glasm.cpp index 70ca6f621..fc01797b6 100644 --- a/src/shader_recompiler/backend/glasm/emit_glasm.cpp +++ b/src/shader_recompiler/backend/glasm/emit_glasm.cpp | |||
| @@ -265,9 +265,7 @@ void SetupOptions(const IR::Program& program, const Profile& profile, | |||
| 265 | // TODO: Track the shared atomic ops | 265 | // TODO: Track the shared atomic ops |
| 266 | header += "OPTION NV_internal;" | 266 | header += "OPTION NV_internal;" |
| 267 | "OPTION NV_shader_storage_buffer;" | 267 | "OPTION NV_shader_storage_buffer;" |
| 268 | "OPTION NV_gpu_program_fp64;" | 268 | "OPTION NV_gpu_program_fp64;"; |
| 269 | "OPTION NV_bindless_texture;" | ||
| 270 | "OPTION ARB_derivative_control;"; | ||
| 271 | if (info.uses_int64_bit_atomics) { | 269 | if (info.uses_int64_bit_atomics) { |
| 272 | header += "OPTION NV_shader_atomic_int64;"; | 270 | header += "OPTION NV_shader_atomic_int64;"; |
| 273 | } | 271 | } |
| @@ -295,6 +293,9 @@ void SetupOptions(const IR::Program& program, const Profile& profile, | |||
| 295 | if (info.uses_typeless_image_reads && profile.support_typeless_image_loads) { | 293 | if (info.uses_typeless_image_reads && profile.support_typeless_image_loads) { |
| 296 | header += "OPTION EXT_shader_image_load_formatted;"; | 294 | header += "OPTION EXT_shader_image_load_formatted;"; |
| 297 | } | 295 | } |
| 296 | if (profile.support_derivative_control) { | ||
| 297 | header += "OPTION ARB_derivative_control;"; | ||
| 298 | } | ||
| 298 | if (stage == Stage::Fragment && runtime_info.force_early_z != 0) { | 299 | if (stage == Stage::Fragment && runtime_info.force_early_z != 0) { |
| 299 | header += "OPTION NV_early_fragment_tests;"; | 300 | header += "OPTION NV_early_fragment_tests;"; |
| 300 | } | 301 | } |