mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-18 06:47:34 +01:00
spirv: Add OpKill fallback to demote
This commit is contained in:
parent
d2a0f9d7ad
commit
fd913bceaf
@ -35,8 +35,12 @@ void EmitUnreachable(EmitContext& ctx) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void EmitDemoteToHelperInvocation(EmitContext& ctx, Id continue_label) {
|
void EmitDemoteToHelperInvocation(EmitContext& ctx, Id continue_label) {
|
||||||
ctx.OpDemoteToHelperInvocationEXT();
|
if (ctx.profile.support_demote_to_helper_invocation) {
|
||||||
ctx.OpBranch(continue_label);
|
ctx.OpDemoteToHelperInvocationEXT();
|
||||||
|
ctx.OpBranch(continue_label);
|
||||||
|
} else {
|
||||||
|
ctx.OpKill();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Shader::Backend::SPIRV
|
} // namespace Shader::Backend::SPIRV
|
||||||
|
Loading…
Reference in New Issue
Block a user