mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-14 16:37:56 -05:00
shader: Read branch conditions from an instruction
Fixes the identity removal pass.
This commit is contained in:
@ -469,7 +469,15 @@ Id EmitIdentity(EmitContext& ctx, const IR::Value& value) {
|
||||
return id;
|
||||
}
|
||||
|
||||
void EmitDummyReference(EmitContext&) {}
|
||||
Id EmitConditionRef(EmitContext& ctx, const IR::Value& value) {
|
||||
const Id id{ctx.Def(value)};
|
||||
if (!Sirit::ValidId(id)) {
|
||||
throw NotImplementedException("Forward identity declaration");
|
||||
}
|
||||
return id;
|
||||
}
|
||||
|
||||
void EmitReference(EmitContext&) {}
|
||||
|
||||
void EmitPhiMove(EmitContext&) {
|
||||
throw LogicError("Unreachable instruction");
|
||||
|
Reference in New Issue
Block a user