diff options
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_context.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_context.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_context.cpp b/src/shader_recompiler/backend/spirv/emit_context.cpp index ea46af244..5db4a9082 100644 --- a/src/shader_recompiler/backend/spirv/emit_context.cpp +++ b/src/shader_recompiler/backend/spirv/emit_context.cpp | |||
| @@ -274,7 +274,8 @@ void EmitContext::DefineInputs(const Info& info) { | |||
| 274 | if (info.uses_local_invocation_id) { | 274 | if (info.uses_local_invocation_id) { |
| 275 | local_invocation_id = DefineInput(*this, U32[3], spv::BuiltIn::LocalInvocationId); | 275 | local_invocation_id = DefineInput(*this, U32[3], spv::BuiltIn::LocalInvocationId); |
| 276 | } | 276 | } |
| 277 | if (profile.warp_size_potentially_larger_than_guest && info.uses_subgroup_vote) { | 277 | if (info.uses_subgroup_invocation_id || |
| 278 | (profile.warp_size_potentially_larger_than_guest && info.uses_subgroup_vote)) { | ||
| 278 | subgroup_local_invocation_id = | 279 | subgroup_local_invocation_id = |
| 279 | DefineInput(*this, U32[1], spv::BuiltIn::SubgroupLocalInvocationId); | 280 | DefineInput(*this, U32[1], spv::BuiltIn::SubgroupLocalInvocationId); |
| 280 | } | 281 | } |