GS: Don't catch code generation exceptions

If codegen throws an exception, it ends up just crashing when you jump to the incompletely-generated code which is kind of useless
This commit is contained in:
TellowKrinkle 2021-08-28 17:02:24 -05:00 committed by refractionpcsx2
parent f712b2b63a
commit 0200933ddd
2 changed files with 6 additions and 20 deletions

View File

@ -37,14 +37,7 @@ GSDrawScanlineCodeGenerator::GSDrawScanlineCodeGenerator(void* param, uint64 key
if (m_sel.breakpoint)
db(0xCC);
try
{
Generate();
}
catch (std::exception& e)
{
fprintf(stderr, "ERR:GSDrawScanlineCodeGenerator %s\n", e.what());
}
Generate();
}
void GSDrawScanlineCodeGenerator::modulate16(const Xmm& a, const Operand& f, uint8 shift)

View File

@ -30,19 +30,12 @@ GSSetupPrimCodeGenerator::GSSetupPrimCodeGenerator(void* param, uint64 key, void
m_en.t = m_sel.fb && m_sel.tfx != TFX_NONE ? 1 : 0;
m_en.c = m_sel.fb && !(m_sel.tfx == TFX_DECAL && m_sel.tcc) ? 1 : 0;
try
{
#if _M_SSE >= 0x501
Generate_AVX2();
Generate_AVX2();
#else
if (m_cpu.has(util::Cpu::tAVX))
Generate_AVX();
else
Generate_SSE();
if (m_cpu.has(util::Cpu::tAVX))
Generate_AVX();
else
Generate_SSE();
#endif
}
catch (std::exception& e)
{
fprintf(stderr, "ERR:GSSetupPrimCodeGenerator %s\n", e.what());
}
}