summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler
diff options
context:
space:
mode:
authorKelebek1 <eeeedddccc@hotmail.co.uk>2022-07-29 05:00:21 +0200
committerKelebek1 <eeeedddccc@hotmail.co.uk>2022-07-29 07:12:39 +0200
commitf580946b0ddcfbf6e20df71c3419a12018afec02 (patch)
treeb529d1015101c6eca876754f99901f2a9e9104eb /src/shader_recompiler
parentRevert Coretiming PRs 8531 and 7454 (#8591) (diff)
downloadyuzu-f580946b0ddcfbf6e20df71c3419a12018afec02.tar
yuzu-f580946b0ddcfbf6e20df71c3419a12018afec02.tar.gz
yuzu-f580946b0ddcfbf6e20df71c3419a12018afec02.tar.bz2
yuzu-f580946b0ddcfbf6e20df71c3419a12018afec02.tar.lz
yuzu-f580946b0ddcfbf6e20df71c3419a12018afec02.tar.xz
yuzu-f580946b0ddcfbf6e20df71c3419a12018afec02.tar.zst
yuzu-f580946b0ddcfbf6e20df71c3419a12018afec02.zip
Diffstat (limited to 'src/shader_recompiler')
-rw-r--r--src/shader_recompiler/backend/spirv/spirv_emit_context.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp b/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp
index d4a49ea99..98dd9035a 100644
--- a/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp
+++ b/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp
@@ -1306,7 +1306,7 @@ void EmitContext::DefineInputs(const IR::Program& program) {
subgroup_mask_gt = DefineInput(*this, U32[4], false, spv::BuiltIn::SubgroupGtMaskKHR);
subgroup_mask_ge = DefineInput(*this, U32[4], false, spv::BuiltIn::SubgroupGeMaskKHR);
}
- if (info.uses_subgroup_invocation_id || info.uses_subgroup_shuffles ||
+ if (info.uses_fswzadd || info.uses_subgroup_invocation_id || info.uses_subgroup_shuffles ||
(profile.warp_size_potentially_larger_than_guest &&
(info.uses_subgroup_vote || info.uses_subgroup_mask))) {
subgroup_local_invocation_id =
@@ -1411,7 +1411,8 @@ void EmitContext::DefineInputs(const IR::Program& program) {
void EmitContext::DefineOutputs(const IR::Program& program) {
const Info& info{program.info};
const std::optional<u32> invocations{program.invocations};
- if (info.stores.AnyComponent(IR::Attribute::PositionX) || stage == Stage::VertexB) {
+ if (runtime_info.convert_depth_mode || info.stores.AnyComponent(IR::Attribute::PositionX) ||
+ stage == Stage::VertexB) {
output_position = DefineOutput(*this, F32[4], invocations, spv::BuiltIn::Position);
}
if (info.stores[IR::Attribute::PointSize] || runtime_info.fixed_state_point_size) {