mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-20 07:30:24 +01:00
amdgpu: fix mapMemory
This commit is contained in:
parent
d32a0d54ab
commit
b784adbd67
|
|
@ -984,7 +984,7 @@ void Device::mapMemory(std::uint32_t pid, rx::AddressRange virtualRange,
|
|||
auto vmemAddress = memory.getVirtualAddress(virtualRange.beginAddress());
|
||||
auto errc = orbis::pmem::map(vmemAddress,
|
||||
rx::AddressRange::fromBeginSize(
|
||||
physicalOffset, virtualRange.beginAddress()),
|
||||
physicalOffset, virtualRange.size()),
|
||||
orbis::vmem::toGpuProtection(prot));
|
||||
if (errc != orbis::ErrorCode{}) {
|
||||
rx::die("failed to map process {} memory, address {:x}-{:x}, type {}, "
|
||||
|
|
|
|||
Loading…
Reference in a new issue