Add sceKernelGetDirectMemoryType and update sceKernelReserveVirtualRange to search for free region when virtual_addr==0

This commit is contained in:
Borchev 2024-07-21 11:29:24 -07:00
parent 36d528743a
commit f556f85279
5 changed files with 52 additions and 2 deletions

View file

@ -160,6 +160,9 @@ public:
std::pair<vk::Buffer, size_t> GetVulkanBuffer(VAddr addr);
int GetDirectMemoryType(PAddr addr, int* directMemoryTypeOut, void** directMemoryStartOut,
void** directMemoryEndOut);
private:
VMAHandle FindVMA(VAddr target) {
return std::prev(vma_map.upper_bound(target));