Browse Source
[spir-v, emit] Flat Decoration Adjustment
pull/3169/head
CamilleLaVey
4 weeks ago
committed by
Caio Oliveira
No known key found for this signature in database
GPG Key ID: 362DA3DC1901E080
1 changed files with
3 additions and
1 deletions
-
src/shader_recompiler/backend/spirv/spirv_emit_context.cpp
|
|
|
@ -1462,7 +1462,9 @@ void EmitContext::DefineInputs(const IR::Program& program) { |
|
|
|
AddCapability(spv::Capability::GroupNonUniform); |
|
|
|
subgroup_local_invocation_id = |
|
|
|
DefineInput(*this, U32[1], false, spv::BuiltIn::SubgroupLocalInvocationId); |
|
|
|
Decorate(subgroup_local_invocation_id, spv::Decoration::Flat); |
|
|
|
if (stage == Stage::Fragment) { |
|
|
|
Decorate(subgroup_local_invocation_id, spv::Decoration::Flat); |
|
|
|
} |
|
|
|
} |
|
|
|
if (info.uses_fswzadd) { |
|
|
|
const Id f32_one{Const(1.0f)}; |
|
|
|
|