mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 16:45:47 +00:00
nvdrv: Make the GPU memory manager available to nvhost-gpu.
This commit is contained in:
parent
e3180c8275
commit
f7ac88184d
3 changed files with 16 additions and 6 deletions
|
@ -11,6 +11,7 @@
|
|||
#include "core/hle/service/nvdrv/devices/nvhost_gpu.h"
|
||||
#include "core/hle/service/nvdrv/devices/nvmap.h"
|
||||
#include "core/hle/service/nvdrv/interface.h"
|
||||
#include "core/hle/service/nvdrv/memory_manager.h"
|
||||
#include "core/hle/service/nvdrv/nvdrv.h"
|
||||
#include "core/hle/service/nvdrv/nvmemp.h"
|
||||
|
||||
|
@ -31,12 +32,14 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
|
|||
|
||||
Module::Module() {
|
||||
auto nvmap_dev = std::make_shared<Devices::nvmap>();
|
||||
devices["/dev/nvhost-as-gpu"] = std::make_shared<Devices::nvhost_as_gpu>(nvmap_dev);
|
||||
auto memory_manager = std::make_shared<MemoryManager>();
|
||||
devices["/dev/nvhost-as-gpu"] =
|
||||
std::make_shared<Devices::nvhost_as_gpu>(nvmap_dev, memory_manager);
|
||||
devices["/dev/nvhost-gpu"] = std::make_shared<Devices::nvhost_gpu>(nvmap_dev, memory_manager);
|
||||
devices["/dev/nvhost-ctrl-gpu"] = std::make_shared<Devices::nvhost_ctrl_gpu>();
|
||||
devices["/dev/nvmap"] = nvmap_dev;
|
||||
devices["/dev/nvdisp_disp0"] = std::make_shared<Devices::nvdisp_disp0>(nvmap_dev);
|
||||
devices["/dev/nvhost-ctrl"] = std::make_shared<Devices::nvhost_ctrl>();
|
||||
devices["/dev/nvhost-gpu"] = std::make_shared<Devices::nvhost_gpu>();
|
||||
}
|
||||
|
||||
u32 Module::Open(std::string device_name) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue