diff options
| author | 2021-05-14 02:09:33 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:31 -0400 | |
| commit | d4385c34e3aee6718502a1c5bc814535a657dc4f (patch) | |
| tree | 19fe9f9da76538276029fbf79aadc60b9864902e /src/shader_recompiler/backend/glasm | |
| parent | vk_update_descriptor: Properly initialize payload on the update descriptor queue (diff) | |
| download | yuzu-d4385c34e3aee6718502a1c5bc814535a657dc4f.tar.gz yuzu-d4385c34e3aee6718502a1c5bc814535a657dc4f.tar.xz yuzu-d4385c34e3aee6718502a1c5bc814535a657dc4f.zip | |
glasm: Declare NV_shader_thread_group when needed
Diffstat (limited to 'src/shader_recompiler/backend/glasm')
| -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 51ca83d18..fa48ba25c 100644 --- a/src/shader_recompiler/backend/glasm/emit_glasm.cpp +++ b/src/shader_recompiler/backend/glasm/emit_glasm.cpp | |||
| @@ -218,15 +218,16 @@ void SetupOptions(std::string& header, Info info) { | |||
| 218 | if (info.uses_atomic_f16x2_add || info.uses_atomic_f16x2_min || info.uses_atomic_f16x2_max) { | 218 | if (info.uses_atomic_f16x2_add || info.uses_atomic_f16x2_min || info.uses_atomic_f16x2_max) { |
| 219 | header += "OPTION NV_shader_atomic_fp16_vector;"; | 219 | header += "OPTION NV_shader_atomic_fp16_vector;"; |
| 220 | } | 220 | } |
| 221 | if (info.uses_subgroup_invocation_id || info.uses_subgroup_mask) { | 221 | if (info.uses_subgroup_invocation_id || info.uses_subgroup_mask || info.uses_subgroup_vote) { |
| 222 | header += "OPTION NV_shader_thread_group;"; | 222 | header += "OPTION NV_shader_thread_group;"; |
| 223 | } | 223 | } |
| 224 | if (info.uses_subgroup_shuffles) { | 224 | if (info.uses_subgroup_shuffles) { |
| 225 | header += "OPTION NV_shader_thread_shuffle;"; | 225 | header += "OPTION NV_shader_thread_shuffle;"; |
| 226 | } | 226 | } |
| 227 | // TODO: Track the shared atomic ops | 227 | // TODO: Track the shared atomic ops |
| 228 | header += | 228 | header += "OPTION NV_shader_storage_buffer;" |
| 229 | "OPTION NV_shader_storage_buffer;OPTION NV_gpu_program_fp64;OPTION NV_bindless_texture;"; | 229 | "OPTION NV_gpu_program_fp64;" |
| 230 | "OPTION NV_bindless_texture;"; | ||
| 230 | } | 231 | } |
| 231 | } // Anonymous namespace | 232 | } // Anonymous namespace |
| 232 | 233 | ||