summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2020-10-29common/stream: Be explicit with copy and move operatorsLioncash
2020-10-29vp9: Be explicit with copy and move operatorsLioncash
It's deprecated in the language to autogenerate these if the destructor for a type is specified, so we can explicitly specify how we want these to be generated.
2020-10-29vp9: Mark functions with [[nodiscard]] where applicableLioncash
Prevents values from mistakenly being discarded in cases where it's a bug to do so.
2020-10-29vp9: Provide a default initializer for "hidden" memberLioncash
The API of VP9 exposes a WasFrameHidden() function which accesses this member. Given the constructor previously didn't initialize this member, it's a potential vector for an uninitialized read. Instead, we can initialize this to a deterministic value to prevent that from occurring.
2020-10-29vp9: Make some member functions internally linkedLioncash
These helper functions don't directly modify any member state and can be hidden from view.
2020-10-29Merge pull request #4837 from lioncash/nvdec-2bunnei
nvdec: Minor tidying up
2020-10-29Merge pull request #4781 from german77/GChotplugbunnei
Add hotplug, rumble and fix 3rd party adapters for the GC adapter
2020-10-29kernel/process: Add missing <ctime> includeMorph
Fixes compilation on MSVC
2020-10-29Merge pull request #4857 from liushuyu/masterLC
web_service: follow-up fix to #4842
2020-10-28Merge pull request #4835 from lat9nq/rng-default-timebunnei
kernel: Use the current time as the default RNG seed
2020-10-28Merge pull request #4838 from lioncash/syncmgrbunnei
sync_manager: Amend parameter order of calls to SyncptIncr constructor
2020-10-28web_service: follow-up fix to #4842 ...liushuyu
* The web_service http request is now fixed on Windows (R) platform. * The issue is due to a complicated race-condition in `httplib`, a detailed explanation is available at https://github.com/yhirose/cpp-httplib/pull/701 * A pending Pull Request on `httplib` has been applied to remedy the said race-condition. * The socket availability check is removed due to a behavioral chice of `httplib` that a socket will not be created before any actual request is sent.
2020-10-28Add hotplug, rumble and fix 3rd party adapters for the GC adaptergerman
2020-10-28web_service: web_backend: Handle socket errors with GenericRequest.bunnei
- Fixes a shutdown crash when we try to submit telemetry if there is a service issue.
2020-10-28video_core: cdma_pusher: Add missing LOG_DEBUG field in ExecuteCommand.bunnei
2020-10-28Merge pull request #4846 from lioncash/service-fnbunnei
service: Update function tables
2020-10-28Merge pull request #4851 from ReinUsesLisp/core-threads-raceLC
hle/kernel: Remove unused registered_core_threads to fix data races
2020-10-28Merge pull request #4850 from ReinUsesLisp/fiber-ptr-refLC
common/fiber: Take shared_ptr<Fiber> by copy in YieldTo
2020-10-28Merge pull request #4849 from ReinUsesLisp/fix-fiber-testLC
tests: Fix data race in fibers test
2020-10-28Merge pull request #4848 from ReinUsesLisp/type-limitsLC
video_core: Enforce -Werror=type-limits
2020-10-28video_core: Enforce -Wredundant-move and -Wpessimizing-moveReinUsesLisp
Silence three warnings and make them errors to avoid introducing more in the future.
2020-10-28video_core: Enforce -Werror=type-limitsReinUsesLisp
Silences one warning and avoids introducing more in the future.
2020-10-28common/fiber: Take shared_ptr<Fiber> by copy in YieldToReinUsesLisp
YieldTo does not intend to modify the passed shared_ptrs. Pass it by copy to keep a reference count while this function executes.
2020-10-28tests: Fix data race in fibers testReinUsesLisp
Previous to this commit, the tests were using operator[] from unordered_map to query elements but this silently inserts empty elements when they don't exist. If all threads were executed without concurrency, this wouldn't be an issue, but the same unordered_map could be written from two threads at the same time. This is a data race and makes some previously inserted elements invisible for a short period of time, causing them to insert and return an empty element. This default constructed element (a zero) was used to index an array of fibers that asserted when one of them was nullptr, shutting the test session off. To address this issue, lock on thread id reads and writes. This could be a shared mutex to allow concurrent reads, but the definition of std::this_thread::get_id is fuzzy when using non-standard techniques like fibers. I opted to use a standard mutex. While we are at it, fix the included headers.
2020-10-27service: Update function tablesLioncash
Updates function tables according to info on SwitchBrew.
2020-10-27web_backend: fix a regression introduced in 39c8d18liushuyu
* A regression was in 39c8d18 and token verification function was broken. * The reason being `httplib` now requires OpenSSL 1.1+ API while LibreSSL 2.x provided OpenSSL 1.0 compatible API. * The bundled LibreSSL has been updated to 3.2.2 so it now provides OpenSSL 1.1 compatible API now. * Also the path hint has been added so that it will find the correct path to the CA certs on *nix systems. * An option is provided so that *nix system distributions/providers can use their own SSL implementations when compiling Yuzu/Citra to (hopefully) complies with their maintenance guidelines. * LURLParse is also removed since `httplib` can handle `scheme:host:port` string itself now.
2020-10-27sync_manager: Amend parameter order of calls to SyncptIncr constructorLioncash
Corrects some cases where the arguments would be incorrectly swapped.
2020-10-27h264: Make WriteUe take a u32Lioncash
Enforces the type of the desired value in calling code.
2020-10-27vp9: std::move buffer within ComposeFrameHeader()Lioncash
We can move the buffer here to avoid a heap reallocation
2020-10-27vp9: Remove dead codeLioncash
2020-10-27vp9: Join declarations with assignmentsLioncash
2020-10-27vp9: Remove pessimizing movesLioncash
The move will already occur without std::move.
2020-10-27vp9: Resolve variable shadowingLioncash
2020-10-27nvdec: Tidy up header includesLioncash
Prevents a few unnecessary inclusions.
2020-10-26yuzu: settings: Enable multicore, asynch GPU, and assembly shaders by default.bunnei
- In general, this is now the preferred settings for most games. # Conflicts: # src/yuzu/configuration/config.cpp
2020-10-26Merge pull request #4729 from ameerj/nvdec-prodbunnei
video_core: NVDEC Implementation
2020-10-27hle/kernel: Remove unused registered_core_threads to fix data racesReinUsesLisp
This member was only used on asserts and it triggered data races. Remove it to fix them.
2020-10-26Merge pull request #4832 from bunnei/cpu-manager-microprofile-fixbunnei
core: cpu_manager: Add missing call to MicroProfileOnThreadExit().
2020-10-26Merge pull request #4833 from bunnei/timezonemanager-explicitbunnei
hle: services: TimeZoneContentManager: This can be made explicit.
2020-10-26video_core: NVDEC Implementationameerj
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>
2020-10-26Merge pull request #4834 from lioncash/copy-fnbunnei
controller: Pass ControllerParameters by reference in ReconfigureControllers()
2020-10-26kernel: Use the current time as the default RNG seedlat9nq
Use the current time, not zero, as the default RNG seed.
2020-10-26controller: Pass ControllerParameters by reference in ReconfigureControllers()Lioncash
Prevents unnecessary copies and heap reallocations from occurring.
2020-10-26hle: services: TimeZoneContentManager: This can be made explicit.bunnei
2020-10-26core: cpu_manager: Add missing call to MicroProfileOnThreadExit().bunnei
- Fixes an occasional crash when trying to launch subsequent games.
2020-10-25Merge pull request #4827 from lioncash/truncRodrigo Locatti
controller: Convert led_patterns integer literals to bool literals
2020-10-25Merge pull request #4828 from lioncash/lockguardRodrigo Locatti
general: Use template deduction guides for lock_guard
2020-10-25general: Use template deduction guides for lock_guardLioncash
Same behavior, less code.
2020-10-25controller: Convert led_patterns integer literals to bool literalsLioncash
'bool' isn't always guaranteed to be the same size as an int, so this can technically cause truncation warnings if we support other platforms.
2020-10-25applets/profile_select: Resolve a warning in exec()Morph
Resolves a warning where not all control paths return a value.