mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-02 08:04:23 +01:00
Don't crash on the Grp0SetSubDevMask TertOp
Used by Vulkan games to set the SLI mask, not applicable to the switch.
This commit is contained in:
parent
1d83dadefb
commit
2ce146e28f
@ -316,6 +316,11 @@ namespace skyline::soc::gm20b {
|
|||||||
return dispatchCalls.operator()<MethodResumeState::State::NonInc>();
|
return dispatchCalls.operator()<MethodResumeState::State::NonInc>();
|
||||||
} else if (methodHeader.secOp == PushBufferMethodHeader::SecOp::EndPbSegment) [[unlikely]] {
|
} else if (methodHeader.secOp == PushBufferMethodHeader::SecOp::EndPbSegment) [[unlikely]] {
|
||||||
return true;
|
return true;
|
||||||
|
} else if (methodHeader.secOp == PushBufferMethodHeader::SecOp::Grp0UseTert) {
|
||||||
|
if (methodHeader.tertOp == PushBufferMethodHeader::TertOp::Grp0SetSubDevMask)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
throw exception("Unsupported pushbuffer method TertOp: {}", static_cast<u8>(methodHeader.tertOp));
|
||||||
} else {
|
} else {
|
||||||
throw exception("Unsupported pushbuffer method SecOp: {}", static_cast<u8>(methodHeader.secOp));
|
throw exception("Unsupported pushbuffer method SecOp: {}", static_cast<u8>(methodHeader.secOp));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user