GPU: Implemented nvhost-as-gpu's UnmapBuffer ioctl.

It removes a mapping previously created with the MapBufferEx ioctl.
This commit is contained in:
Subv 2018-05-20 14:21:06 -05:00
parent 1b5c02fc37
commit 72b5c448cf
4 changed files with 70 additions and 0 deletions

View file

@ -25,6 +25,7 @@ public:
GPUVAddr AllocateSpace(GPUVAddr gpu_addr, u64 size, u64 align);
GPUVAddr MapBufferEx(VAddr cpu_addr, u64 size);
GPUVAddr MapBufferEx(VAddr cpu_addr, GPUVAddr gpu_addr, u64 size);
GPUVAddr UnmapBuffer(GPUVAddr gpu_addr, u64 size);
boost::optional<VAddr> GpuToCpuAddress(GPUVAddr gpu_addr);
std::vector<GPUVAddr> CpuToGpuAddress(VAddr cpu_addr) const;