gc: fix switch buffer

This commit is contained in:
DH 2024-11-24 14:13:01 +03:00
parent 804d195922
commit 4a0cbe7701

View file

@ -238,7 +238,7 @@ static orbis::ErrorCode gc_ioctl(orbis::File *file, std::uint64_t request,
auto args = reinterpret_cast<Args *>(argp);
if (auto gpu = amdgpu::DeviceCtl{orbis::g_context.gpuDevice}) {
gpu.waitForIdle();
gpu.submitSwitchBuffer(orbis::g_currentThread->tproc->vmId);
gpu.submitSwitchBuffer(orbis::g_currentThread->tproc->gfxRing);
} else {
return orbis::ErrorCode::BUSY;
}