memory: honor sparse AMM unmaps and restore failed GPU ranges

This commit is contained in:
nmzik
2026-10-13 06:46:06 +02:00
parent f1577a5a94
commit 259a40abfc
4 changed files with 104 additions and 27 deletions
+1 -1
View File
@@ -1211,7 +1211,7 @@ static int ExecuteCommand(const CommandBufferState::Command& entry) {
const auto& command = *payload;
int result = OK;
if (command.kind == AmmCommandKind::Unmap) {
result = LibKernel::Memory::KernelMunmap(command.va, command.size);
result = LibKernel::Memory::UnmapAmmMemory(command.va, command.size);
} else {
result = ExecuteAmmMapCommand(command);
}