Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Revert "hle_ipc: Use std::span to avoid heap allocations/copies when calling ReadBuffer" | liamwhite | 2023-02-02 | 21 | -194/+196 |
| | |||||
* | nvdrv: Use std::span for inputs | ameerj | 2022-12-29 | 21 | -196/+194 |
| | | | | Allows the use of HLERequestContext::ReadBufferSpan | ||||
* | Add break for default cases | Kyle Kienapfel | 2022-11-14 | 2 | -6/+4 |
| | | | | | | | | | | | Visual Studio has an option to search all files in a solution, so I did a search in there for "default:" looking for any missing break statements. I've left out default statements that return something, and that throw something, even if via ThrowInvalidType. UNREACHABLE leads towards throw R_THROW macro leads towards a return | ||||
* | core: hle: kernel: k_memory_manager: Refresh. | bunnei | 2022-11-04 | 1 | -2/+4 |
| | |||||
* | nvnflinger: release queued handles immediately on disconnection | Liam | 2022-10-27 | 1 | -4/+6 |
| | |||||
* | Merge pull request #9071 from bunnei/mp-mm | liamwhite | 2022-10-19 | 1 | -1/+2 |
|\ | | | | | Kernel Multiprocess (Part 1) - Persist memory & core timing | ||||
| * | core: hle: kernel: k_page_table: Impl. LockForUn/MapDeviceAddressSpace, cleanup. | bunnei | 2022-10-19 | 1 | -1/+2 |
| | | |||||
* | | Merge pull request #9084 from vonchenplus/dma_copy | Fernando S | 2022-10-19 | 1 | -4/+8 |
|\ \ | |/ |/| | video_core: implement 1D copies based on VMM 'kind' | ||||
| * | video_core: Implement memory manager page kind | FengChen | 2022-10-17 | 1 | -4/+8 |
| | | |||||
* | | kernel: remove KWritableEvent | Liam | 2022-10-13 | 1 | -3/+2 |
|/ | |||||
* | General: address feedback | Fernando Sahmkow | 2022-10-06 | 10 | -50/+39 |
| | |||||
* | general: rework usages of UNREACHABLE macro | Liam | 2022-10-06 | 1 | -5/+5 |
| | |||||
* | nvdisp: End system frame after requesting to swap buffers | Morph | 2022-10-06 | 1 | -1/+1 |
| | | | | Fixes frametime reporting | ||||
* | address_space: Address feedback | Morph | 2022-10-06 | 1 | -4/+4 |
| | |||||
* | general: Format licenses as per SPDX guidelines | Morph | 2022-10-06 | 4 | -16/+12 |
| | |||||
* | NvHostChannels: improve hack for supporting multiple channels. | Fernando Sahmkow | 2022-10-06 | 2 | -2/+11 |
| | |||||
* | Address Feedback from bylaws. | Fernando Sahmkow | 2022-10-06 | 1 | -1/+1 |
| | |||||
* | Core: Fix get nvmap object random crash | VonChenPlus | 2022-10-06 | 2 | -17/+0 |
| | |||||
* | NvDec: Fix regressions. | Fernando Sahmkow | 2022-10-06 | 3 | -4/+16 |
| | |||||
* | General: Fix compilation for GCC | Liam White | 2022-10-06 | 5 | -9/+12 |
| | |||||
* | NVDRV: Further improvements. | Fernando Sahmkow | 2022-10-06 | 7 | -59/+62 |
| | |||||
* | VideoCore: Refactor fencing system. | Fernando Sahmkow | 2022-10-06 | 2 | -3/+5 |
| | |||||
* | MemoryManager: initial multi paging system implementation. | Fernando Sahmkow | 2022-10-06 | 3 | -20/+36 |
| | |||||
* | NVDRV: Further refactors and eliminate old code. | Fernando Sahmkow | 2022-10-06 | 3 | -27/+8 |
| | |||||
* | NVDRV: Refactor Host1x | Fernando Sahmkow | 2022-10-06 | 1 | -26/+11 |
| | |||||
* | VideoCore: Refactor syncing. | Fernando Sahmkow | 2022-10-06 | 4 | -10/+25 |
| | |||||
* | Texture cache: Fix the remaining issues with memory mnagement and unmapping. | Fernando Sahmkow | 2022-10-06 | 1 | -0/+3 |
| | |||||
* | VideoCore: Extra Fixes. | Fernando Sahmkow | 2022-10-06 | 1 | -1/+3 |
| | |||||
* | NVDRV: Remake ASGPU | Fernando Sahmkow | 2022-10-06 | 2 | -235/+388 |
| | |||||
* | NVDRV: Update copyright notices. | Fernando Sahmkow | 2022-10-06 | 4 | -7/+13 |
| | |||||
* | NvHostCtrl: Fix merge of nvflinger. | Fernando Sahmkow | 2022-10-06 | 1 | -1/+2 |
| | |||||
* | NVHOST_CTRl: Implement missing method and fix some stuffs. | Fernando Sahmkow | 2022-10-06 | 2 | -6/+29 |
| | |||||
* | VideoCore: implement channels on gpu caches. | Fernando Sahmkow | 2022-10-06 | 5 | -29/+64 |
| | |||||
* | NVASGPU: Fix Remap. | Fernando Sahmkow | 2022-10-06 | 1 | -0/+8 |
| | |||||
* | NVDRV: Fix clearing when destroying. | Fernando Sahmkow | 2022-10-06 | 1 | -6/+7 |
| | |||||
* | NVMAP: Fix the Free return parameters. | Fernando Sahmkow | 2022-10-06 | 1 | -14/+14 |
| | |||||
* | NVDRV: Fix Open/Close and make sure each device is correctly created. | Fernando Sahmkow | 2022-10-06 | 10 | -52/+200 |
| | |||||
* | NVDRV: Implement new NvMap | Fernando Sahmkow | 2022-10-06 | 15 | -210/+228 |
| | |||||
* | NVDRV: Refactor and add new NvMap. | Fernando Sahmkow | 2022-10-06 | 10 | -22/+44 |
| | |||||
* | NVDRV: Cleanup. | Fernando Sahmkow | 2022-10-06 | 1 | -1/+3 |
| | |||||
* | NVDRV: Implement QueryEvent. | Fernando Sahmkow | 2022-10-06 | 7 | -6/+100 |
| | |||||
* | NvHost: Remake Ctrl Implementation. | Fernando Sahmkow | 2022-10-06 | 2 | -84/+141 |
| | |||||
* | NvHost: Try a different approach to blocking. | Fernando Sahmkow | 2022-10-06 | 1 | -9/+6 |
| | |||||
* | NvHost: Fix some regressions and correct signaling on timeout. | Fernando Sahmkow | 2022-10-06 | 1 | -25/+19 |
| | |||||
* | Merge pull request #8842 from Kelebek1/AudOut | bunnei | 2022-09-10 | 1 | -1/+6 |
|\ | | | | | [audio_core] Rework audio output | ||||
| * | Don't stall with nvdec | Kelebek1 | 2022-09-04 | 1 | -1/+6 |
| | | |||||
* | | Demote services from warning/info to debug to reduce log spam: | Kelebek1 | 2022-09-01 | 1 | -2/+2 |
|/ | | | | | | | | | | | GetCurrentFocusState SetClockSpeed EnableSixAxisSensorUnalteredPassthrough IsSixAxisSensorUnalteredPassthroughEnabled Get, GetOld SetAndWait, SetAndWaitOld IocParam IocFree | ||||
* | kernel: implement KProcess suspension | Liam | 2022-06-14 | 1 | -2/+2 |
| | |||||
* | general: Convert source file copyright comments over to SPDX | Morph | 2022-04-23 | 21 | -63/+42 |
| | | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later. | ||||
* | nvhost_ctrl: Only mark EventState::Busy as BadParameter | ameerj | 2022-03-29 | 1 | -1/+1 |
| | | | | Fixes an svc break in Kirby and the Forgotten Land with async GPU enabled. | ||||
* | hle: nvflinger: Move BufferTransformFlags to its own header. | bunnei | 2022-03-25 | 1 | -1/+1 |
| | |||||
* | hle: nvdrv: Rename Fence to NvFence to avoid naming conflicts. | bunnei | 2022-03-25 | 2 | -8/+9 |
| | |||||
* | hle: nvflinger: Move PixelFormat to its own header. | bunnei | 2022-03-25 | 2 | -8/+7 |
| | |||||
* | common: Reduce unused includes | ameerj | 2022-03-19 | 2 | -0/+3 |
| | |||||
* | Address feedback | Feng Chen | 2021-12-04 | 4 | -13/+22 |
| | |||||
* | Support multiple videos playing | Feng Chen | 2021-12-02 | 4 | -9/+21 |
| | |||||
* | core: Remove unused includes | ameerj | 2021-11-04 | 8 | -11/+0 |
| | |||||
* | Fixup channel submit IOCTL syncpoint parameters | Billy Laws | 2021-10-24 | 2 | -21/+9 |
| | | | | | | The current arguments worked by happenstance as games only ever submit one syncpoint and request one fence back, if a game were to do something other than this then the arguments would've been parsed entirely wrong. | ||||
* | NvHost/Core: Address Feedback. | Fernando Sahmkow | 2021-10-16 | 1 | -3/+5 |
| | |||||
* | Suspend temporally | FernandoS27 | 2021-10-16 | 1 | -1/+2 |
| | |||||
* | NVHost_Ctrl: Force wait if the gpu falls behind too long. | FernandoS27 | 2021-10-16 | 1 | -0/+11 |
| | |||||
* | nvhost_ctrl: Refactor usage of gpu.LockSync() | ameerj | 2021-10-03 | 1 | -15/+15 |
| | | | | This seems to only be used to protect a later gpu function call. So we can move the lock into that call instead. | ||||
* | gpu: Migrate implementation to the cpp file | ameerj | 2021-10-03 | 2 | -5/+13 |
| | |||||
* | style: Remove extra space preceding the :: operator | Morph | 2021-09-29 | 1 | -1/+1 |
| | |||||
* | nvflinger: Use external surface format for framebuffer creation | ameerj | 2021-09-07 | 1 | -5/+4 |
| | | | | | | The format member the IGBPBuffer may not always specify the correct desired format. Using the external format member ensures a valid format is provided when creating the framebuffer. Fixes homebrew using the wrong framebuffer format. | ||||
* | nvhost_nvdec_common: Remove BufferMap | ameerj | 2021-08-07 | 2 | -76/+0 |
| | | | | This was mainly used to keep track of mapped buffers for later unmapping. Since unmap is no longer implemented, this no longer seves a valuable purpose. | ||||
* | nvhost_nvdec_common: Stub UnmapBuffer Ioctl | ameerj | 2021-08-07 | 1 | -23/+4 |
| | | | | Skip unmapping nvdec buffers to avoid breaking the continuity of the VP9 reference frame addresses, and the risk of invalidating data before the async GPU thread is done with it. | ||||
* | general: Rename "Frame Limit" references to "Speed Limit" | ameerj | 2021-07-24 | 1 | -1/+1 |
| | | | | | This setting is best referred to as a speed limit, as it involves the limits of all timing based aspects of the emulator, not only framerate. This allows us to differentiate it from the fps unlocker setting. | ||||
* | nvhost_nvdec_common: Read Submit ioctl data from object addr | ameerj | 2021-07-15 | 1 | -8/+2 |
| | | | | Fixes Mario Golf intro video decoding. | ||||
* | nvhost_nvdec_common: Fix {Slice/Write}Vectors return | ameerj | 2021-07-15 | 1 | -37/+38 |
| | | | | Plus some minor cleanup for consistency. | ||||
* | Merge pull request #6317 from ameerj/fps-fix | bunnei | 2021-05-19 | 1 | -1/+0 |
|\ | | | | | perf_stats: Rework FPS counter to be more accurate | ||||
| * | perf_stats: Rework FPS counter to be more accurate | ameerj | 2021-05-16 | 1 | -1/+0 |
| | | | | | | | | | | | | | | | | | | The FPS counter was based on metrics in the nvdisp swapbuffers call. This metric would be accurate if the gpu thread/renderer were synchronous with the nvdisp service, but that's no longer the case. This commit moves the frame counting responsibility onto the concrete renderers after their frame draw calls. Resulting in more meaningful metrics. The displayed FPS is now made up of the average framerate between the previous and most recent update, in order to avoid distracting FPS counter updates when framerate is oscillating between close values. The status bar update frequency was also changed from 2 seconds to 500ms. | ||||
* | | core: Make variable shadowing a compile-time error | Lioncash | 2021-05-16 | 3 | -13/+13 |
|/ | | | | | | Now that we have most of core free of shadowing, we can enable the warning as an error to catch anything that may be remaining and also eliminate this class of logic bug entirely. | ||||
* | hle: kernel: Migrate KReadableEvent and KWritableEvent to KAutoObject. | bunnei | 2021-05-06 | 1 | -3/+3 |
| | |||||
* | hle: kernel: Migrate KEvent to KAutoObject. | bunnei | 2021-05-06 | 1 | -1/+1 |
| | |||||
* | service: Resolve cases of member field shadowing | Lioncash | 2021-05-04 | 20 | -39/+40 |
| | | | | | Now all that remains is for kernel code to be 'shadow-free' and then -Wshadow can be turned into an error. | ||||
* | nvhost_vic: Fix device closure | ameerj | 2021-04-25 | 2 | -10/+8 |
| | | | | | | Implements the OnClose method of the nvhost_vic device, and removes the remnants of an older implementation. Also cleans up some of the surrounding code. | ||||
* | Merge pull request #6125 from ogniK5377/nvdec-close-dev | bunnei | 2021-04-17 | 1 | -6/+4 |
|\ | | | | | nvdrv: Cleanup CDMA Processor on device closure | ||||
| * | nvdrv: Cleanup CDMA Processor on device closure | Chloe Marcec | 2021-03-30 | 1 | -6/+4 |
| | | | | | | | | Brings us a step closer to unifying all channels to share a common interface. | ||||
* | | Merge pull request #6145 from lat9nq/nvhost_empty_memcpy | bunnei | 2021-04-08 | 1 | -6/+11 |
|\ \ | | | | | | | nvhost_nvdec_common: Avoid memcpy with null pointers | ||||
| * | | nvhost_nvdec_common: Avoid memcpy with null pointers | lat9nq | 2021-04-05 | 1 | -6/+11 |
| |/ | | | | | | | | | | | | | Avoid sending null pointer to memcpy as reported by Undefined Behavious Sanitizer. Co-authored-by: LC <mathew1800@gmail.com> | ||||
* / | nvhost_ctrl_gpu: Avoid sending null pointer to memcpy | lat9nq | 2021-04-05 | 1 | -1/+7 |
|/ | | | | | | Undefined Behaviour Sanitizer reports a null pointer is being sent to memcpy, thought it's "guaranteed to never be null". Guard it with an if statement, and log when the action has been averted. | ||||
* | nvdrv: Pass device fd and handle device create methods for device opening and closing | Chloe Marcec | 2021-03-25 | 19 | -75/+154 |
| | | | | We pass the fd to the ioctl as well as alert the device when it's opened or closed to allow for fd unique actions to take place | ||||
* | nvdrv: Change InitializeEx to AllocAsEx | Chloe Marcec | 2021-03-22 | 2 | -27/+49 |
| | | | | Wee also report the correct "big page size" now in GetVARegions & fix up the struct for IoctlAllocAsEx | ||||
* | Address PR feedback | ameerj | 2021-02-13 | 2 | -4/+2 |
| | | | | Co-Authored-By: LC <712067+lioncash@users.noreply.github.com> | ||||
* | nvdec cleanup | ameerj | 2021-02-13 | 1 | -1/+7 |
| | |||||
* | hle: kernel: Reimplement KReadableEvent and KWritableEvent. | bunnei | 2021-02-05 | 1 | -4/+4 |
| | |||||
* | hle: kernel: Rename WritableEvent to KWritableEvent. | bunnei | 2021-02-05 | 1 | -1/+1 |
| | |||||
* | hle: kernel: Rename ReadableEvent to KReadableEvent. | bunnei | 2021-02-05 | 1 | -1/+1 |
| | |||||
* | Simplify condition | Chloe Marcec | 2021-01-23 | 1 | -2/+1 |
| | |||||
* | nvdrv: Unregister already registered events | Chloe Marcec | 2021-01-23 | 1 | -1/+8 |
| | |||||
* | fix for nvdec disabled, cleanup host1x | ameerj | 2021-01-07 | 1 | -11/+14 |
| | |||||
* | nvdec syncpt incorporation | ameerj | 2021-01-07 | 6 | -18/+39 |
| | | | | laying the groundwork for async gpu, although this does not fully implement async nvdec operations | ||||
* | hle: service: nvdrv: Revert #4981 to remove usage of SleepClientThread. | bunnei | 2020-12-29 | 19 | -106/+66 |
| | | | | - Note, this always processes the ioctl right away, which fixes BotW 1.0.0 issues. | ||||
* | nvdrv: Remove useless re-declaration of pure virtual methods that were already declared in the superclass | comex | 2020-12-07 | 1 | -33/+0 |
| | |||||
* | nvservices: Reintroducee IoctlCtrl | Chloe Marcec | 2020-11-24 | 20 | -72/+110 |
| | | | | Fixes regression caused by #4907 which caused games like Breath of the Wild 1.0.0 not to boot. | ||||
* | Addressed issues | Chloe Marcec | 2020-11-10 | 6 | -1/+71 |
| | |||||
* | core: Make nvservices more standardized | Chloe Marcec | 2020-11-10 | 21 | -784/+867 |
| | |||||
* | video_core: dma_pusher: Remove integrity check on command lists. | bunnei | 2020-11-07 | 1 | -1/+0 |
| | | | | - This seems to cause softlocks in Breath of the Wild. | ||||
* | fixup! hle service: nvdrv: nvhost_gpu: Update to use SyncpointManager and other improvements. | bunnei | 2020-11-01 | 2 | -3/+11 |
| | |||||
* | hle service: nvdrv: nvhost_gpu: Update to use SyncpointManager and other improvements. | bunnei | 2020-11-01 | 2 | -45/+104 |
| | | | | | - Refactor so that SubmitGPFIFO and KickoffPB use shared functionality. - Implement add_wait and add_increment flags. | ||||
* | hle service: nvdrv: nvhost_ctrl: Update to use SyncpointManager. | bunnei | 2020-11-01 | 2 | -8/+29 |
| | |||||
* | Rename to align with switchbrew and remove gpu function (#4714) | Levi Behunin | 2020-11-01 | 2 | -16/+10 |
| | | | | | * Rename to align with switchbrew * Rename to align with switchbrew and remove gpu function that checks if clearing should be done. | ||||
* | video_core: unbreak -Werror in NVDEC with Clang | Jan Beich | 2020-10-30 | 1 | -1/+1 |
| | | | | | | src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp:41:15: error: unused variable 'OutOfMemory' [-Werror,-Wunused-const-variable] constexpr u32 OutOfMemory{static_cast<u32>(-12)}; ^ | ||||
* | video_core: NVDEC Implementation | ameerj | 2020-10-27 | 7 | -286/+466 |
| | | | | | | | | | | | | | | This commit aims to implement the NVDEC (Nvidia Decoder) functionality, with video frame decoding being handled by the FFmpeg library. The process begins with Ioctl commands being sent to the NVDEC and VIC (Video Image Composer) emulated devices. These allocate the necessary GPU buffers for the frame data, along with providing information on the incoming video data. A Submit command then signals the GPU to process and decode the frame data. To decode the frame, the respective codec's header must be manually composed from the information provided by NVDEC, then sent with the raw frame data to the ffmpeg library. Currently, H264 and VP9 are supported, with VP9 having some minor artifacting issues related mainly to the reference frame composition in its uncompressed header. Async GPU is not properly implemented at the moment. Co-Authored-By: David <25727384+ogniK5377@users.noreply.github.com> | ||||
* | Revert "core: Fix clang build" | bunnei | 2020-10-21 | 3 | -38/+30 |
| | |||||
* | Merge pull request #4796 from lioncash/clang | LC | 2020-10-21 | 3 | -30/+38 |
|\ | | | | | core: Fix clang build | ||||
| * | core: Fix clang build | Lioncash | 2020-10-18 | 3 | -30/+38 |
| | | | | | | | | | | | | | | Recent changes to the build system that made more warnings be flagged as errors caused building via clang to break. Fixes #4795 | ||||
* | | hle: service: nvdrv: Implement nvhost_as_gpu::FreeSpace. | bunnei | 2020-10-13 | 2 | -0/+25 |
|/ | | | | - This is used by Super Mario 3D All-Stars. | ||||
* | Merge pull request #1703 from DarkLordZach/nvdec-ioctl | bunnei | 2020-09-30 | 4 | -3/+256 |
|\ | | | | | nvdrv: Stub nvdec/vic ioctls to bypass nvdec movies | ||||
| * | service: nvhost_vic: Ignore Submit commands. | bunnei | 2020-06-05 | 2 | -1/+18 |
| | | |||||
| * | nvdrv: Stub nvdec/vic ioctls to bypass nvdec movies | Zach Hilman | 2020-06-05 | 4 | -3/+239 |
| | | |||||
* | | General: Make use of std::nullopt where applicable | Lioncash | 2020-09-22 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | Allows some implementations to avoid completely zeroing out the internal buffer of the optional, and instead only set the validity byte within the structure. This also makes it consistent how we return empty optionals. | ||||
* | | core: Resolve several -Wextra-semi warnings | Lioncash | 2020-08-14 | 1 | -1/+2 |
| | | | | | | | | | | We can amend one of the cascade macros to require semicolons in order to compile. In other cases, we can just remove the superfluous semicolons. | ||||
* | | Update src/core/hle/service/nvdrv/devices/nvmap.cpp | bunnei | 2020-07-28 | 1 | -1/+1 |
| | | | | | | Co-authored-by: LC <mathew1800@gmail.com> | ||||
* | | hle: nvdrv: Rewrite of GPU memory management. | bunnei | 2020-07-26 | 4 | -93/+227 |
| | | |||||
* | | FrameLimiting: Enable frame limiting for single core. | Fernando Sahmkow | 2020-06-27 | 1 | -0/+1 |
| | | |||||
* | | NVDRV: Remove frame limiting as Host Timing already takes care. | Fernando Sahmkow | 2020-06-27 | 1 | -1/+0 |
| | | |||||
* | | General: Recover Prometheus project from harddrive failure | Fernando Sahmkow | 2020-06-27 | 1 | -2/+1 |
| | | | | | | | | | | | | | | This commit: Implements CPU Interrupts, Replaces Cycle Timing for Host Timing, Reworks the Kernel's Scheduler, Introduce Idle State and Suspended State, Recreates the bootmanager, Initializes Multicore system. | ||||
* | | nvdrv: Fix GetTPCMasks for ioctl3 | David Marcec | 2020-06-10 | 2 | -21/+22 |
|/ | | | | Fixes animal crossing svcBreak on launch | ||||
* | nvdrv: Fix GetGpuTime stack corruption | David Marcec | 2020-05-01 | 1 | -2/+3 |
| | | | | IoctlGetGpuTime should be 16 bytes, not 8. | ||||
* | nvhost_gpu: implement ChannelSetTimeslice | namkazy | 2020-02-16 | 2 | -0/+20 |
| | |||||
* | NvServices: Correct Ioctl Remap. | Fernando Sahmkow | 2019-12-25 | 2 | -3/+5 |
| | | | | | This commit corrects a padding value in Ioctl Remap that was actually an offset to the mapping address. | ||||
* | core/memory: Migrate over Read{8, 16, 32, 64, Block} to the Memory class | Lioncash | 2019-11-27 | 1 | -2/+2 |
| | | | | | | | | | | | | | | With all of the trivial parts of the memory interface moved over, we can get right into moving over the bits that are used. Note that this does require the use of GetInstance from the global system instance to be used within hle_ipc.cpp and the gdbstub. This is fine for the time being, as they both already rely on the global system instance in other functions. These will be removed in a change directed at both of these respectively. For now, it's sufficient, as it still accomplishes the goal of de-globalizing the memory code. | ||||
* | Merge pull request #2912 from FernandoS27/async-fixes | bunnei | 2019-10-16 | 2 | -22/+15 |
|\ | | | | | General fixes to Async GPU | ||||
| * | Nvdrv: Correct Event setup in Nvdrv | Fernando Sahmkow | 2019-10-05 | 1 | -22/+11 |
| | | | | | | | | Events are supposed to be cleared on quering. This fixes that issue. | ||||
| * | Nvdrv: Do framelimiting only in the CPU Thread | Fernando Sahmkow | 2019-10-05 | 1 | -0/+4 |
| | | |||||
* | | service/nvdrv: Silence -Wswitch | ReinUsesLisp | 2019-10-05 | 4 | -4/+10 |
|/ | |||||
* | Merge pull request #2873 from ogniK5377/new-ioctls | Fernando Sahmkow | 2019-09-22 | 19 | -48/+82 |
|\ | | | | | Initial implementation of Ioctl2 & Ioctl3 | ||||
| * | Initial implementation of Ioctl2 & Ioctl3 | David Marcec | 2019-09-19 | 19 | -48/+82 |
| | | | | | | | | Purpose of Ioctl2 and Ioctl3 is to prevent the passing of raw pointers through ioctls | ||||
* | | Mark KickOffPb & SubmitGPFIFO as trace | David Marcec | 2019-09-21 | 1 | -4/+4 |
|/ | | | | These functions are not stubbed and are called fairly often. Due to the nature of how often they're called, we should keep them marked as LOG_TRACE instead of LOG_DEBUG or LOG_WARNING | ||||
* | gpu: Change optional<reference_wrapper<T>> to T* for FramebufferConfig | ReinUsesLisp | 2019-08-21 | 1 | -1/+1 |
| | |||||
* | Nv_Host_Ctrl: Correct difference calculation | Fernando Sahmkow | 2019-07-05 | 1 | -5/+7 |
| | |||||
* | NVServices: Address Feedback | Fernando Sahmkow | 2019-07-05 | 3 | -10/+14 |
| | |||||
* | NVServices: Styling, define constructors as explicit and corrections | Fernando Sahmkow | 2019-07-05 | 13 | -21/+15 |
| | |||||
* | NVFlinger: Correct GCC compile error | Fernando Sahmkow | 2019-07-05 | 3 | -6/+5 |
| | |||||
* | NVServices: Make NVEvents Automatic according to documentation. | Fernando Sahmkow | 2019-07-05 | 1 | -2/+5 |
| | |||||
* | NVServices: Correct CtrlEventWaitSync to block the ipc until timeout. | Fernando Sahmkow | 2019-07-05 | 19 | -24/+56 |
| | |||||
* | GPU: Correct Interrupts to interrupt on syncpt/value instead of event, mirroring hardware | Fernando Sahmkow | 2019-07-05 | 1 | -4/+1 |
| | |||||
* | nv_services: Deglobalize NvServices | Fernando Sahmkow | 2019-07-05 | 19 | -31/+41 |
| | |||||
* | nv_host_ctrl: Make Sync GPU variant always return synced result. | Fernando Sahmkow | 2019-07-05 | 1 | -0/+5 |
| | |||||
* | nvhost_ctrl: Corrections to event handling | Fernando Sahmkow | 2019-07-05 | 1 | -7/+11 |
| | |||||
* | Gpu: Mark areas as protected. | Fernando Sahmkow | 2019-07-05 | 1 | -0/+6 |
| | |||||
* | nv_services: Stub CtrlEventSignal | Fernando Sahmkow | 2019-07-05 | 2 | -12/+34 |
| | |||||
* | nv_services: Implement NvQueryEvent, NvCtrlEventWait, NvEventRegister, NvEventUnregister | Fernando Sahmkow | 2019-07-05 | 2 | -11/+87 |
| | |||||
* | nv_services: Create GPU channels correctly | Fernando Sahmkow | 2019-07-05 | 2 | -2/+5 |
| | |||||
* | video_core: Implement GPU side Syncpoints | Fernando Sahmkow | 2019-07-05 | 2 | -7/+31 |
| | |||||
* | nv_services: Correct buffer queue fencing and GPFifo fencing | Fernando Sahmkow | 2019-07-05 | 2 | -15/+15 |
| | |||||
* | core/core_timing_util: Amend casing of cyclesTo* functions | Lioncash | 2019-06-05 | 1 | -1/+1 |
| | | | | | Makes the casing consistent with all of our general function naming conventions. | ||||
* | core/core_timing_util: Use std::chrono types for specifying time units | Lioncash | 2019-06-05 | 1 | -1/+2 |
| | | | | | Makes the interface more type-safe and consistent in terms of return values. | ||||
* | core: Add missing override specifiers where applicable | Lioncash | 2019-04-04 | 1 | -1/+1 |
| | | | | | | | | | Applies the override specifier where applicable. In the case of destructors that are defaulted in their definition, they can simply be removed. This also removes the unnecessary inclusions being done in audin_u and audrec_u, given their close proximity. | ||||
* | Merge pull request #2256 from bunnei/gpu-vmm | bunnei | 2019-03-22 | 1 | -12/+4 |
|\ | | | | | gpu: Rewrite MemoryManager based on the VMManager implementation. | ||||
| * | gpu: Rewrite virtual memory manager using PageTable. | bunnei | 2019-03-21 | 1 | -10/+2 |
| | | |||||
| * | gpu: Move GPUVAddr definition to common_types. | bunnei | 2019-03-21 | 1 | -2/+2 |
| | | |||||
* | | Merge pull request #2090 from FearlessTobi/port-4599 | bunnei | 2019-03-21 | 1 | -5/+5 |
|\ \ | |/ |/| | Port citra-emu/citra#4244 and citra-emu/citra#4599: Changes to BitField | ||||
| * | remove all occurance of specifying endianness inside BitField | Weiyi Wang | 2019-02-06 | 1 | -5/+5 |
| | | | | | | | | | | | | | | This commit it automatically generated by command in zsh: sed -i -- 's/BitField<\(.*\)_le>/BitField<\1>/g' **/*(D.) BitField is now aware to endianness and default to little endian. It expects a value representation type without storage specification for its template parameter. | ||||
* | | gpu: Use host address for caching instead of guest address. | bunnei | 2019-03-15 | 1 | -1/+2 |
| | | |||||
* | | gpu: Move command processing to another thread. | bunnei | 2019-03-07 | 1 | -1/+1 |
| | | |||||
* | | gpu: Refactor command and swap buffers interface for asynch. | bunnei | 2019-03-07 | 2 | -13/+3 |
| | | |||||
* | | common/math_util: Move contents into the Common namespace | Lioncash | 2019-02-27 | 2 | -2/+2 |
| | | | | | | | | | | These types are within the common library, so they should be within the Common namespace. | ||||
* | | core_timing: Convert core timing into a class | Lioncash | 2019-02-16 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | | | | | | | Gets rid of the largest set of mutable global state within the core. This also paves a way for eliminating usages of GetInstance() on the System class as a follow-up. Note that no behavioral changes have been made, and this simply extracts the functionality into a class. This also has the benefit of making dependencies on the core timing functionality explicit within the relevant interfaces. | ||||
* | | core_timing: Rename CoreTiming namespace to Core::Timing | Lioncash | 2019-02-12 | 1 | -1/+1 |
| | | | | | | | | | | | | Places all of the timing-related functionality under the existing Core namespace to keep things consistent, rather than having the timing utilities sitting in its own completely separate namespace. | ||||
* | | nvdisp_disp0: change drawing message log level from Warning to Trace | Tobias | 2019-02-08 | 1 | -3/+3 |
|/ | | | | | This is a leftover from the early yuzu days. We shouldn't log every time when we are drawing by default, so let's change the log level to Trace. | ||||
* | nvhost_gpu: Skip empty GPU command lists. | bunnei | 2018-12-15 | 1 | -0/+4 |
| | |||||
* | Merge pull request #1801 from ogniK5377/log-before-execute | bunnei | 2018-11-29 | 7 | -0/+38 |
|\ | | | | | Changed logging to be "Log before execution", Added more error logging, all services/svc should now log on some level | ||||
| * | Improved error messages in AM, HwOpus and NvMap | David Marcec | 2018-11-26 | 1 | -12/+14 |
| | | |||||
| * | Changed logging to be "Log before execution", Added more error logging, all services should now log on some level | David Marcec | 2018-11-26 | 7 | -0/+36 |
| | | |||||
* | | dma_pushbuffer: Optimize to avoid loop and copy on Push. | bunnei | 2018-11-28 | 1 | -8/+6 |
| | | |||||
* | | gpu: Rewrite GPU command list processing with DmaPusher class. | bunnei | 2018-11-27 | 1 | -3/+10 |
|/ | | | | - More accurate impl., fixes Undertale (among other games). | ||||
* | nvhost_ctrl_gpu: Implement IoctlGetGpuTime. | bunnei | 2018-11-21 | 2 | -0/+19 |
| | | | | - Used by Undertale. | ||||
* | Merge pull request #1478 from ogniK5377/remap-invalidhandle-remap | bunnei | 2018-10-12 | 1 | -3/+10 |
|\ | | | | | Passing an invalid nmap handle to Remap should throw an error | ||||
| * | Returned an error before processing other remaps | David Marcec | 2018-10-12 | 1 | -6/+2 |
| | | |||||
| * | Passing an invalid nmap handle to Remap should throw an error | David Marcec | 2018-10-11 | 1 | -3/+14 |
| | | | | | | | | Added error for invalid nmap handles | ||||
* | | Merge pull request #1479 from ogniK5377/nmap-revamped | bunnei | 2018-10-12 | 1 | -12/+60 |
|\ \ | | | | | | | Added error codes for nvmap | ||||
| * | | Made the minimum alignment more clear | David Marcec | 2018-10-12 | 1 | -2/+3 |
| | | | |||||
| * | | Added error codes for nvmap | David Marcec | 2018-10-11 | 1 | -12/+59 |
| |/ | |||||
* / | nvhost_as_gpu: Flush CPU VAddr on UnmapBuffer. | bunnei | 2018-10-11 | 1 | -3/+4 |
|/ | |||||
* | Unmapping an unmapped buffer should succeed | David Marcec | 2018-10-08 | 1 | -1/+6 |
| | | | | Hardware tests show that trying to unmap an unmapped buffer already should always succeed. Hardware test was tested up to 32 iterations of attempting to unmap | ||||
* | Port #4182 from Citra: "Prefix all size_t with std::" | fearlessTobi | 2018-09-15 | 1 | -1/+1 |
| | |||||
* | hle/service: Default constructors and destructors in the cpp file where applicable | Lioncash | 2018-09-11 | 18 | -19/+47 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a destructor isn't defaulted into a cpp file, it can cause the use of forward declarations to seemingly fail to compile for non-obvious reasons. It also allows inlining of the construction/destruction logic all over the place where a constructor or destructor is invoked, which can lead to code bloat. This isn't so much a worry here, given the services won't be created and destroyed frequently. The cause of the above mentioned non-obvious errors can be demonstrated as follows: ------- Demonstrative example, if you know how the described error happens, skip forwards ------- Assume we have the following in the header, which we'll call "thing.h": \#include <memory> // Forward declaration. For example purposes, assume the definition // of Object is in some header named "object.h" class Object; class Thing { public: // assume no constructors or destructors are specified here, // or the constructors/destructors are defined as: // // Thing() = default; // ~Thing() = default; // // ... Some interface member functions would be defined here private: std::shared_ptr<Object> obj; }; If this header is included in a cpp file, (which we'll call "main.cpp"), this will result in a compilation error, because even though no destructor is specified, the destructor will still need to be generated by the compiler because std::shared_ptr's destructor is *not* trivial (in other words, it does something other than nothing), as std::shared_ptr's destructor needs to do two things: 1. Decrement the shared reference count of the object being pointed to, and if the reference count decrements to zero, 2. Free the Object instance's memory (aka deallocate the memory it's pointing to). And so the compiler generates the code for the destructor doing this inside main.cpp. Now, keep in mind, the Object forward declaration is not a complete type. All it does is tell the compiler "a type named Object exists" and allows us to use the name in certain situations to avoid a header dependency. So the compiler needs to generate destruction code for Object, but the compiler doesn't know *how* to destruct it. A forward declaration doesn't tell the compiler anything about Object's constructor or destructor. So, the compiler will issue an error in this case because it's undefined behavior to try and deallocate (or construct) an incomplete type and std::shared_ptr and std::unique_ptr make sure this isn't the case internally. Now, if we had defaulted the destructor in "thing.cpp", where we also include "object.h", this would never be an issue, as the destructor would only have its code generated in one place, and it would be in a place where the full class definition of Object would be visible to the compiler. ---------------------- End example ---------------------------- Given these service classes are more than certainly going to change in the future, this defaults the constructors and destructors into the relevant cpp files to make the construction and destruction of all of the services consistent and unlikely to run into cases where forward declarations are indirectly causing compilation errors. It also has the plus of avoiding the need to rebuild several services if destruction logic changes, since it would only be necessary to recompile the single cpp file. | ||||
* | video_core: Move command buffer loop. | Markus Wick | 2018-09-10 | 2 | -31/+12 |
| | | | | This moves the hot loop into video_core. This refactoring shall reduce the CPU overhead of calling ProcessCommandList. | ||||
* | gl_renderer: Cache textures, framebuffers, and shaders based on CPU address. | bunnei | 2018-08-31 | 1 | -0/+1 |
| | |||||
* | core: Make the main System class use the PImpl idiom | Lioncash | 2018-08-31 | 1 | -1/+2 |
| | | | | | | | | | | | | | core.h is kind of a massive header in terms what it includes within itself. It includes VFS utilities, kernel headers, file_sys header, ARM-related headers, etc. This means that changing anything in the headers included by core.h essentially requires you to rebuild almost all of core. Instead, we can modify the System class to use the PImpl idiom, which allows us to move all of those headers to the cpp file and forward declare the bulk of the types that would otherwise be included, reducing compile times. This change specifically only performs the PImpl portion. | ||||
* | gpu: Make memory_manager private | Lioncash | 2018-08-28 | 1 | -6/+6 |
| | | | | | | | | | | Makes the class interface consistent and provides accessors for obtaining a reference to the memory manager instance. Given we also return references, this makes our more flimsy uses of const apparent, given const doesn't propagate through pointers in the way one would typically expect. This makes our mutable state more apparent in some places. | ||||
* | Added missing channel devices | David Marcec | 2018-08-13 | 4 | -0/+140 |
| | |||||
* | nvhost_gpu: Don't over copy IoctlSubmitGpfifo. | bunnei | 2018-08-08 | 1 | -1/+1 |
| | |||||
* | nvdrv: Get rid of indirect inclusions | Lioncash | 2018-08-07 | 10 | -12/+17 |
| | |||||
* | renderer_base: Make Rasterizer() return the rasterizer by reference | Lioncash | 2018-08-04 | 1 | -2/+2 |
| | | | | | | | 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(). | ||||
* | video_core: Eliminate the g_renderer global variable | Lioncash | 2018-08-04 | 2 | -8/+9 |
| | | | | | | | | | | | | | | 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. | ||||
* | nvhost_gpu: Added checks to ensure we don't read past the end of the entries when handling a GPU command list. | Subv | 2018-07-31 | 1 | -3/+6 |
| | |||||
* | nvhost_ctrl_gpu: Only read the input parameters if they are actually there. | Subv | 2018-07-31 | 1 | -3/+11 |
| | | | | Passing nullptr to memcpy is undefined behavior. | ||||
* | GPU: Implement the NVGPU_IOCTL_CHANNEL_KICKOFF_PB ioctl2 command. | Subv | 2018-07-21 | 2 | -5/+33 |
| | | | | | This behaves quite similarly to the SubmitGPFIFO command. Referenced from Ryujinx. Many thanks to @gdkchan for investigating this! | ||||
* | hle/service: Make constructors explicit where applicable | Lioncash | 2018-07-19 | 3 | -3/+3 |
| | | | | | Prevents implicit construction and makes these lingering non-explicit constructors consistent with the rest of the other classes in services. | ||||
* | vi: Partially implement buffer crop parameters. | bunnei | 2018-07-18 | 2 | -3/+7 |
| | |||||
* | NvOsGetConfigU32 production impl | David Marcec | 2018-07-10 | 1 | -17/+2 |
| | | | | | 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 | ||||
* | nvhost_ctrl: Fix NvOsGetConfigU32 for Snipper Clips. | bunnei | 2018-07-08 | 1 | -1/+1 |
| | |||||
* | Update clang format | James Rowe | 2018-07-03 | 6 | -27/+27 |
| | |||||
* | Rename logging macro back to LOG_* | James Rowe | 2018-07-03 | 7 | -43/+43 |
| | |||||
* | GPU: Remove a surface from the cache when its backing memory is being unmapped from the GPU's MMU. | Subv | 2018-07-01 | 1 | -0/+5 |
| | |||||
* | nvmap: Return the address of the nvmap object when Freeing it for the last time. | Subv | 2018-07-01 | 2 | -4/+11 |
| | | | | This behavior is confirmed by reverse engineering. | ||||
* | Build: Fixed some MSVC warnings in various parts of the code. | Subv | 2018-06-20 | 1 | -1/+2 |
| | |||||
* | nvdrv/devices/nvidia_ctrl_gpu : add IoctlCommands with their params (#524) | greggameplayer | 2018-06-06 | 2 | -0/+53 |
| | | | | | | | | | | | | * 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 | ||||
* | Nvdrv/devices/nvhost_gpu : Add some IoctlCommands with their params (#511) | greggameplayer | 2018-06-04 | 1 | -0/+47 |
| | | | | | | | | | | | | | | * 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 | ||||
* | Merge pull request #484 from mailwl/nvhost-nvdec | bunnei | 2018-06-03 | 2 | -0/+70 |
|\ | | | | | Services/nvdrv: add '/dev/nvhost-nvdec' device | ||||
| * | Services/nvdrv: add '/dev/nvhost-nvdec' device | mailwl | 2018-05-30 | 2 | -0/+70 |
| | | |||||
* | | nvhost_ctrl: Stub out IocCtrlEventRegister. | bunnei | 2018-05-30 | 2 | -0/+10 |
| | | |||||
* | | nvhost_ctrl: Stub out IocCtrlEventWaitAsyncCommand. | bunnei | 2018-05-30 | 2 | -5/+9 |
|/ | |||||
* | NvOsGetConfigU32 should return null instead of 0 for default output | David Marcec | 2018-05-27 | 1 | -1/+1 |
| | |||||
* | Merge pull request #466 from mailwl/nv-timeout | bunnei | 2018-05-26 | 2 | -0/+16 |
|\ | | | | | Stub NVGPU_IOCTL_CHANNEL_SET_TIMEOUT | ||||
| * | Stub NVGPU_IOCTL_CHANNEL_SET_TIMEOUT | mailwl | 2018-05-24 | 2 | -0/+16 |
| | | | | | | | | Used in Nintendo Labo ToyCon 1&2 | ||||
* | | Stubbed NVGPU_GPU_IOCTL_ZBC_SET_TABLE (#463) | David | 2018-05-25 | 2 | -0/+22 |
|/ | | | We have no clue on what this actually does yet so stubbing it since it's just input only should be fine for now | ||||
* | change some functions | greggameplayer | 2018-05-23 | 1 | -6/+6 |
| | | | according to the changes made previously | ||||
* | correct placement and add size check | greggameplayer | 2018-05-23 | 1 | -21/+25 |
| | |||||
* | Add ioctl commands with their params and size check | greggameplayer | 2018-05-23 | 1 | -2/+86 |
| | |||||
* | Implemented NVHOST_IOCTL_CHANNEL_GET_WAITBASE (#440) | David | 2018-05-22 | 2 | -1/+20 |
| | | | | | | | | | | * 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 | ||||
* | GPU: Implemented the nvmap Free ioctl. | Subv | 2018-05-20 | 2 | -1/+48 |
| | | | | It releases a reference to an nvmap object | ||||
* | GPU: Implemented nvhost-as-gpu's UnmapBuffer ioctl. | Subv | 2018-05-20 | 2 | -0/+50 |
| | | | | It removes a mapping previously created with the MapBufferEx ioctl. | ||||
* | More accurate GetTPCMasks impl | David Marcec | 2018-05-11 | 2 | -4/+8 |
| | |||||
* | general: Make formatting of logged hex values more straightforward | Lioncash | 2018-05-02 | 5 | -7/+7 |
| | | | | | | 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). | ||||
* | GPU: Don't write to invalid memory locations when handling ioctls that don't have an output. | Subv | 2018-05-01 | 2 | -5/+0 |
| | |||||
* | Merge branch 'master' of https://github.com/yuzu-emu/yuzu into service-impl | David Marcec | 2018-04-26 | 7 | -58/+116 |
|\ | |||||
| * | nvdrv: Move logging macros over to new fmt-compatible ones | Lioncash | 2018-04-24 | 6 | -53/+54 |
| | | |||||
| * | Merge pull request #384 from Subv/nvhost-remap | bunnei | 2018-04-23 | 2 | -0/+57 |
| |\ | | | | | | | Nvdrv/nvhost-as-gpu: Implemented the ioctl REMAP command. | ||||
| | * | NvDrv/nvhost-as-gpu: Ensure that the object passed to MapBufferEx has already been allocated. | Subv | 2018-04-23 | 1 | -0/+10 |
| | | | | | | | | | | | | 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. | ||||
| | * | Nvdrv/nvhost-as-gpu: Implemented the ioctl REMAP command. | Subv | 2018-04-23 | 2 | -0/+47 |
| | | | | | | | | | | | | It takes a previously-reserved (AllocateSpace) GPU memory address and maps it to the address of the nvmap object passed to Remap. | ||||
| * | | Nvdrv: Assert when receiving an unimplemented ioctl in the nv* handlers. | Subv | 2018-04-23 | 5 | -5/+5 |
| |/ | |||||
* | | GetIUserInterface->CreateUserInterface, Added todos and stub logs. Playreport->PlayReport. | David Marcec | 2018-04-23 | 1 | -1/+1 |
| | | |||||
* | | Implemented GetIUserInterface properly, Playreport and SSL::SetInterfaceVersion. Fixed ipc issues with IAudioDevice(wrong ids) | David Marcec | 2018-04-22 | 1 | -0/+1 |
|/ | |||||
* | service: Use nested namespace specifiers where applicable | Lioncash | 2018-04-20 | 13 | -78/+27 |
| | | | | Tidies up namespace declarations | ||||
* | renderer_opengl: Fixes for properly flushing & rendering the framebuffer. | bunnei | 2018-03-23 | 1 | -6/+0 |
| | |||||
* | renderer_opengl: Better handling of framebuffer transform flags. | bunnei | 2018-03-23 | 1 | -3/+1 |
| | |||||
* | nvdisp_disp0: Always flush and invalidate framebuffer region. | bunnei | 2018-03-23 | 1 | -0/+7 |
| | | | | - Workaround for texture forwarding until we have a better place. | ||||
* | video_core: Move FramebufferInfo to FramebufferConfig in GPU. | bunnei | 2018-03-23 | 1 | -3/+3 |
| | |||||
* | Clang Fixes | N00byKing | 2018-03-19 | 1 | -2/+2 |
| | |||||
* | Clean Warnings (?) | N00byKing | 2018-03-19 | 1 | -1/+1 |
| | |||||
* | nvmap: Make IocFromId return the same existing handle instead of creating a new one. | Subv | 2018-02-17 | 1 | -5/+2 |
| | | | | Games like Puyo Puyo Tetris and BOTW seem to depend on the buffer always having the same handle | ||||
* | nvhost-ctrl: Stub NVHOST_IOCTL_CTRL_EVENT_WAIT. | Subv | 2018-02-15 | 2 | -0/+25 |
| | |||||
* | nvmap: Silence formatting specifier warnings | Lioncash | 2018-02-14 | 1 | -1/+2 |
| | |||||
* | nvhost_gpu: Silence formatting specifier warnings | Lioncash | 2018-02-14 | 1 | -6/+8 |
| | |||||
* | nvhost_ctrl: Silence formatting specifier warnings | Lioncash | 2018-02-14 | 1 | -2/+2 |
| | |||||
* | nvhost_ctrl_gpu: Silence formatting specifier warnings | Lioncash | 2018-02-14 | 1 | -3/+4 |
| | |||||
* | nvhost_as_gpu: Silence formatting specifier warnings | Lioncash | 2018-02-14 | 1 | -5/+7 |
| | |||||
* | Merge pull request #178 from Subv/command_buffers | bunnei | 2018-02-12 | 4 | -11/+17 |
|\ | | | | | GPU: Added a command processor to decode the GPU pushbuffers and forward the commands to their respective engines | ||||
| * | Make a GPU class in VideoCore to contain the GPU state. | Subv | 2018-02-12 | 4 | -16/+13 |
| | | | | | | | | Also moved the GPU MemoryManager class to video_core since it makes more sense for it to be there. | ||||
| * | GPU: Added a command processor to decode the GPU pushbuffers and forward the commands to their respective engines. | Subv | 2018-02-12 | 3 | -3/+5 |
| | | |||||
| * | nvdrv: Make the GPU memory manager available to nvhost-gpu. | Subv | 2018-02-12 | 2 | -4/+11 |
| | | |||||
* | | vi: Parse IGBPQueueBufferRequestParcel params and expose buffer flip vertical. | bunnei | 2018-02-12 | 2 | -3/+7 |
|/ | |||||
* | nvhost_ctrl_gpu: Implement ZCullGetInfo. | bunnei | 2018-02-09 | 1 | -2/+14 |
| | |||||
* | nvhost_as_gpu: Implement AllocateSpace and MapBufferEx. | bunnei | 2018-02-08 | 2 | -10/+33 |
| | |||||
* | nvmap: Refactor to expose nvmap objects. | bunnei | 2018-02-08 | 2 | -19/+22 |
| | |||||
* | nvhost_as_gpu: Add nvmap as a class member. | bunnei | 2018-02-08 | 2 | -1/+8 |
| | |||||
* | Extra nvdrv support (#162) | David | 2018-02-06 | 13 | -18/+708 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * FinishInitalize needed for 3.0.1+ games * nvdrv:s and nvdrv:t both use NVDRV * Most settings return 0 on hardware, disabled NV_MEMORY_PROFILER for now. NVN_THROUGH_OPENGL & NVRM_GPU_PREVENT_USE are a few interesting settings to look at. Carefully choosing settings can help with drawing graphics later on * Initial /dev/nvhost-gpu support * ZCullBind * Stubbed SetErrorNotifier * Fixed SetErrorNotifier log, Added SetChannelPriority * Allocate GPFIFO Ex2, Allocate Obj Ctx, Submit GPFIFO * oops * Fixed up naming/structs/enums. Used vector instead of array for "gpfifo_entry" * Added missing fixes * /dev/nvhost-ctrl-gpu * unneeded struct * Forgot u32 in enum class * Automatic descriptor swapping for ioctls, fixed nvgpu_gpu_get_tpc_masks_args being incorrect size * nvdrv#QueryEvent * Renamed logs for nvdrv * Refactor ioctl so nv_result isn't needed * /dev/nvhost-as-gpu * Fixed Log service naming, CtxObjects now u32, renamed all structs, added static_asserts to structs, used INSERT_PADDING_WORDS instead of u32s * nvdevices now uses "Ioctl" union, * IoctlGpfifoEntry now uses bit field * final changes | ||||
* | logger: Use Service_NVDRV category where applicable. | bunnei | 2018-02-04 | 1 | -5/+5 |
| | |||||
* | Merge pull request #131 from lioncash/enum | bunnei | 2018-01-22 | 2 | -12/+13 |
|\ | | | | | nvmap: Make IoctlCommands an enum class | ||||
| * | nvmap: Add a return 0 underneath the UNIMPLEMENTED macro | Lioncash | 2018-01-21 | 1 | -0/+1 |
| | | | | | | | | This macro resolves to an empty macro in release builds. | ||||
| * | nvmap: Make IoctlCommands an enum class | Lioncash | 2018-01-21 | 2 | -12/+12 |
| | | | | | | | | Prevents the enum values from polluting the surrounding scope | ||||
* | | Added nvmemp, Added /dev/nvhost-ctrl, SetClientPID now stores pid (#114) | David | 2018-01-21 | 2 | -0/+94 |
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | * Added nvmemp, Added /dev/nvhost-ctrl, SetClientPID now stores pid * used clang-format-3.9 instead * lowercase pid * Moved nvmemp handlers to cpp * Removed unnecessary logging for NvOsGetConfigU32. Cleaned up log and changed to LOG_DEBUG * using std::arrays instead of c arrays * nvhost get config now uses std::array completely * added pid logging back * updated cmakelist * missing includes * added array, removed memcpy * clang-format6.0 | ||||
* | UI: Fix frame rate perf stats | James Rowe | 2018-01-17 | 1 | -0/+3 |
| | | | | Adds in a missing EndGameFrame when nvdrv swaps buffers | ||||
* | NV: Move the nvdrv classes into the Nvidia namespace, and move the functionality to a s single module that services call. | Subv | 2018-01-17 | 7 | -14/+14 |
| | |||||
* | yuzu: Update license text to be consistent across project. | bunnei | 2018-01-13 | 7 | -7/+7 |
| | |||||
* | core: Include <algorithm> where used. | bunnei | 2018-01-12 | 1 | -0/+2 |
| | |||||
* | nv: Fix more broken asserts. | bunnei | 2018-01-12 | 2 | -3/+3 |
| | |||||
* | nvdisp_disp0: Fix broken assert. | bunnei | 2018-01-12 | 1 | -1/+1 |
| | |||||
* | nvdisp_disp0: Call SwapBuffers to render framebuffer. | bunnei | 2018-01-11 | 1 | -0/+7 |
| | |||||
* | NV: Move the nv device nodes to their own directory and namespace. | Subv | 2018-01-11 | 7 | -0/+402 |