diff options
| author | 2021-05-10 18:21:28 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:31 -0400 | |
| commit | c4fd6b55bc9acd06b2fc89f84fd175d78e14110a (patch) | |
| tree | c246a1c64f4826faedcf5c93be778116e48caf85 /src/shader_recompiler/backend/spirv/emit_spirv.cpp | |
| parent | glasm: Add MUFU instructions to GLASM (diff) | |
| download | yuzu-c4fd6b55bc9acd06b2fc89f84fd175d78e14110a.tar.gz yuzu-c4fd6b55bc9acd06b2fc89f84fd175d78e14110a.tar.xz yuzu-c4fd6b55bc9acd06b2fc89f84fd175d78e14110a.zip | |
glasm: Implement shuffle and vote instructions on GLASM
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_spirv.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv.cpp b/src/shader_recompiler/backend/spirv/emit_spirv.cpp index 0681dfd16..2dad87e87 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv.cpp | |||
| @@ -318,7 +318,9 @@ void SetupCapabilities(const Profile& profile, const Info& info, EmitContext& ct | |||
| 318 | ctx.AddExtension("SPV_KHR_shader_draw_parameters"); | 318 | ctx.AddExtension("SPV_KHR_shader_draw_parameters"); |
| 319 | ctx.AddCapability(spv::Capability::DrawParameters); | 319 | ctx.AddCapability(spv::Capability::DrawParameters); |
| 320 | } | 320 | } |
| 321 | if ((info.uses_subgroup_vote || info.uses_subgroup_invocation_id) && profile.support_vote) { | 321 | if ((info.uses_subgroup_vote || info.uses_subgroup_invocation_id || |
| 322 | info.uses_subgroup_shuffles) && | ||
| 323 | profile.support_vote) { | ||
| 322 | ctx.AddExtension("SPV_KHR_shader_ballot"); | 324 | ctx.AddExtension("SPV_KHR_shader_ballot"); |
| 323 | ctx.AddCapability(spv::Capability::SubgroupBallotKHR); | 325 | ctx.AddCapability(spv::Capability::SubgroupBallotKHR); |
| 324 | if (!profile.warp_size_potentially_larger_than_guest) { | 326 | if (!profile.warp_size_potentially_larger_than_guest) { |