2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

shader: Stub TLD4's PTP when it isn't constant

This commit is contained in:
FernandoS27 2021-04-01 08:25:55 +02:00 committed by ameerj
parent 5ed8f24384
commit fd496d0401

View file

@ -40,7 +40,8 @@ public:
} }
const std::array values{offset.InstRecursive(), offset2.InstRecursive()}; const std::array values{offset.InstRecursive(), offset2.InstRecursive()};
if (!values[0]->AreAllArgsImmediates() || !values[1]->AreAllArgsImmediates()) { if (!values[0]->AreAllArgsImmediates() || !values[1]->AreAllArgsImmediates()) {
throw NotImplementedException("Not all arguments in PTP are immediate"); // LOG_WARNING("Not all arguments in PTP are immediate, STUBBING");
return;
} }
const IR::Opcode opcode{values[0]->Opcode()}; const IR::Opcode opcode{values[0]->Opcode()};
if (opcode != values[1]->Opcode() || opcode != IR::Opcode::CompositeConstructU32x4) { if (opcode != values[1]->Opcode() || opcode != IR::Opcode::CompositeConstructU32x4) {