Avoid GetPointer on nvmap handles where they would be accessed via SMMU

GetPointer sets the sharedMemMapped flag, which should only be set if
other userspace processes have the handle mapped.
This commit is contained in:
Billy Laws 2021-10-30 18:50:59 +01:00 committed by PixelyIon
parent fd0420443c
commit 2577658fc7

View File

@ -151,7 +151,7 @@ namespace skyline::service::nvdrv::core {
} }
} }
state.soc->smmu.Map(address, handleDesc->GetPointer(), static_cast<u32>(handleDesc->alignedSize)); state.soc->smmu.Map(address, reinterpret_cast<u8 *>(handleDesc->address), static_cast<u32>(handleDesc->alignedSize));
handleDesc->pinVirtAddress = address; handleDesc->pinVirtAddress = address;
} }