shader_recompiler: Fix check for fragment depth store. (#1694)

This commit is contained in:
squidbus
2024-12-08 00:20:05 -08:00
committed by GitHub
parent 7d546f32d8
commit 71a82199ed

View File

@@ -284,7 +284,7 @@ void DefineEntryPoint(const IR::Program& program, EmitContext& ctx, Id main) {
ctx.AddExtension("SPV_EXT_demote_to_helper_invocation");
ctx.AddCapability(spv::Capability::DemoteToHelperInvocationEXT);
}
if (info.stores.Get(IR::Attribute::Depth)) {
if (info.stores.GetAny(IR::Attribute::Depth)) {
ctx.AddExecutionMode(main, spv::ExecutionMode::DepthReplacing);
}
break;