ShaderCache: Fix Phi Nodes Type on OGL.

This commit is contained in:
Fernando Sahmkow 2021-11-01 22:26:17 +01:00
parent c50ad56bf5
commit 194579bc4f
3 changed files with 30 additions and 2 deletions

View file

@ -254,6 +254,10 @@ Inst* Inst::GetAssociatedPseudoOperation(IR::Opcode opcode) {
}
IR::Type Inst::Type() const {
if (op == IR::Opcode::Phi) {
// The type of a phi node is stored in its flags
return Flags<IR::Type>();
}
return TypeOf(op);
}