mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-11 05:57:56 -05:00
NV: Expose the nvdisp_disp0 device and a weak reference to the nvdrv:a service.
NVFlinger will call into the nvdisp_disp0 device to perform screen flips, bypassing the ioctl interface. We now have the address of the framebuffer to draw, we just need to actually put it on the screen.
This commit is contained in:
@ -8,9 +8,13 @@
|
||||
namespace Service {
|
||||
namespace NVDRV {
|
||||
|
||||
std::weak_ptr<NVDRV_A> nvdrv_a;
|
||||
|
||||
void InstallInterfaces(SM::ServiceManager& service_manager) {
|
||||
std::make_shared<NVDRV_A>()->InstallAsService(service_manager);
|
||||
auto nvdrv = std::make_shared<NVDRV_A>();
|
||||
nvdrv->InstallAsService(service_manager);
|
||||
nvdrv_a = nvdrv;
|
||||
}
|
||||
|
||||
} // namespace nvdrv
|
||||
} // namespace NVDRV
|
||||
} // namespace Service
|
||||
|
Reference in New Issue
Block a user