bunnei
f8b764dbf2
fixup! hle service: nvdrv: nvhost_gpu: Update to use SyncpointManager and other improvements.
5 years ago
bunnei
0e90fce8d4
core: Initialize GPU before services.
5 years ago
bunnei
57f20d0d70
hle service: nvdrv: nvhost_gpu: Update to use SyncpointManager and other improvements.
- Refactor so that SubmitGPFIFO and KickoffPB use shared functionality.
- Implement add_wait and add_increment flags.
5 years ago
bunnei
d787a5bfde
service: hle: nvflinger: Fix potential shutdown crash when GPU is destroyed.
5 years ago
bunnei
617372b751
hle service: nvdrv: nvhost_ctrl: Update to use SyncpointManager.
5 years ago
bunnei
df095c8963
hle service: nvdrv: Update to instantiate SyncpointManager.
5 years ago
bunnei
317c2ac884
hle: service: nvdrv: Implement SyncpointManager, to manage syncpoints.
5 years ago
Levi Behunin
381586d56c
Rename to align with switchbrew and remove gpu function ( #4714 )
* Rename to align with switchbrew
* Rename to align with switchbrew and remove gpu function that checks if clearing should be done.
5 years ago
bunnei
4c09a6399c
hle: service: ldr: Implement UnloadNrr.
- Used by Final Fantasy X/X-2 HD Remaster.
5 years ago
Jan Beich
c751be210e
video_core: unbreak -Werror in NVDEC with Clang
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)};
^
5 years ago
Lioncash
3e654ff0d0
General: Resolve a few missing initializer warnings
Resolves a few -Wmissing-initializer warnings.
5 years ago
Morph
fc09a13d34
kernel/process: Add missing <ctime> include
Fixes compilation on MSVC
5 years ago
Lioncash
0368d43dff
service: Update function tables
Updates function tables according to info on SwitchBrew.
5 years ago
ReinUsesLisp
1a1ca86eb5
hle/kernel: Remove unused registered_core_threads to fix data races
This member was only used on asserts and it triggered data races.
Remove it to fix them.
5 years ago
ameerj
9ef5c53e52
video_core: NVDEC Implementation
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>
5 years ago
lat9nq
2974d72a2a
kernel: Use the current time as the default RNG seed
Use the current time, not zero, as the default RNG seed.
5 years ago
Lioncash
c3f019b9eb
controller: Pass ControllerParameters by reference in ReconfigureControllers()
Prevents unnecessary copies and heap reallocations from occurring.
5 years ago
bunnei
379ef37035
hle: services: TimeZoneContentManager: This can be made explicit.
5 years ago
bunnei
321fbec267
core: cpu_manager: Add missing call to MicroProfileOnThreadExit().
- Fixes an occasional crash when trying to launch subsequent games.
5 years ago
Lioncash
59a56fa810
general: Use template deduction guides for lock_guard
Same behavior, less code.
5 years ago
Lioncash
c7b6027f34
core: Fix clang build pt.3
Should finally resolve building with clang.
5 years ago
Lioncash
2d48020ca5
core: Fix clang build pt.2
Resolves the clang build issue in a more unintrusive way.
5 years ago
bunnei
deb3536936
Revert "core: Fix clang build"
5 years ago
Lioncash
1367e8fb75
kernel: Fix build with recent compiler flag changes
This slipped through the cracks due to another change being merged
before the compiler flag changes.
5 years ago
David Marcec
b54f39b1d4
Added remaining params
5 years ago
David Marcec
83cb5a2c74
nifm: GetAppletInfo stub
Fixes crash for Catherine Full Body
6 years ago
Lioncash
a1b5ea953f
core: Add boxcat sources with target_sources
Same behavior, minus a script variable.
5 years ago
Lioncash
18636013c9
core: Fix clang build
Recent changes to the build system that made more warnings be flagged as
errors caused building via clang to break.
Fixes #4795
5 years ago
Lioncash
ab33132ccb
mii/manager: Make use of unused lower bound in GetRandomValue()
Previously, the lower bound wasn't being used and zero was being used as
the lower bound every time this function was called.
This affects the outcome of some of the randomized entries a little bit,
for example, the lower-bound for beard and mustache flags was supposed
to be 1, not 0.
Aside from these cases, the bug didn't affect anything else.
5 years ago
bunnei
bf6d4d3052
service: bcat: Check client connection before interacting with socket.
- Fixes a crash when BCAT service is offline.
5 years ago
bunnei
de8829370d
service: acc: Stub IManagerForApplication::StoreOpenContext.
- Used by Super Mario 3D All-Stars.
5 years ago
bunnei
cab012dd01
hle: service: vi: Implement BufferQueue::CancelBuffer.
- This is used by Super Mario 3D All-Stars.
5 years ago
ReinUsesLisp
a13623c68b
kernel: Implement host thread register methods without locking
Locks on GetCurrentHostThreadID were causing performance issues
according to Visual Studio's profiler. It was consuming twice the time
as arm_interface.Run(). The cost was not in the function itself but in
the lockinig it required.
Reimplement these functions using atomics and static storage instead of
an unordered_map. This is a side effect to avoid locking and using linked
lists for reads.
Replace unordered_map with a linear search.
5 years ago
Lioncash
16de0a6a96
core/CMakeLists: Make some warnings errors
Makes our error coverage a little more consistent across the board by
applying it to Linux side of things as well. This also makes it more
consistent with the warning settings in other libraries in the project.
This also updates httplib to 0.7.9, as there are several warning
cleanups made that allow us to enable several warnings as errors.
5 years ago
Morph
585838ca42
filesystem: Fix CreateDirectory and DeleteFile
Add a check if dir is nullptr (does not exist)
Fixes save game creation in Hades
5 years ago
bunnei
3fb8109c94
service: time: Update current time with changes to RTC setting.
- This can be used to advance time, e.g. for Pokemon Sword/Shield pokejobs.
5 years ago
bunnei
649a262f4e
hle: service: nvdrv: Implement nvhost_as_gpu::FreeSpace.
- This is used by Super Mario 3D All-Stars.
5 years ago
german
3fa9068948
Only use inputs corresponding to controller type
5 years ago
german
450a3c0f42
Stubbed EnableSixAxisSensorFusion
5 years ago
Morph
ba883c8c84
caps_c: Stub SetShimLibraryVersion
- Used by caps_su SetShimLibraryVersion
5 years ago
Morph
e1d561f647
caps_u: Stub SetShimLibraryVersion
- Used in Super Smash Bros. Ultimate
5 years ago
Morph
a03d4d663c
caps_su: Properly stub SetShimLibraryVersion
5 years ago
Morph
f3e928bb6a
hid: Stub HomeButtonInputProtection service commands
- Used in 1-2 Switch. Given that we do not emulate the functionality of the home button yet, we can stub this for now.
5 years ago
german
782aab6cf2
First implementation of controller rumble
6 years ago
Lioncash
dba567cfbf
core: Mark GetInstance() as deprecated
This way it's obvious that this function shouldn't be used in any future
code.
5 years ago
Lioncash
9861290969
frontend/controller: Eliminate dependency on the global system instance
5 years ago
Lioncash
711c5c7bdf
service: Restore "unused" function
Turns out this function is actually used, but within a trace log.
5 years ago
Morph
58f0798f1f
submission_package: Fix updates integrated into cartridge images.
5 years ago
german
c3fb504201
Use different timing for motion
5 years ago
Lioncash
3abd28c35a
memory: Resolve a -Wdocumentation warning
memory doesn't exist as a parameter any more.
5 years ago