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

control_flow: Assert shaders bigger than limit.

This commit is contained in:
Fernando Sahmkow 2019-06-26 13:16:13 -04:00 committed by FernandoS27
parent e7a88f0ab3
commit dc4a93594c

View file

@ -139,6 +139,8 @@ std::pair<ParseResult, ParseInfo> ParseCode(CFGRebuildState& state, u32 address)
while (true) { while (true) {
if (offset >= end_address) { if (offset >= end_address) {
// ASSERT_OR_EXECUTE can't be used, as it ignores the break
ASSERT_MSG(false, "Shader passed the current limit!");
parse_info.branch_info.address = exit_branch; parse_info.branch_info.address = exit_branch;
parse_info.branch_info.ignore = false; parse_info.branch_info.ignore = false;
break; break;