summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv (follow)
Commit message (Collapse)AuthorAgeFilesLines
* video_core: make gpu context aware of rendering programLiam2024-02-262-6/+18
|
* scope_exit: Make constexprFearlessTobi2024-02-192-4/+4
| | | | | Allows the use of the macro in constexpr-contexts. Also avoids some potential problems when nesting braces inside it.
* vi: manage resources independently of nvnflinger and refactorLiam2024-02-181-7/+0
|
* nvnflinger: convert to processLiam2024-02-184-5/+10
|
* nvnflinger/gpu: implement blendingLiam2024-02-091-0/+17
|
* nvservices: unmap only on last container freeLiam2024-02-093-3/+13
|
* Merge pull request #12914 from FernandoS27/vc-refactorliamwhite2024-02-081-144/+43
|\ | | | | VideoCore Refactor Part 1.
| * Common: Rename SplitRangeSet to OverlapRangeSetFernando Sahmkow2024-02-051-1/+1
| |
| * NVDRV: Refactor HeapMapper to use RangeSetsFernando Sahmkow2024-02-041-144/+43
| |
* | Merge pull request #12883 from FernandoS27/memory_manager_memliamwhite2024-02-061-2/+4
|\ \ | |/ |/| MemoryManager: Reduce the page table size based on last big page address.
| * MemoryManager: Reduce the page table size based on last big page address.Fernando Sahmkow2024-02-011-2/+4
| |
* | nvnflinger/gpu: implement layer stack compositionLiam2024-01-312-18/+27
|/
* NVDRV: Join the heaper optimization blocksFernando Sahmkow2024-01-311-1/+3
|
* Merge pull request #12759 from liamwhite/mp-miscliamwhite2024-01-253-0/+16
|\ | | | | core: miscellaneous fixes
| * nvservices: close map handles on session closeLiam2024-01-233-0/+16
| |
* | service: properly convert buffers to stringsNarr the Reg2024-01-231-1/+2
|/
* nvhost_vic: use map erase by keyLiam2024-01-191-4/+1
|
* nvdrv: clean up preallocationLiam2024-01-191-3/+5
|
* nvdrv: use correct names for interface factoryLiam2024-01-191-3/+3
|
* nvdrv: use static typing for SessionId, smmu Asid typesLiam2024-01-1929-57/+65
|
* Core: Clang format and other small issues.Fernando Sahmkow2024-01-198-24/+44
|
* SMMU: Fix software rendering and cleanupFernando Sahmkow2024-01-196-30/+22
|
* SMMU: Add continuity tracking optimization.Fernando Sahmkow2024-01-192-1/+2
|
* SMMU: Add Android compatibilityFernando Sahmkow2024-01-191-2/+4
|
* GPU-SMMU: Estimate game leak and preallocate device region.Fernando Sahmkow2024-01-196-21/+323
|
* GPU SMMU: Expand to 34 bitsFernando Sahmkow2024-01-192-5/+34
|
* SMMU: Implement physical memory mirroringFernando Sahmkow2024-01-193-6/+13
|
* SMMU: Initial adaptation to video_core.Fernando Sahmkow2024-01-198-101/+79
|
* NVDRV: Implement sessions and initial implementation of SMMUFernando Sahmkow2024-01-1929-72/+227
|
* Fix typos in src/core (#12625)Viktor Szépe2024-01-083-3/+3
| | | | | | | | | * Fix typos in src/core * Fix typo correction * Fix indentation of MemoryStateNames * Fix indent
* nvdrv: rework to remove memcpyLiam2023-10-2516-225/+243
|
* nvdrv: fix up remaining copy callsLiam2023-10-253-17/+22
|
* nvdrv: convert nvmapLiam2023-10-252-40/+19
|
* nvdrv: convert codec devicesLiam2023-10-256-34/+29
|
* nvdrv: convert nvhost_gpuLiam2023-10-252-76/+49
|
* nvdrv: convert nvhost_ctrlLiam2023-10-252-34/+29
|
* nvdrv: convert nvhost_ctrl_gpuLiam2023-10-252-97/+43
|
* nvdrv: add ioctl command serialization, convert nvhost_as_gpuLiam2023-10-255-71/+152
|
* service: nvnflinger: Implement shared bufferNarr the Reg2023-10-011-7/+7
| | | | Co-authored-by: Liam <byteslice@airmail.cc>
* msvc: set warning level to /W4 globallyDanila Malyutin2023-09-031-2/+2
| | | | And fix a bunch of warnings
* nvhost_as_gpu: ensure mappings are aligned to big page size when deallocatedLiam2023-08-251-1/+3
|
* k_process: PageTable -> GetPageTableLiam2023-07-151-2/+2
|
* general: Use ScratchBuffer where possibleMorph2023-07-012-14/+16
|
* Remove memory allocations in some hot pathsKelebek12023-06-2225-221/+221
|
* Merge pull request #10086 from Morph1984/coretiming-ng-1bunnei2023-06-221-1/+1
|\ | | | | core_timing: Use CNTPCT as the guest CPU tick
| * nvdisp: Fix SingleCore frametime reportingMorph2023-06-081-1/+1
| |
* | nvnflinger: allow locking framerate during video playbackLiam2023-06-081-2/+2
|/
* Fix incorrect id check and potential out of bounds lookupKelebek12023-05-311-1/+1
|
* memory: rename global memory references to application memoryLiam2023-03-242-4/+4
|
* general: fix spelling mistakesLiam2023-03-122-2/+2
|
* nvnflinger: fix nameLiam2023-03-013-10/+10
|
* service: move hle_ipc from kernelLiam2023-03-015-31/+31
|
* service: refactor server architectureLiam2023-02-213-13/+16
| | | | Converts services to have their own processes
* Merge pull request #9796 from liamwhite/currentliamwhite2023-02-152-4/+4
|\ | | | | general: rename CurrentProcess to ApplicationProcess
| * general: rename CurrentProcess to ApplicationProcessLiam2023-02-142-4/+4
| |
* | remove static from pointer sized or smaller types for aesthetics, change constexpr static to static constexpr for consistencyarades792023-02-142-3/+3
| | | | | | | | Signed-off-by: arades79 <scravers@protonmail.com>
* | add static lifetime to constexpr values to force compile time evaluation where possiblearades792023-02-141-2/+2
|/ | | | Signed-off-by: arades79 <scravers@protonmail.com>
* Revert "Merge pull request #9718 from yuzu-emu/revert-9508-hle-ipc-buffer-span"ameerj2023-02-0323-206/+204
| | | | | This reverts commit 25fc5c0e1158cb8e81cbc769b24ad84032a1fbfd, reversing changes made to af20e25081f97d55b451606c87922e2b49f0d363.
* Revert "hle_ipc: Use std::span to avoid heap allocations/copies when calling ReadBuffer"liamwhite2023-02-0223-204/+206
|
* hle_ipc: Rename ReadBufferSpan to ReadBufferameerj2022-12-291-5/+5
|
* nvdrv: Use std::span for inputsameerj2022-12-2924-211/+209
| | | | Allows the use of HLERequestContext::ReadBufferSpan
* Merge pull request #9340 from lioncash/nvdrvliamwhite2022-11-291-26/+18
|\ | | | | nvdrv: Simplify builder declarations
| * nvdrv: Simplify builder declarationsLioncash2022-11-281-26/+18
| | | | | | | | | | | | | | | | We can just use auto here. If one of these ever happens to not be derived from nvdevice, then this will cause a compilation error. We can also move the devices into the collection to get rid of an unnecessary atomic reference count increment and decrement.
* | syncpoint_manager: Mark IsSyncpointAllocated() as constLioncash2022-11-282-3/+3
| | | | | | | | This doesn't modify class state at all.
* | syncpoint_manager: Reduce number of bounds checksLioncash2022-11-281-14/+28
|/ | | | The only time we need to check bounds is on the first access.
* Add break for default casesKyle Kienapfel2022-11-142-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.bunnei2022-11-041-2/+4
|
* nvnflinger: release queued handles immediately on disconnectionLiam2022-10-273-6/+10
|
* nvdrv: fix container destruction orderLiam2022-10-242-4/+4
|
* Merge pull request #9071 from bunnei/mp-mmliamwhite2022-10-191-1/+2
|\ | | | | Kernel Multiprocess (Part 1) - Persist memory & core timing
| * core: hle: kernel: k_page_table: Impl. LockForUn/MapDeviceAddressSpace, cleanup.bunnei2022-10-191-1/+2
| |
* | Merge pull request #9084 from vonchenplus/dma_copyFernando S2022-10-191-4/+8
|\ \ | |/ |/| video_core: implement 1D copies based on VMM 'kind'
| * video_core: Implement memory manager page kindFengChen2022-10-171-4/+8
| |
* | kernel: remove KWritableEventLiam2022-10-133-8/+2
|/
* General: address feedbackFernando Sahmkow2022-10-0618-128/+131
|
* general: rework usages of UNREACHABLE macroLiam2022-10-062-12/+12
|
* nvdisp: End system frame after requesting to swap buffersMorph2022-10-061-1/+1
| | | | Fixes frametime reporting
* address_space: Address feedbackMorph2022-10-061-4/+4
|
* general: Format licenses as per SPDX guidelinesMorph2022-10-0614-56/+42
|
* NvHostChannels: improve hack for supporting multiple channels.Fernando Sahmkow2022-10-062-2/+11
|
* Address Feedback from bylaws.Fernando Sahmkow2022-10-062-6/+2
|
* Nvflinger: correct duplication.Fernando Sahmkow2022-10-062-3/+3
|
* Core: Fix get nvmap object random crashVonChenPlus2022-10-065-20/+20
|
* NvDec: Fix regressions.Fernando Sahmkow2022-10-066-5/+31
|
* General: Fix compilation for GCCLiam White2022-10-068-23/+38
|
* NVDRV: Further improvements.Fernando Sahmkow2022-10-0613-127/+256
|
* VideoCore: Refactor fencing system.Fernando Sahmkow2022-10-062-3/+5
|
* MemoryManager: initial multi paging system implementation.Fernando Sahmkow2022-10-063-20/+36
|
* NVDRV: Further refactors and eliminate old code.Fernando Sahmkow2022-10-067-61/+8
|
* NVDRV: Refactor Host1xFernando Sahmkow2022-10-068-64/+62
|
* VideoCore: Refactor syncing.Fernando Sahmkow2022-10-064-10/+25
|
* Texture cache: Fix the remaining issues with memory mnagement and unmapping.Fernando Sahmkow2022-10-061-0/+3
|
* VideoCore: Extra Fixes.Fernando Sahmkow2022-10-061-1/+3
|
* NVDRV: Remake ASGPUFernando Sahmkow2022-10-062-235/+388
|
* NVDRV: Update copyright notices.Fernando Sahmkow2022-10-064-7/+13
|
* NvHostCtrl: Fix merge of nvflinger.Fernando Sahmkow2022-10-061-1/+2
|
* NVHOST_CTRl: Implement missing method and fix some stuffs.Fernando Sahmkow2022-10-062-6/+29
|
* VideoCore: implement channels on gpu caches.Fernando Sahmkow2022-10-066-30/+65
|
* NVASGPU: Fix Remap.Fernando Sahmkow2022-10-061-0/+8
|
* NVDRV: Fix clearing when destroying.Fernando Sahmkow2022-10-063-14/+9
|
* NVMAP: Fix the Free return parameters.Fernando Sahmkow2022-10-063-15/+18
|
* NVDRV: Fix Open/Close and make sure each device is correctly created.Fernando Sahmkow2022-10-0612-198/+284
|
* NVDRV: Implement new NvMapFernando Sahmkow2022-10-0618-277/+307
|
* NVDRV: Refactor and add new NvMap.Fernando Sahmkow2022-10-0618-38/+544
|
* NVDRV: Cleanup.Fernando Sahmkow2022-10-064-32/+40
|
* NVDRV: Implement QueryEvent.Fernando Sahmkow2022-10-0610-40/+133
|
* NvHost: Remake Ctrl Implementation.Fernando Sahmkow2022-10-066-169/+311
|
* NvHost: Try a different approach to blocking.Fernando Sahmkow2022-10-062-10/+7
|
* NvHost: Fix some regressions and correct signaling on timeout.Fernando Sahmkow2022-10-061-25/+19
|
* Merge pull request #8842 from Kelebek1/AudOutbunnei2022-09-101-1/+6
|\ | | | | [audio_core] Rework audio output
| * Don't stall with nvdecKelebek12022-09-041-1/+6
| |
* | Demote services from warning/info to debug to reduce log spam:Kelebek12022-09-011-2/+2
|/ | | | | | | | | | | GetCurrentFocusState SetClockSpeed EnableSixAxisSensorUnalteredPassthrough IsSixAxisSensorUnalteredPassthroughEnabled Get, GetOld SetAndWait, SetAndWaitOld IocParam IocFree
* kernel: implement KProcess suspensionLiam2022-06-141-2/+2
|
* common: Change semantics of UNREACHABLE to unconditionally crashLiam2022-06-141-1/+1
|
* general: Convert source file copyright comments over to SPDXMorph2022-04-2330-90/+60
| | | | | 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.
* Merge pull request #8122 from bunnei/improve-thread-usagebunnei2022-04-061-1/+1
|\ | | | | Improve usage of service host threads
| * hle: service: nvdrv: Create a service thread where appropriate.Morph2022-04-021-1/+1
| |
* | fix: typosAndrea Pappacoda2022-04-021-6/+6
|/
* nvhost_ctrl: Only mark EventState::Busy as BadParameterameerj2022-03-291-1/+1
| | | | Fixes an svc break in Kirby and the Forgotten Land with async GPU enabled.
* hle: nvdrv: nvdata: Cleanup NvFence static assert.bunnei2022-03-251-1/+1
|
* hle: nvflinger: Move BufferTransformFlags to its own header.bunnei2022-03-251-1/+1
|
* hle: nvdrv: Rename Fence to NvFence to avoid naming conflicts.bunnei2022-03-254-17/+13
|
* hle: nvflinger: Move PixelFormat to its own header.bunnei2022-03-252-8/+7
|
* common: Reduce unused includesameerj2022-03-192-0/+3
|
* Merge pull request #7488 from vonchenplus/support_multiple_videos_playingbunnei2021-12-086-8/+29
|\ | | | | Support multiple videos playing
| * Address feedbackFeng Chen2021-12-044-13/+22
| |
| * Support multiple videos playingFeng Chen2021-12-024-9/+21
| |
* | general: Add missing copyright noticesameerj2021-12-051-0/+4
|/
* core: Remove unused includesameerj2021-11-0410-15/+0
|
* Fixup channel submit IOCTL syncpoint parametersBilly Laws2021-10-242-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 Sahmkow2021-10-161-3/+5
|
* Suspend temporallyFernandoS272021-10-161-1/+2
|
* NVHost_Ctrl: Force wait if the gpu falls behind too long.FernandoS272021-10-162-0/+13
|
* nvhost_ctrl: Refactor usage of gpu.LockSync()ameerj2021-10-031-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 fileameerj2021-10-032-5/+13
|
* style: Remove extra space preceding the :: operatorMorph2021-09-291-1/+1
|
* nvflinger: Use external surface format for framebuffer creationameerj2021-09-071-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 BufferMapameerj2021-08-072-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 Ioctlameerj2021-08-071-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.
* Merge pull request #6696 from ameerj/speed-limit-renamebunnei2021-07-271-1/+1
|\ | | | | general: Rename "Frame Limit" references to "Speed Limit"
| * general: Rename "Frame Limit" references to "Speed Limit"ameerj2021-07-241-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.
* | hle: service: nvdrv: Remove unused kernel reference.bunnei2021-07-211-1/+0
| |
* | hle: service: Add a helper module for managing kernel objects.bunnei2021-07-212-5/+8
|/
* Merge pull request #6525 from ameerj/nvdec-fixesFernando S2021-07-151-45/+40
|\ | | | | nvdec: Fix Submit Ioctl data source, vic frame dimension computations
| * nvhost_nvdec_common: Read Submit ioctl data from object addrameerj2021-07-151-8/+2
| | | | | | | | Fixes Mario Golf intro video decoding.
| * nvhost_nvdec_common: Fix {Slice/Write}Vectors returnameerj2021-07-151-37/+38
| | | | | | | | Plus some minor cleanup for consistency.
* | service: Append service name prefix to common filenamesMorph2021-07-143-2/+2
|/
* general: Replace RESULT_SUCCESS with ResultSuccessMorph2021-06-021-13/+13
| | | | Transition to PascalCase for result names.
* Merge pull request #6317 from ameerj/fps-fixbunnei2021-05-191-1/+0
|\ | | | | perf_stats: Rework FPS counter to be more accurate
| * perf_stats: Rework FPS counter to be more accurateameerj2021-05-161-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 errorLioncash2021-05-165-15/+15
|/ | | | | | 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.bunnei2021-05-064-12/+12
|
* hle: kernel: Refactor several threads/events/sharedmemory to use slab heaps.bunnei2021-05-062-3/+2
|
* hle: kernel: Ensure all kernel objects with KAutoObject are properly created.bunnei2021-05-061-0/+1
|
* hle: kernel: Migrate KEvent to KAutoObject.bunnei2021-05-063-6/+10
|
* hle: kernel: Refactor IPC interfaces to not use std::shared_ptr.bunnei2021-05-062-2/+2
|
* Merge pull request #6279 from ogniK5377/nvhost-profbunnei2021-05-061-3/+14
|\ | | | | nvdrv: /dev/nvhost-prof-gpu for production
| * Update src/core/hle/service/nvdrv/interface.cppbunnei2021-05-061-1/+1
| | | | | | Co-authored-by: Ameer J <52414509+ameerj@users.noreply.github.com>
| * nvdrv: /dev/nvhost-prof-gpu for productionChloe Marcec2021-05-031-3/+14
| | | | | | | | | | While we're at it, we can fix the is_initialized error code. This fixes the crashes on Shante
* | service: Resolve cases of member field shadowingLioncash2021-05-0420-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 closureameerj2021-04-252-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-devbunnei2021-04-171-6/+4
|\ | | | | nvdrv: Cleanup CDMA Processor on device closure
| * nvdrv: Cleanup CDMA Processor on device closureChloe Marcec2021-03-301-6/+4
| | | | | | | | Brings us a step closer to unifying all channels to share a common interface.
* | Merge pull request #6145 from lat9nq/nvhost_empty_memcpybunnei2021-04-081-6/+11
|\ \ | | | | | | nvhost_nvdec_common: Avoid memcpy with null pointers
| * | nvhost_nvdec_common: Avoid memcpy with null pointerslat9nq2021-04-051-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 memcpylat9nq2021-04-051-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 closingChloe Marcec2021-03-2520-78/+161
| | | | 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 AllocAsExChloe Marcec2021-03-222-27/+49
| | | | Wee also report the correct "big page size" now in GetVARegions & fix up the struct for IoctlAllocAsEx
* Address PR feedbackameerj2021-02-132-4/+2
| | | | Co-Authored-By: LC <712067+lioncash@users.noreply.github.com>
* nvdec cleanupameerj2021-02-131-1/+7
|
* hle: kernel: Reimplement KReadableEvent and KWritableEvent.bunnei2021-02-053-10/+16
|
* hle: kernel: Rename WritableEvent to KWritableEvent.bunnei2021-02-055-8/+8
|
* hle: kernel: Rename ReadableEvent to KReadableEvent.bunnei2021-02-054-5/+5
|
* core: hle: kernel: Rename Thread to KThread.bunnei2021-01-291-1/+1
|
* Simplify conditionChloe Marcec2021-01-231-2/+1
|
* nvdrv: Unregister already registered eventsChloe Marcec2021-01-231-1/+8
|
* fix for nvdec disabled, cleanup host1xameerj2021-01-071-11/+14
|
* nvdec syncpt incorporationameerj2021-01-077-20/+43
| | | | 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.bunnei2020-12-2923-211/+83
| | | | - 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 superclasscomex2020-12-071-33/+0
|
* service: Eliminate usages of the global system instanceLioncash2020-11-276-12/+16
| | | | | Completely removes all usages of the global system instance within the services code by passing in the using system instance to the services.
* Merge pull request #4975 from comex/invalid-syncpoint-idbunnei2020-11-261-2/+2
|\ | | | | nvdrv, video_core: Don't index out of bounds when given invalid syncpoint ID
| * nvdrv, video_core: Don't index out of bounds when given invalid syncpoint IDcomex2020-11-241-2/+2
| | | | | | | | | | | | | | | | - Use .at() instead of raw indexing when dealing with untrusted indices. - For the special case of WaitFence with syncpoint id UINT32_MAX, instead of crashing, log an error and ignore. This is what I get when running Super Mario Maker 2.
* | nvservices: Reintroducee IoctlCtrlChloe Marcec2020-11-2424-91/+214
|/ | | | Fixes regression caused by #4907 which caused games like Breath of the Wild 1.0.0 not to boot.
* Addressed issuesChloe Marcec2020-11-1010-17/+86
|
* core: Make nvservices more standardizedChloe Marcec2020-11-1026-903/+1156
|
* ipc_helpers: Remove usage of the global system instanceLioncash2020-11-081-0/+1
| | | | | | | | | Resolves numerous deprecation warnings throughout the codebase due to inclusion of this header. Now building core should be significantly less noisy (and also relying on less global state). This also uncovered quite a few modules that were relying on indirect includes, which have also been fixed.
* video_core: dma_pusher: Remove integrity check on command lists.bunnei2020-11-071-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.bunnei2020-11-012-3/+11
|
* hle service: nvdrv: nvhost_gpu: Update to use SyncpointManager and other improvements.bunnei2020-11-013-46/+106
| | | | | - 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.bunnei2020-11-013-9/+31
|
* hle service: nvdrv: Update to instantiate SyncpointManager.bunnei2020-11-012-5/+18
|
* hle: service: nvdrv: Implement SyncpointManager, to manage syncpoints.bunnei2020-11-013-1/+125
|
* Rename to align with switchbrew and remove gpu function (#4714)Levi Behunin2020-11-012-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 ClangJan Beich2020-10-301-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 Implementationameerj2020-10-278-288/+468
| | | | | | | | | | | | | | 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"bunnei2020-10-214-42/+34
|
* Merge pull request #4796 from lioncash/clangLC2020-10-214-34/+42
|\ | | | | core: Fix clang build
| * core: Fix clang buildLioncash2020-10-184-34/+42
| | | | | | | | | | | | | | 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.bunnei2020-10-132-0/+25
|/ | | | - This is used by Super Mario 3D All-Stars.
* Merge pull request #1703 from DarkLordZach/nvdec-ioctlbunnei2020-09-304-3/+256
|\ | | | | nvdrv: Stub nvdec/vic ioctls to bypass nvdec movies
| * service: nvhost_vic: Ignore Submit commands.bunnei2020-06-052-1/+18
| |
| * nvdrv: Stub nvdec/vic ioctls to bypass nvdec moviesZach Hilman2020-06-054-3/+239
| |
* | General: Make use of std::nullopt where applicableLioncash2020-09-222-3/+3
| | | | | | | | | | | | | | | | 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 warningsLioncash2020-08-141-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.
* | Merge pull request #4430 from bunnei/new-gpu-vmmbunnei2020-08-054-93/+227
|\ \ | | | | | | hle: nvdrv: Rewrite of GPU memory management.
| * | Update src/core/hle/service/nvdrv/devices/nvmap.cppbunnei2020-07-281-1/+1
| | | | | | | | | Co-authored-by: LC <mathew1800@gmail.com>
| * | hle: nvdrv: Rewrite of GPU memory management.bunnei2020-07-264-93/+227
| | |
* | | yuzu: Resolve C++20 deprecation warnings related to lambda capturesLioncash2020-08-031-18/+18
|/ / | | | | | | | | C++20 deprecates capturing the this pointer via the '=' capture. Instead, we replace it or extend the capture specification.
* | Merge pull request #4203 from VolcaEM/servicesbunnei2020-07-114-13/+14
|\ \ | | | | | | service: Update function tables
| * | service: Update function tablesVolcaEM2020-06-294-13/+14
| |/
* | FrameLimiting: Enable frame limiting for single core.Fernando Sahmkow2020-06-271-0/+1
| |
* | NVDRV: Remove frame limiting as Host Timing already takes care.Fernando Sahmkow2020-06-271-1/+0
| |
* | General: Recover Prometheus project from harddrive failure Fernando Sahmkow2020-06-271-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 ioctl3David Marcec2020-06-102-21/+22
|/ | | | Fixes animal crossing svcBreak on launch
* nvdrv: Fix GetGpuTime stack corruptionDavid Marcec2020-05-011-2/+3
| | | | IoctlGetGpuTime should be 16 bytes, not 8.
* nvhost_gpu: implement ChannelSetTimeslicenamkazy2020-02-162-0/+20
|
* NvServices: Correct Ioctl Remap.Fernando Sahmkow2019-12-252-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 classLioncash2019-11-271-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.
* kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. (#3154)bunnei2019-11-253-5/+5
| | | | | | * kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. - See https://github.com/citra-emu/citra/pull/4710 for details.
* kernel: events: Remove ResetType::Automatic.bunnei2019-11-031-2/+1
| | | | | | | | - This does not actually seem to exist in the real kernel - games reset these automatically. # Conflicts: # src/core/hle/service/am/applets/applets.cpp # src/core/hle/service/filesystem/fsp_srv.cpp
* Merge pull request #2912 from FernandoS27/async-fixesbunnei2019-10-164-25/+20
|\ | | | | General fixes to Async GPU
| * Nvdrv: Correct Event setup in NvdrvFernando Sahmkow2019-10-052-23/+14
| | | | | | | | Events are supposed to be cleared on quering. This fixes that issue.
| * Nvdrv: Do framelimiting only in the CPU ThreadFernando Sahmkow2019-10-051-0/+4
| |
| * Nvdrv: Correct Async regression and avoid signaling empty buffer vsyncsFernando Sahmkow2019-10-051-2/+2
| |
* | service/nvdrv: Silence -WswitchReinUsesLisp2019-10-054-4/+10
|/
* Merge pull request #2873 from ogniK5377/new-ioctlsFernando Sahmkow2019-09-2224-73/+153
|\ | | | | Initial implementation of Ioctl2 & Ioctl3
| * server side clang format fix2David Marcec2019-09-221-18/+18
| |
| * Use clang-format provided by build serverDavid Marcec2019-09-221-20/+18
| |
| * disable clang-format tempDavid Marcec2019-09-201-0/+2
| |
| * Initial implementation of Ioctl2 & Ioctl3David Marcec2019-09-1924-63/+143
| | | | | | | | Purpose of Ioctl2 and Ioctl3 is to prevent the passing of raw pointers through ioctls
* | Mark KickOffPb & SubmitGPFIFO as traceDavid Marcec2019-09-211-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 FramebufferConfigReinUsesLisp2019-08-211-1/+1
|
* NVServices: Correct delayed responses.Fernando Sahmkow2019-07-051-24/+19
|
* Nv_Host_Ctrl: Correct difference calculationFernando Sahmkow2019-07-051-5/+7
|
* NVServices: Address FeedbackFernando Sahmkow2019-07-056-18/+35
|
* NVServices: Styling, define constructors as explicit and correctionsFernando Sahmkow2019-07-0515-30/+26
|
* NVFlinger: Correct GCC compile errorFernando Sahmkow2019-07-054-8/+7
|
* NVServices: Make NVEvents Automatic according to documentation.Fernando Sahmkow2019-07-052-4/+7
|
* NVServices: Correct CtrlEventWaitSync to block the ipc until timeout.Fernando Sahmkow2019-07-0523-31/+104
|
* GPU: Correct Interrupts to interrupt on syncpt/value instead of event, mirroring hardwareFernando Sahmkow2019-07-055-14/+14
|
* nv_services: Fixes to event liberation.Fernando Sahmkow2019-07-051-6/+14
|
* nv_services: Deglobalize NvServicesFernando Sahmkow2019-07-0522-50/+64
|
* nv_host_ctrl: Make Sync GPU variant always return synced result.Fernando Sahmkow2019-07-051-0/+5
|
* nvhost_ctrl: Corrections to event handlingFernando Sahmkow2019-07-052-8/+12
|
* Gpu: Mark areas as protected.Fernando Sahmkow2019-07-051-0/+6
|
* nv_services: Stub CtrlEventSignalFernando Sahmkow2019-07-052-12/+34
|
* Gpu: Implement Hardware Interrupt Manager and manage GPU interruptsFernando Sahmkow2019-07-053-8/+1
|
* nv_services: Implement NvQueryEvent, NvCtrlEventWait, NvEventRegister, NvEventUnregisterFernando Sahmkow2019-07-057-17/+192
|
* nv_services: Create GPU channels correctlyFernando Sahmkow2019-07-052-2/+5
|
* video_core: Implement GPU side SyncpointsFernando Sahmkow2019-07-053-7/+33
|
* nv_services: Correct buffer queue fencing and GPFifo fencingFernando Sahmkow2019-07-054-22/+41
|
* core/core_timing_util: Amend casing of cyclesTo* functionsLioncash2019-06-051-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 unitsLioncash2019-06-051-1/+2
| | | | | Makes the interface more type-safe and consistent in terms of return values.
* core/kernel/object: Rename ResetType enum membersLioncash2019-05-181-1/+1
| | | | | | | | | | | | | Renames the members to more accurately indicate what they signify. "OneShot" and "Sticky" are kind of ambiguous identifiers for the reset types, and can be kind of misleading. Automatic and Manual communicate the kind of reset type in a clearer manner. Either the event is automatically reset, or it isn't and must be manually cleared. The "OneShot" and "Sticky" terminology is just a hold-over from Citra where the kernel had a third type of event reset type known as "Pulse". Given the Switch kernel only has two forms of event reset types, we don't need to keep the old terminology around anymore.
* core: Add missing override specifiers where applicableLioncash2019-04-043-3/+3
| | | | | | | | | 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-vmmbunnei2019-03-221-12/+4
|\ | | | | gpu: Rewrite MemoryManager based on the VMManager implementation.
| * gpu: Rewrite virtual memory manager using PageTable.bunnei2019-03-211-10/+2
| |
| * gpu: Move GPUVAddr definition to common_types.bunnei2019-03-211-2/+2
| |
* | Merge pull request #2090 from FearlessTobi/port-4599bunnei2019-03-211-5/+5
|\ \ | |/ |/| Port citra-emu/citra#4244 and citra-emu/citra#4599: Changes to BitField
| * remove all occurance of specifying endianness inside BitFieldWeiyi Wang2019-02-061-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.bunnei2019-03-151-1/+2
| |
* | gpu: Move command processing to another thread.bunnei2019-03-071-1/+1
| |
* | gpu: Refactor command and swap buffers interface for asynch.bunnei2019-03-072-13/+3
| |
* | common/math_util: Move contents into the Common namespaceLioncash2019-02-272-2/+2
| | | | | | | | | | These types are within the common library, so they should be within the Common namespace.
* | core_timing: Convert core timing into a classLioncash2019-02-161-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::TimingLioncash2019-02-121-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 TraceTobias2019-02-081-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.bunnei2018-12-151-0/+4
|
* kernel/event: Reference ReadableEvent from WritableEventZach Hilman2018-11-292-6/+4
|
* core: Port all current usages of Event to Readable/WritableEventZach Hilman2018-11-292-5/+13
|
* Merge pull request #1801 from ogniK5377/log-before-executebunnei2018-11-298-1/+43
|\ | | | | 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 NvMapDavid Marcec2018-11-261-12/+14
| |
| * Changed logging to be "Log before execution", Added more error logging, all services should now log on some levelDavid Marcec2018-11-268-1/+41
| |
* | dma_pushbuffer: Optimize to avoid loop and copy on Push.bunnei2018-11-281-8/+6
| |
* | gpu: Rewrite GPU command list processing with DmaPusher class.bunnei2018-11-271-3/+10
|/ | | | - More accurate impl., fixes Undertale (among other games).
* nvdrv: Implement/stub DumpGraphicsMemoryInfo and GetStatus.bunnei2018-11-242-2/+18
| | | | - Used by Undertale.
* nvhost_ctrl_gpu: Implement IoctlGetGpuTime.bunnei2018-11-212-0/+19
| | | | - Used by Undertale.
* Merge pull request #1478 from ogniK5377/remap-invalidhandle-remapbunnei2018-10-121-3/+10
|\ | | | | Passing an invalid nmap handle to Remap should throw an error
| * Returned an error before processing other remapsDavid Marcec2018-10-121-6/+2
| |
| * Passing an invalid nmap handle to Remap should throw an errorDavid Marcec2018-10-111-3/+14
| | | | | | | | Added error for invalid nmap handles
* | Merge pull request #1479 from ogniK5377/nmap-revampedbunnei2018-10-121-12/+60
|\ \ | | | | | | Added error codes for nvmap
| * | Made the minimum alignment more clearDavid Marcec2018-10-121-2/+3
| | |
| * | Added error codes for nvmapDavid Marcec2018-10-111-12/+59
| |/
* / nvhost_as_gpu: Flush CPU VAddr on UnmapBuffer.bunnei2018-10-111-3/+4
|/
* Unmapping an unmapped buffer should succeedDavid Marcec2018-10-081-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::"fearlessTobi2018-09-151-1/+1
|
* hle/service: Default constructors and destructors in the cpp file where applicableLioncash2018-09-1124-22/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Wick2018-09-102-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.bunnei2018-08-311-0/+1
|
* core: Make the main System class use the PImpl idiomLioncash2018-08-311-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.
* kernel: Eliminate kernel global stateLioncash2018-08-291-1/+3
| | | | | | | | | | | | | | | | | | | | | | As means to pave the way for getting rid of global state within core, This eliminates kernel global state by removing all globals. Instead this introduces a KernelCore class which acts as a kernel instance. This instance lives in the System class, which keeps its lifetime contained to the lifetime of the System class. This also forces the kernel types to actually interact with the main kernel instance itself instead of having transient kernel state placed all over several translation units, keeping everything together. It also has a nice consequence of making dependencies much more explicit. This also makes our initialization a tad bit more correct. Previously we were creating a kernel process before the actual kernel was initialized, which doesn't really make much sense. The KernelCore class itself follows the PImpl idiom, which allows keeping all the implementation details sealed away from everything else, which forces the use of the exposed API and allows us to avoid any unnecessary inclusions within the main kernel header.
* gpu: Make memory_manager privateLioncash2018-08-281-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.
* Registered missing channel devicesDavid Marcec2018-08-131-0/+4
|
* Added missing channel devicesDavid Marcec2018-08-134-0/+140
|
* Merge pull request #978 from bunnei/fixioctlbunnei2018-08-091-1/+1
|\ | | | | nvhost_gpu: Don't over copy IoctlSubmitGpfifo.
| * nvhost_gpu: Don't over copy IoctlSubmitGpfifo.bunnei2018-08-081-1/+1
| |
* | nvdrv: Get rid of global std::weak_ptrLioncash2018-08-082-7/+8
|/ | | | | Rather than use global state, we can simply pass the instance into the NVFlinger instance directly.
* nvdrv: Make Ioctl()'s definition match its prototypeLioncash2018-08-071-1/+1
| | | | | The only reason this wasn't a compilation error is because we use little-endian systems.
* nvdrv: Get rid of indirect inclusionsLioncash2018-08-0712-15/+17
|
* renderer_base: Make Rasterizer() return the rasterizer by referenceLioncash2018-08-041-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 variableLioncash2018-08-042-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.Subv2018-07-311-3/+6
|
* nvhost_ctrl_gpu: Only read the input parameters if they are actually there.Subv2018-07-311-3/+11
| | | | Passing nullptr to memcpy is undefined behavior.
* service/nvdrv: Take std::string in Open() by const referenceLioncash2018-07-252-2/+2
| | | | | | | | | 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.
* service/nvdrv: Use std::move where applicableLioncash2018-07-251-3/+5
| | | | | | | 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.
* GPU: Implement the NVGPU_IOCTL_CHANNEL_KICKOFF_PB ioctl2 command.Subv2018-07-213-6/+34
| | | | | This behaves quite similarly to the SubmitGPFIFO command. Referenced from Ryujinx. Many thanks to @gdkchan for investigating this!
* Merge pull request #717 from lioncash/explicitbunnei2018-07-203-3/+3
|\ | | | | hle/service: Make constructors explicit where applicable
| * hle/service: Make constructors explicit where applicableLioncash2018-07-193-3/+3
| | | | | | | | | | Prevents implicit construction and makes these lingering non-explicit constructors consistent with the rest of the other classes in services.
* | nvdrv: Take std::string by const reference in GetDevice()Lioncash2018-07-191-1/+1
|/ | | | | 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.
* vi: Partially implement buffer crop parameters.bunnei2018-07-182-3/+7
|
* NvOsGetConfigU32 production implDavid Marcec2018-07-101-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.bunnei2018-07-081-1/+1
|
* Update clang formatJames Rowe2018-07-036-27/+27
|
* Rename logging macro back to LOG_*James Rowe2018-07-038-50/+50
|
* GPU: Remove a surface from the cache when its backing memory is being unmapped from the GPU's MMU.Subv2018-07-011-0/+5
|
* nvmap: Return the address of the nvmap object when Freeing it for the last time.Subv2018-07-012-4/+11
| | | | This behavior is confirmed by reverse engineering.
* Build: Fixed some MSVC warnings in various parts of the code.Subv2018-06-201-1/+2
|
* nvdrv/devices/nvidia_ctrl_gpu : add IoctlCommands with their params (#524)greggameplayer2018-06-062-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)greggameplayer2018-06-041-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-nvdecbunnei2018-06-033-0/+72
|\ | | | | Services/nvdrv: add '/dev/nvhost-nvdec' device
| * Services/nvdrv: add '/dev/nvhost-nvdec' devicemailwl2018-05-303-0/+72
| |
* | nvhost_ctrl: Stub out IocCtrlEventRegister.bunnei2018-05-302-0/+10
| |
* | nvhost_ctrl: Stub out IocCtrlEventWaitAsyncCommand.bunnei2018-05-302-5/+9
|/
* NvOsGetConfigU32 should return null instead of 0 for default outputDavid Marcec2018-05-271-1/+1
|
* Merge pull request #466 from mailwl/nv-timeoutbunnei2018-05-262-0/+16
|\ | | | | Stub NVGPU_IOCTL_CHANNEL_SET_TIMEOUT
| * Stub NVGPU_IOCTL_CHANNEL_SET_TIMEOUTmailwl2018-05-242-0/+16
| | | | | | | | Used in Nintendo Labo ToyCon 1&2
* | Stubbed NVGPU_GPU_IOCTL_ZBC_SET_TABLE (#463)David2018-05-252-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 functionsgreggameplayer2018-05-231-6/+6
| | | according to the changes made previously
* correct placement and add size checkgreggameplayer2018-05-231-21/+25
|
* Add ioctl commands with their params and size checkgreggameplayer2018-05-231-2/+86
|
* Implemented NVHOST_IOCTL_CHANNEL_GET_WAITBASE (#440)David2018-05-222-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.Subv2018-05-202-1/+48
| | | | It releases a reference to an nvmap object
* GPU: Implemented nvhost-as-gpu's UnmapBuffer ioctl.Subv2018-05-202-0/+50
| | | | It removes a mapping previously created with the MapBufferEx ioctl.
* More accurate GetTPCMasks implDavid Marcec2018-05-112-4/+8
|
* general: Make formatting of logged hex values more straightforwardLioncash2018-05-026-8/+8
| | | | | | 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.Subv2018-05-012-5/+0
|
* general: Convert assertion macros over to be fmt-compatibleLioncash2018-04-271-2/+2
|
* Merge branch 'master' of https://github.com/yuzu-emu/yuzu into service-implDavid Marcec2018-04-268-65/+123
|\
| * nvdrv: Move logging macros over to new fmt-compatible onesLioncash2018-04-247-60/+61
| |
| * Merge pull request #384 from Subv/nvhost-remapbunnei2018-04-232-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.Subv2018-04-231-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.Subv2018-04-232-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.Subv2018-04-235-5/+5
| |/
* | GetIUserInterface->CreateUserInterface, Added todos and stub logs. Playreport->PlayReport.David Marcec2018-04-231-1/+1
| |
* | Implemented GetIUserInterface properly, Playreport and SSL::SetInterfaceVersion. Fixed ipc issues with IAudioDevice(wrong ids)David Marcec2018-04-221-0/+1
|/
* service: Use nested namespace specifiers where applicableLioncash2018-04-2019-102/+39
| | | | Tidies up namespace declarations
* Various fixes and clangHexagon122018-04-111-2/+2
|
* Updated nvmemp with new service names.Hexagon122018-04-101-4/+4
|
* Updated nvdrv with more service names.Hexagon122018-04-101-0/+7
|
* renderer_opengl: Fixes for properly flushing & rendering the framebuffer.bunnei2018-03-231-6/+0
|
* renderer_opengl: Better handling of framebuffer transform flags.bunnei2018-03-231-3/+1
|
* nvdisp_disp0: Always flush and invalidate framebuffer region.bunnei2018-03-231-0/+7
| | | | - Workaround for texture forwarding until we have a better place.
* video_core: Move FramebufferInfo to FramebufferConfig in GPU.bunnei2018-03-231-3/+3
|
* Clang FixesN00byKing2018-03-191-2/+2
|
* Clean Warnings (?)N00byKing2018-03-191-1/+1
|
* nvmap: Make IocFromId return the same existing handle instead of creating a new one.Subv2018-02-171-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.Subv2018-02-152-0/+25
|
* Vi: Properly write the BufferProducerFence object in the DequeueBuffer response parcel.Subv2018-02-151-0/+7
|
* Merge pull request #188 from bunnei/refactor-buffer-descriptorbunnei2018-02-151-20/+7
|\ | | | | Refactor IPC buffer descriptor interface
| * service: Remove remaining uses of BufferDescriptor*.bunnei2018-02-141-3/+2
| |
| * nvdrv: Use ReadBuffer/WriteBuffer functions for Ioctl.bunnei2018-02-141-17/+5
| |
* | nvdrv/interface: Silence formatting specifier warningsLioncash2018-02-141-1/+2
| |
* | nvmap: Silence formatting specifier warningsLioncash2018-02-141-1/+2
| |
* | nvhost_gpu: Silence formatting specifier warningsLioncash2018-02-141-6/+8
| |
* | nvhost_ctrl: Silence formatting specifier warningsLioncash2018-02-141-2/+2
| |
* | nvhost_ctrl_gpu: Silence formatting specifier warningsLioncash2018-02-141-3/+4
| |
* | nvhost_as_gpu: Silence formatting specifier warningsLioncash2018-02-141-5/+7
|/
* Merge pull request #178 from Subv/command_buffersbunnei2018-02-127-172/+18
|\ | | | | 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.Subv2018-02-127-181/+15
| | | | | | | | 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.Subv2018-02-123-3/+5
| |
| * nvdrv: Make the GPU memory manager available to nvhost-gpu.Subv2018-02-123-6/+16
| |
* | vi: Parse IGBPQueueBufferRequestParcel params and expose buffer flip vertical.bunnei2018-02-122-3/+7
|/
* nvdrv: Fix QueryEvent for libnx.bunnei2018-02-092-4/+8
|
* nvhost_ctrl_gpu: Implement ZCullGetInfo.bunnei2018-02-091-2/+14
|
* nvhost_as_gpu: Implement AllocateSpace and MapBufferEx.bunnei2018-02-082-10/+33
|
* nvdrv: Add MemoryManager class to track GPU memory.bunnei2018-02-082-0/+160
|
* nvmap: Refactor to expose nvmap objects.bunnei2018-02-082-19/+22
|
* nvhost_as_gpu: Add nvmap as a class member.bunnei2018-02-083-2/+9
|
* Extra nvdrv support (#162)David2018-02-0616-37/+761
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.bunnei2018-02-042-10/+10
|
* hle: Rename RequestBuilder to ResponseBuilder.bunnei2018-01-251-5/+5
|
* Merge pull request #131 from lioncash/enumbunnei2018-01-222-12/+13
|\ | | | | nvmap: Make IoctlCommands an enum class
| * nvmap: Add a return 0 underneath the UNIMPLEMENTED macroLioncash2018-01-211-0/+1
| | | | | | | | This macro resolves to an empty macro in release builds.
| * nvmap: Make IoctlCommands an enum classLioncash2018-01-212-12/+12
| | | | | | | | Prevents the enum values from polluting the surrounding scope
* | Added nvmemp, Added /dev/nvhost-ctrl, SetClientPID now stores pid (#114)David2018-01-217-5/+158
|/ | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Format: Run the new clang format on everythingJames Rowe2018-01-211-1/+1
|
* nvdrv: Stub SetClientPID.bunnei2018-01-192-0/+13
|
* nvdrv: stubbed Close(cmd 2)Frederic Meyer2018-01-174-0/+26
|
* UI: Fix frame rate perf statsJames Rowe2018-01-171-0/+3
| | | | Adds in a missing EndGameFrame when nvdrv swaps buffers
* NV: Implemented the nvdrv service, which uses the same interface as nvdrv:aSubv2018-01-173-14/+16
|
* NV: Move the nvdrv classes into the Nvidia namespace, and move the functionality to a s single module that services call.Subv2018-01-1711-161/+91
|
* clang-formatMerryMage2018-01-161-0/+1
|
* yuzu: Update license text to be consistent across project.bunnei2018-01-1311-11/+11
|
* core: Include <algorithm> where used.bunnei2018-01-121-0/+2
|
* nv: Fix more broken asserts.bunnei2018-01-122-3/+3
|
* nvdisp_disp0: Fix broken assert.bunnei2018-01-121-1/+1
|
* nvdisp_disp0: Call SwapBuffers to render framebuffer.bunnei2018-01-111-0/+7
|
* NV: Move the nv device nodes to their own directory and namespace.Subv2018-01-119-165/+421
|
* NV: Expose the nvdisp_disp0 device and a weak reference to the nvdrv:a service.Subv2018-01-114-170/+236
| | | | | | 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.
* NV: Implemented the nvdrv:a service and the /dev/nvmap device.Subv2018-01-114-0/+354