mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-02 07:24:15 +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
@ -315,9 +315,14 @@ namespace skyline::soc::gm20b {
|
|||||||
} else if (methodHeader.secOp == PushBufferMethodHeader::SecOp::NonIncMethod) [[unlikely]] {
|
} else if (methodHeader.secOp == PushBufferMethodHeader::SecOp::NonIncMethod) [[unlikely]] {
|
||||||
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