summaryrefslogtreecommitdiff
path: root/src/common (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * common: BitSet: Various style fixes based on code review feedback.Gravatar bunnei2020-12-061-23/+22
| |
| * hle: kernel: Separate KScheduler from GlobalSchedulerContext class.Gravatar bunnei2020-12-062-346/+0
| |
| * common: Port BitSet from Mesosphere.Gravatar bunnei2020-12-062-0/+101
| |
* | cmake: Fix generating CMake configs and linking with BoostGravatar lat9nq2020-12-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes regression by 761206cf81b271f7f4dd6a167a120325b760dbf3, causing yuzu to not build on Linux with any version of Boost except a cached 1.73 Conan version from before about a day ago. Moves the Boost requirement out of the `REQUIRED_LIBS` psuedo-2D-array for Conan to instead be manually configured, using Conan as a fallback solution if the system does not meet our requirements. Requires any update from the linux-fresh container in order to build. **DO NOT MERGE** until someone with the MSVC toolchain can verify this works there, too.
* | common: Update CMakeList to fix build issue with Boost.Gravatar bunnei2020-12-121-2/+1
| |
* | Revert "Merge pull request #5173 from lioncash/common-fs"Gravatar Morph2020-12-112-112/+396
| | | | | | | | | | This reverts commit ce5fcb6bb2c358b0251a2ce87945bda52789a76d, reversing changes made to 6f41763061082d5fa2ab039c554427152243cb46.
* | Revert "Merge pull request #5174 from ReinUsesLisp/fs-fix"Gravatar Morph2020-12-112-36/+4
| | | | | | | | | | This reverts commit 5fe55b16a11d9ec607fb8a3fdddc77a4393cd96a, reversing changes made to e94dd7e2c4fc3f7ca2c15c01bdc301be2b8a4c1b.
* | Revert "Merge pull request #5179 from ReinUsesLisp/fs-path"Gravatar Morph2020-12-111-1/+1
| | | | | | | | | | This reverts commit 4e94d0d53af2cdb7b03ef9de23cc29f3565df97a, reversing changes made to 6d6115475b4edccdf1bb4e96ecc3d3b1be319e76.
* | Revert "Merge pull request #5181 from Morph1984/5174-review"Gravatar Morph2020-12-111-3/+9
| | | | | | | | | | This reverts commit cdb36aef9ec9d30bdef1953f9ed46776ae2f12af, reversing changes made to 5e9b77129f2cf8c039a8d98033cae4ac0f93f515.
* | common/file_util: Simplify the behavior of CreateFullPathGravatar Morph2020-12-091-9/+3
| |
* | common/file_util: Let std::filesystem cast from UTF16 to std::stringGravatar ReinUsesLisp2020-12-091-1/+1
| | | | | | | | Fix invalid encoding paths when iterating over a directory on Windows.
* | common/file_util: Fix and deprecate CreateFullPath, add CreateDirsGravatar ReinUsesLisp2020-12-092-4/+31
| | | | | | | | | | | | | | | | Fix CreateFullPath to have its intended previous behavior (whatever that was), and deprecate it in favor of the new CreateDirs function. Unlike CreateDir, CreateDirs is marked as [[nodiscard]] to avoid new code ignoring its result value.
* | common/file_util: Succeed on CreateDir when the directory existsGravatar ReinUsesLisp2020-12-091-0/+5
| |
* | file_util: Migrate remaining file handling functions over to std::filesystemGravatar Lioncash2020-12-092-340/+100
| | | | | | | | | | | | | | Converts creation and deletion functions over to std::filesystem, simplifying our file-handling code. Notably with this, CopyDir will now function on Windows.
* | file_util: Migrate Exists() and IsDirectory() over to std::filesystemGravatar Lioncash2020-12-082-57/+13
| | | | | | | | Greatly simplifies our file-handling code for these functions.
* | Merge pull request #5136 from lioncash/video-shadow3Gravatar LC2020-12-072-3/+3
|\ \ | | | | | | video_core: Resolve more variable shadowing scenarios pt.3
| * | video_core: Resolve more variable shadowing scenarios pt.3Gravatar Lioncash2020-12-052-3/+3
| |/ | | | | | | | | Cleans out the rest of the occurrences of variable shadowing and makes any further occurrences of shadowing compiler errors.
* | xbyak_abi: Shorten std::size_t to size_tGravatar Lioncash2020-12-051-8/+8
| | | | | | | | Makes for less reading.
* | xbyak_abi: Avoid implicit sign conversionsGravatar Lioncash2020-12-051-2/+2
|/
* Merge pull request #4996 from bunnei/use-4jitsGravatar bunnei2020-12-032-115/+11
|\ | | | | Kernel: Refactor to use 4-instances of Dynarmic & various cleanups and improvements
| * common: fiber: Use VirtualBuffer for stack memory.Gravatar bunnei2020-11-291-2/+5
| | | | | | | | - This will be aligned by default, and helps memory usage.
| * common: fiber: Use boost::context instead of native fibers on Windows.Gravatar bunnei2020-11-292-115/+8
| |
* | Merge pull request #5000 from lioncash/audio-errorGravatar bunnei2020-12-024-10/+11
|\ \ | | | | | | audio_core: Make shadowing and unused parameters errors
| * | audio_core: Make shadowing and unused parameters errorsGravatar Lioncash2020-12-034-10/+11
| |/ | | | | | | Moves the audio code closer to enabling warnings as errors in general.
* / common: Add Common::DivCeil and Common::DivCeilLog2Gravatar ReinUsesLisp2020-11-252-0/+27
|/ | | | Add an equivalent to 'Common::AlignUp(n, d) / d' and a log2 alternative.
* Merge pull request #4451 from slashiee/extended-loggingGravatar bunnei2020-11-231-2/+12
|\ | | | | logging/settings: Increase maximum log size to 100 MB and add extended logging option
| * logging/settings: Increase maximum log size to 100 MB and add extended ↵Gravatar M&M2020-08-241-2/+12
| | | | | | | | | | | | | | logging option The extended logging option is automatically disabled on boot but can be enabled afterwards, allowing the log file to go up to 1 GB during that session. This commit also fixes a few errors that are present in the general debug menu.
* | Merge pull request #4951 from bunnei/olsc-stubGravatar bunnei2020-11-202-0/+2
|\ \ | | | | | | hle: service: Stub OLSC Initialize and SetSaveDataBackupSettingEnabled functions.
| * | hle: service: Stub OLSC Initialize and SetSaveDataBackupSettingEnabled ↵Gravatar bunnei2020-11-192-0/+2
| | | | | | | | | | | | | | | | | | functions. - Used by Animal Cross: New Horizons v1.6.0 update, minimal stub gets this update working.
* | | common/bit_cast: Add function matching std::bit_cast without constexprGravatar ReinUsesLisp2020-11-202-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | Add a std::bit_cast-like function archiving the same runtime results as the standard function, without compile time support. This allows us to use bit_cast while we wait for compiler support, it can be trivially replaced in the future.
* | | virtual_buffer: Do nothing on resize() calls with same sizesGravatar Lioncash2020-11-191-1/+6
|/ / | | | | | | | | Prevents us from churning memory by freeing and reallocating a memory block that would have already been adequate as is.
* | virtual_buffer: Add compile-time type-safety guarantees with VirtualBufferGravatar Lioncash2020-11-171-0/+6
| | | | | | | | | | | | | | | | | | VirtualBuffer makes use of VirtualAlloc (on Windows) and mmap() (on other platforms). Neither of these ensure that non-trivial objects are properly constructed in the allocated memory. To prevent potential undefined behavior occurring due to that, we can add a static assert to loudly complain about cases where that is done.
* | page_table: Allow page tables to be movedGravatar Lioncash2020-11-174-9/+30
| | | | | | | | | | | | | | | | Makes page tables and virtual buffers able to be moved, but not copied, making the interface more flexible. Previously, with the destructor specified, but no move assignment or constructor specified, they wouldn't be implicitly generated.
* | page_table: Add missing doxygen parameters to Resize()Gravatar Lioncash2020-11-171-0/+2
| | | | | | | | Resolves two -Wdocumentation warnings.
* | page_table: Remove unnecessary header inclusionsGravatar Lioncash2020-11-171-4/+0
| | | | | | | | Prevents indirect inclusions for these headers.
* | common/fiber: Move all member variables into impl classGravatar Lioncash2020-11-062-89/+86
| | | | | | | | | | | | Hides all of the implementation details for users of the class. This has the benefit of reducing includes and also making the fiber classes movable again.
* | General: Fix clang buildGravatar Lioncash2020-11-052-2/+10
| | | | | | | | Allows building on clang to work again
* | common: Enable warnings as errorsGravatar Lioncash2020-11-029-31/+49
| | | | | | | | Cleans up common so that we can enable warnings as errors.
* | Merge pull request #4868 from lioncash/discard-errorGravatar bunnei2020-10-302-5/+12
|\ \ | | | | | | General: Make ignoring a discarded return value an error
| * | General: Make ignoring a discarded return value an errorGravatar Lioncash2020-10-302-5/+12
| | | | | | | | | | | | | | | | | | | | | Allows our CI to catch more potential bugs. This also removes the [[nodiscard]] attribute of IOFile's Open member function. There are cases where a file may want to be opened, but have the status of it checked at a later time.
* | | common/stream: Be explicit with copy and move operatorsGravatar Lioncash2020-10-291-3/+9
|/ /
* | common/fiber: Take shared_ptr<Fiber> by copy in YieldToGravatar ReinUsesLisp2020-10-282-3/+3
| | | | | | | | | | YieldTo does not intend to modify the passed shared_ptrs. Pass it by copy to keep a reference count while this function executes.
* | video_core: NVDEC ImplementationGravatar ameerj2020-10-263-0/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | core: Fix clang build pt.3Gravatar Lioncash2020-10-211-2/+2
| | | | | | | | Should finally resolve building with clang.
* | Revert "core: Fix clang build"Gravatar bunnei2020-10-207-22/+13
| |
* | Merge pull request #4796 from lioncash/clangGravatar LC2020-10-207-13/+22
|\ \ | | | | | | core: Fix clang build
| * | core: Fix clang buildGravatar Lioncash2020-10-177-13/+22
| | | | | | | | | | | | | | | | | | | | | Recent changes to the build system that made more warnings be flagged as errors caused building via clang to break. Fixes #4795
* | | input_common/CMakeLists: Make some warnings errorsGravatar Lioncash2020-10-152-11/+68
|/ / | | | | | | | | Makes the input_common code warnings consistent with the rest of the codebase.
* | core/CMakeLists: Make some warnings errorsGravatar Lioncash2020-10-131-5/+5
| | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #4731 from lat9nq/mingw-zstd-fixGravatar bunnei2020-10-071-1/+6
|\ \ | | | | | | common: Use system zstd on Linux