|
|
|
@ -104,10 +104,12 @@ u32 nvhost_as_gpu::Remap(const std::vector<u8>& input, std::vector<u8>& output)
|
|
|
|
|
|
|
|
|
|
ASSERT(object->status == nvmap::Object::Status::Allocated);
|
|
|
|
|
|
|
|
|
|
u64 size = static_cast<u64>(entry.pages) << 0x10;
|
|
|
|
|
const u64 size = static_cast<u64>(entry.pages) << 0x10;
|
|
|
|
|
ASSERT(size <= object->size);
|
|
|
|
|
const u64 map_offset = static_cast<u64>(entry.map_offset) << 0x10;
|
|
|
|
|
|
|
|
|
|
GPUVAddr returned = gpu.MemoryManager().MapBufferEx(object->addr, offset, size);
|
|
|
|
|
const GPUVAddr returned =
|
|
|
|
|
gpu.MemoryManager().MapBufferEx(object->addr + map_offset, offset, size);
|
|
|
|
|
ASSERT(returned == offset);
|
|
|
|
|
}
|
|
|
|
|
std::memcpy(output.data(), entries.data(), output.size());
|
|
|
|
|