mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
shader: Stub VOTE.VTG
This commit is contained in:
parent
bee8188799
commit
5ed8f24384
4 changed files with 15 additions and 4 deletions
|
@ -256,6 +256,13 @@ static U1 GetFlowTest(IREmitter& ir, FlowTest flow_test) {
|
||||||
return ir.LogicalOr(ir.GetSFlag(), ir.GetZFlag());
|
return ir.LogicalOr(ir.GetSFlag(), ir.GetZFlag());
|
||||||
case FlowTest::RGT:
|
case FlowTest::RGT:
|
||||||
return ir.LogicalAnd(ir.LogicalNot(ir.GetSFlag()), ir.LogicalNot(ir.GetZFlag()));
|
return ir.LogicalAnd(ir.LogicalNot(ir.GetSFlag()), ir.LogicalNot(ir.GetZFlag()));
|
||||||
|
case FlowTest::CSM_TA:
|
||||||
|
case FlowTest::CSM_TR:
|
||||||
|
case FlowTest::CSM_MX:
|
||||||
|
case FlowTest::FCSM_TA:
|
||||||
|
case FlowTest::FCSM_TR:
|
||||||
|
case FlowTest::FCSM_MX:
|
||||||
|
return ir.Imm1(false);
|
||||||
default:
|
default:
|
||||||
throw NotImplementedException("Flow test {}", flow_test);
|
throw NotImplementedException("Flow test {}", flow_test);
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,6 +95,10 @@ enum class SpecialRegister : u64 {
|
||||||
return ir.WorkgroupIdY();
|
return ir.WorkgroupIdY();
|
||||||
case SpecialRegister::SR_CTAID_Z:
|
case SpecialRegister::SR_CTAID_Z:
|
||||||
return ir.WorkgroupIdZ();
|
return ir.WorkgroupIdZ();
|
||||||
|
case SpecialRegister::SR_WSCALEFACTOR_XY:
|
||||||
|
return ir.Imm32(Common::BitCast<u32>(1.0f));
|
||||||
|
case SpecialRegister::SR_WSCALEFACTOR_Z:
|
||||||
|
return ir.Imm32(Common::BitCast<u32>(1.0f));
|
||||||
default:
|
default:
|
||||||
throw NotImplementedException("S2R special register {}", special_register);
|
throw NotImplementedException("S2R special register {}", special_register);
|
||||||
}
|
}
|
||||||
|
|
|
@ -329,10 +329,6 @@ void TranslatorVisitor::VADD(u64) {
|
||||||
ThrowNotImplemented(Opcode::VADD);
|
ThrowNotImplemented(Opcode::VADD);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TranslatorVisitor::VOTE_vtg(u64) {
|
|
||||||
ThrowNotImplemented(Opcode::VOTE_vtg);
|
|
||||||
}
|
|
||||||
|
|
||||||
void TranslatorVisitor::VSET(u64) {
|
void TranslatorVisitor::VSET(u64) {
|
||||||
ThrowNotImplemented(Opcode::VSET);
|
ThrowNotImplemented(Opcode::VSET);
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,4 +49,8 @@ void TranslatorVisitor::VOTE(u64 insn) {
|
||||||
Vote(*this, insn);
|
Vote(*this, insn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TranslatorVisitor::VOTE_vtg(u64) {
|
||||||
|
// Stub
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace Shader::Maxwell
|
} // namespace Shader::Maxwell
|
||||||
|
|
Loading…
Reference in a new issue