mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
GPU: Remove JumpFast/CallFast. They only avoid a very quick check and not worth the unsafety.
This commit is contained in:
parent
fea78f93b2
commit
640c4fe9e1
3 changed files with 0 additions and 23 deletions
|
@ -953,12 +953,6 @@ void GPUCommon::Execute_Jump(u32 op, u32 diff) {
|
|||
currentList->pc = target - 4; // pc will be increased after we return, counteract that
|
||||
}
|
||||
|
||||
void GPUCommon::Execute_JumpFast(u32 op, u32 diff) {
|
||||
const u32 target = gstate_c.getRelativeAddress(op & 0x00FFFFFC);
|
||||
UpdatePC(currentList->pc, target - 4);
|
||||
currentList->pc = target - 4; // pc will be increased after we return, counteract that
|
||||
}
|
||||
|
||||
void GPUCommon::Execute_BJump(u32 op, u32 diff) {
|
||||
if (!currentList->bboxResult) {
|
||||
// bounding box jump.
|
||||
|
@ -985,13 +979,6 @@ void GPUCommon::Execute_Call(u32 op, u32 diff) {
|
|||
DoExecuteCall(target);
|
||||
}
|
||||
|
||||
void GPUCommon::Execute_CallFast(u32 op, u32 diff) {
|
||||
PROFILE_THIS_SCOPE("gpu_call");
|
||||
|
||||
const u32 target = gstate_c.getRelativeAddress(op & 0x00FFFFFC);
|
||||
DoExecuteCall(target);
|
||||
}
|
||||
|
||||
void GPUCommon::DoExecuteCall(u32 target) {
|
||||
// Saint Seiya needs correct support for relative calls.
|
||||
const u32 retval = currentList->pc + 4;
|
||||
|
|
|
@ -140,10 +140,8 @@ public:
|
|||
void Execute_Iaddr(u32 op, u32 diff);
|
||||
void Execute_Origin(u32 op, u32 diff);
|
||||
void Execute_Jump(u32 op, u32 diff);
|
||||
void Execute_JumpFast(u32 op, u32 diff);
|
||||
void Execute_BJump(u32 op, u32 diff);
|
||||
void Execute_Call(u32 op, u32 diff);
|
||||
void Execute_CallFast(u32 op, u32 diff);
|
||||
void Execute_Ret(u32 op, u32 diff);
|
||||
void Execute_End(u32 op, u32 diff);
|
||||
|
||||
|
|
|
@ -442,14 +442,6 @@ void GPUCommonHW::UpdateCmdInfo() {
|
|||
cmdInfo_[GE_CMD_VERTEXTYPE].func = &GPUCommonHW::Execute_VertexType;
|
||||
}
|
||||
|
||||
if (g_Config.bFastMemory) {
|
||||
cmdInfo_[GE_CMD_JUMP].func = &GPUCommon::Execute_JumpFast;
|
||||
cmdInfo_[GE_CMD_CALL].func = &GPUCommon::Execute_CallFast;
|
||||
} else {
|
||||
cmdInfo_[GE_CMD_JUMP].func = &GPUCommon::Execute_Jump;
|
||||
cmdInfo_[GE_CMD_CALL].func = &GPUCommon::Execute_Call;
|
||||
}
|
||||
|
||||
// Reconfigure for light ubershader or not.
|
||||
for (int i = 0; i < 4; i++) {
|
||||
if (gstate_c.Use(GPU_USE_LIGHT_UBERSHADER)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue