2018-08-16 23:47:36 +00:00
|
|
|
namespace Ryujinx.HLE.HOS.Services.Nv
|
NvServices refactoring (#120)
* Initial implementation of NvMap/NvHostCtrl
* More work on NvHostCtrl
* Refactoring of nvservices, move GPU Vmm, make Vmm per-process, refactor most gpu devices, move Gpu to Core, fix CbBind
* Implement GetGpuTime, support CancelSynchronization, fix issue on InsertWaitingMutex, proper double buffering support (again, not working properly for commercial games, only hb)
* Try to fix perf regression reading/writing textures, moved syncpts and events to a UserCtx class, delete global state when the process exits, other minor tweaks
* Remove now unused code, add comment about probably wrong result codes
2018-05-07 18:53:23 +00:00
|
|
|
{
|
2019-11-02 22:47:56 +00:00
|
|
|
enum NvResult : uint
|
NvServices refactoring (#120)
* Initial implementation of NvMap/NvHostCtrl
* More work on NvHostCtrl
* Refactoring of nvservices, move GPU Vmm, make Vmm per-process, refactor most gpu devices, move Gpu to Core, fix CbBind
* Implement GetGpuTime, support CancelSynchronization, fix issue on InsertWaitingMutex, proper double buffering support (again, not working properly for commercial games, only hb)
* Try to fix perf regression reading/writing textures, moved syncpts and events to a UserCtx class, delete global state when the process exits, other minor tweaks
* Remove now unused code, add comment about probably wrong result codes
2018-05-07 18:53:23 +00:00
|
|
|
{
|
2019-11-02 22:47:56 +00:00
|
|
|
Success = 0,
|
|
|
|
NotImplemented = 1,
|
|
|
|
NotSupported = 2,
|
|
|
|
NotInitialized = 3,
|
|
|
|
InvalidParameter = 4,
|
|
|
|
Timeout = 5,
|
|
|
|
InsufficientMemory = 6,
|
|
|
|
ReadOnlyAttribute = 7,
|
|
|
|
InvalidState = 8,
|
|
|
|
InvalidAddress = 9,
|
|
|
|
InvalidSize = 10,
|
|
|
|
InvalidValue = 11,
|
|
|
|
AlreadyAllocated = 13,
|
|
|
|
Busy = 14,
|
|
|
|
ResourceError = 15,
|
|
|
|
CountMismatch = 16,
|
|
|
|
SharedMemoryTooSmall = 0x1000,
|
|
|
|
FileOperationFailed = 0x30003,
|
|
|
|
DirectoryOperationFailed = 0x30004,
|
|
|
|
NotAvailableInProduction = 0x30006,
|
|
|
|
IoctlFailed = 0x3000F,
|
|
|
|
AccessDenied = 0x30010,
|
|
|
|
FileNotFound = 0x30013,
|
|
|
|
ModuleNotPresent = 0xA000E,
|
NvServices refactoring (#120)
* Initial implementation of NvMap/NvHostCtrl
* More work on NvHostCtrl
* Refactoring of nvservices, move GPU Vmm, make Vmm per-process, refactor most gpu devices, move Gpu to Core, fix CbBind
* Implement GetGpuTime, support CancelSynchronization, fix issue on InsertWaitingMutex, proper double buffering support (again, not working properly for commercial games, only hb)
* Try to fix perf regression reading/writing textures, moved syncpts and events to a UserCtx class, delete global state when the process exits, other minor tweaks
* Remove now unused code, add comment about probably wrong result codes
2018-05-07 18:53:23 +00:00
|
|
|
}
|
2019-07-14 19:04:38 +00:00
|
|
|
}
|