mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00:00
Merge branch 'master' of https://github.com/RPCS3/rpcs3
This commit is contained in:
commit
2bd6265a17
1 changed files with 10 additions and 0 deletions
|
@ -504,13 +504,23 @@ s32 cellGcmSetPrepareFlip(PPUThread& ppu, vm::ptr<CellGcmContextData> ctxt, u32
|
|||
return res;
|
||||
}
|
||||
}
|
||||
#ifdef __GNUC__
|
||||
//gcc internal compiler error, try to avoid it for now
|
||||
*ctxt->current++ = (GCM_FLIP_COMMAND << 2) | (1 << 18);
|
||||
*ctxt->current++ = id;
|
||||
|
||||
if (ctxt.addr() == gcm_info.context_addr)
|
||||
{
|
||||
vm::get_ref<CellGcmControl>(gcm_info.control_addr).put += 2 * sizeof(u32);
|
||||
}
|
||||
#else
|
||||
u32 command_size = rsx::make_command(ctxt->current, GCM_FLIP_COMMAND, id);
|
||||
|
||||
if (ctxt.addr() == gcm_info.context_addr)
|
||||
{
|
||||
vm::get_ref<CellGcmControl>(gcm_info.control_addr).put += command_size * sizeof(u32);
|
||||
}
|
||||
#endif
|
||||
|
||||
return id;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue