aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/nvdrv
AgeCommit message (Collapse)Author
2018-08-13Registered missing channel devicesDavid Marcec
2018-08-13Added missing channel devicesDavid Marcec
2018-08-08Merge pull request #978 from bunnei/fixioctlbunnei
nvhost_gpu: Don't over copy IoctlSubmitGpfifo.
2018-08-08nvhost_gpu: Don't over copy IoctlSubmitGpfifo.bunnei
2018-08-07nvdrv: Get rid of global std::weak_ptrLioncash
Rather than use global state, we can simply pass the instance into the NVFlinger instance directly.
2018-08-07nvdrv: Make Ioctl()'s definition match its prototypeLioncash
The only reason this wasn't a compilation error is because we use little-endian systems.
2018-08-07nvdrv: Get rid of indirect inclusionsLioncash
2018-08-04renderer_base: Make Rasterizer() return the rasterizer by referenceLioncash
All calling code assumes that the rasterizer will be in a valid state, which is a totally fine assumption. The only way the rasterizer wouldn't be is if initialization is done incorrectly or fails, which is checked against in System::Init().
2018-08-04video_core: Eliminate the g_renderer global variableLioncash
We move the initialization of the renderer to the core class, while keeping the creation of it and any other specifics in video_core. This way we can ensure that the renderer is initialized and doesn't give unfettered access to the renderer. This also makes dependencies on types more explicit. For example, the GPU class doesn't need to depend on the existence of a renderer, it only needs to care about whether or not it has a rasterizer, but since it was accessing the global variable, it was also making the renderer a part of its dependency chain. By adjusting the interface, we can get rid of this dependency.
2018-07-30nvhost_gpu: Added checks to ensure we don't read past the end of the entries ↵Subv
when handling a GPU command list.
2018-07-30nvhost_ctrl_gpu: Only read the input parameters if they are actually there.Subv
Passing nullptr to memcpy is undefined behavior.
2018-07-25service/nvdrv: Take std::string in Open() by const referenceLioncash
Avoids copies from being made, since the string is only ever used for lookup, the data is never transfered anywhere. Ideally, we'd use a std::string_view here, but devices is a std::unordered_map, not a std::map, so we can't use heterogenous lookup here.
2018-07-25service/nvdrv: Use std::move where applicableLioncash
Avoids unnecessary reference count increments and decrements. In one case, we don't need to make a shared_ptr copy at all, just to call a member function.
2018-07-21GPU: Implement the NVGPU_IOCTL_CHANNEL_KICKOFF_PB ioctl2 command.Subv
This behaves quite similarly to the SubmitGPFIFO command. Referenced from Ryujinx. Many thanks to @gdkchan for investigating this!
2018-07-19Merge pull request #717 from lioncash/explicitbunnei
hle/service: Make constructors explicit where applicable
2018-07-19hle/service: Make constructors explicit where applicableLioncash
Prevents implicit construction and makes these lingering non-explicit constructors consistent with the rest of the other classes in services.
2018-07-19nvdrv: Take std::string by const reference in GetDevice()Lioncash
This is only ever used as a lookup into the device map, so we don't need to take the std::string instance by value here.
2018-07-17vi: Partially implement buffer crop parameters.bunnei
2018-07-10NvOsGetConfigU32 production implDavid Marcec
Settings are only used when RMOS_SET_PRODUCTION_MODE is set to 0. If production mode is set, the error code 0x30006 is returned instead
2018-07-08nvhost_ctrl: Fix NvOsGetConfigU32 for Snipper Clips.bunnei
2018-07-02Update clang formatJames Rowe
2018-07-02Rename logging macro back to LOG_*James Rowe
2018-07-01GPU: Remove a surface from the cache when its backing memory is being ↵Subv
unmapped from the GPU's MMU.
2018-07-01nvmap: Return the address of the nvmap object when Freeing it for the last time.Subv
This behavior is confirmed by reverse engineering.
2018-06-20Build: Fixed some MSVC warnings in various parts of the code.Subv
2018-06-06nvdrv/devices/nvidia_ctrl_gpu : add IoctlCommands with their params (#524)greggameplayer
* add IoctlCommands with their params in nvidia_ctrl_gpu.h * add function related to the changes done previously * fix clang-format * delete trailing whitespace * correct mistake
2018-06-04Nvdrv/devices/nvhost_gpu : Add some IoctlCommands with their params (#511)greggameplayer
* Add some IoctlCommand with their params to nvhost_gpu * fix clang-format * delete trailing whitespace * fix some clang-format * delete one other trailing whitespace * last clang-format fix
2018-06-03Merge pull request #484 from mailwl/nvhost-nvdecbunnei
Services/nvdrv: add '/dev/nvhost-nvdec' device
2018-05-30Services/nvdrv: add '/dev/nvhost-nvdec' devicemailwl
2018-05-29nvhost_ctrl: Stub out IocCtrlEventRegister.bunnei
2018-05-29nvhost_ctrl: Stub out IocCtrlEventWaitAsyncCommand.bunnei
2018-05-26NvOsGetConfigU32 should return null instead of 0 for default outputDavid Marcec
2018-05-25Merge pull request #466 from mailwl/nv-timeoutbunnei
Stub NVGPU_IOCTL_CHANNEL_SET_TIMEOUT
2018-05-24Stubbed NVGPU_GPU_IOCTL_ZBC_SET_TABLE (#463)David
We have no clue on what this actually does yet so stubbing it since it's just input only should be fine for now
2018-05-24Stub NVGPU_IOCTL_CHANNEL_SET_TIMEOUTmailwl
Used in Nintendo Labo ToyCon 1&2
2018-05-23change some functionsgreggameplayer
according to the changes made previously
2018-05-23correct placement and add size checkgreggameplayer
2018-05-23Add ioctl commands with their params and size checkgreggameplayer
2018-05-22Implemented NVHOST_IOCTL_CHANNEL_GET_WAITBASE (#440)David
* Implemented NVHOST_IOCTL_CHANNEL_GET_WAITBASE struct + 4 seems to be hard coded at 0 and struct + 0 seems to be ignored? * IocGetWaitbase -> IocChannelGetWaitbaseCommand * Added super late fixes
2018-05-20GPU: Implemented the nvmap Free ioctl.Subv
It releases a reference to an nvmap object
2018-05-20GPU: Implemented nvhost-as-gpu's UnmapBuffer ioctl.Subv
It removes a mapping previously created with the MapBufferEx ioctl.
2018-05-10More accurate GetTPCMasks implDavid Marcec
2018-05-02general: Make formatting of logged hex values more straightforwardLioncash
This makes the formatting expectations more obvious (e.g. any zero padding specified is padding that's entirely dedicated to the value being printed, not any pretty-printing that also gets tacked on).
2018-05-01GPU: Don't write to invalid memory locations when handling ioctls that don't ↵Subv
have an output.
2018-04-27general: Convert assertion macros over to be fmt-compatibleLioncash
2018-04-26Merge branch 'master' of https://github.com/yuzu-emu/yuzu into service-implDavid Marcec
2018-04-24nvdrv: Move logging macros over to new fmt-compatible onesLioncash
2018-04-23Merge pull request #384 from Subv/nvhost-remapbunnei
Nvdrv/nvhost-as-gpu: Implemented the ioctl REMAP command.
2018-04-23NvDrv/nvhost-as-gpu: Ensure that the object passed to MapBufferEx has ↵Subv
already been allocated. Also added a consistency check and a comment for the case when the object id is different than its handle. The real nvservices doesn't make a distinction between ids and handles, each object gets an unique handle which doubles as its id.
2018-04-23Nvdrv/nvhost-as-gpu: Implemented the ioctl REMAP command.Subv
It takes a previously-reserved (AllocateSpace) GPU memory address and maps it to the address of the nvmap object passed to Remap.