mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-03-27 23:55:45 +01:00
gc: fix switch buffer
This commit is contained in:
parent
804d195922
commit
4a0cbe7701
|
|
@ -238,7 +238,7 @@ static orbis::ErrorCode gc_ioctl(orbis::File *file, std::uint64_t request,
|
||||||
auto args = reinterpret_cast<Args *>(argp);
|
auto args = reinterpret_cast<Args *>(argp);
|
||||||
if (auto gpu = amdgpu::DeviceCtl{orbis::g_context.gpuDevice}) {
|
if (auto gpu = amdgpu::DeviceCtl{orbis::g_context.gpuDevice}) {
|
||||||
gpu.waitForIdle();
|
gpu.waitForIdle();
|
||||||
gpu.submitSwitchBuffer(orbis::g_currentThread->tproc->vmId);
|
gpu.submitSwitchBuffer(orbis::g_currentThread->tproc->gfxRing);
|
||||||
} else {
|
} else {
|
||||||
return orbis::ErrorCode::BUSY;
|
return orbis::ErrorCode::BUSY;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue