summaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2022-12-06Merge pull request #9370 from liamwhite/break-unmappedmerry
core: add option to break on unmapped access
2022-12-05Merge pull request #6833 from abouvier/unbundleliamwhite
cmake: prefer system libraries
2022-12-04Merge pull request #9273 from ameerj/per-game-profileliamwhite
Configuration: Add per-game input profiles
2022-12-04cmake: prefer system librariesAlexandre Bouvier
2022-12-03Merge pull request #9344 from liamwhite/nullbunnei
video_core: add null backend
2022-12-03Merge pull request #9300 from ameerj/pchliamwhite
CMake: Use precompiled headers to improve compile times
2022-12-03Merge pull request #9289 from liamwhite/fruit-companyliamwhite
general: fix compile for Apple Clang
2022-12-02core: add option to break on unmapped accessLiam
2022-11-30CMake: Consolidate common PCH headersameerj
2022-11-30string_util: Fix Mingw compile errorameerj
Co-Authored-By: liamwhite <9658600+liamwhite@users.noreply.github.com>
2022-11-29CMake: Use precompiled headersameerj
2022-11-28video_core: add null backendLiam
2022-11-28Merge pull request #9339 from lioncash/cacheheaderMorph
common/cache_management: Amend header includes
2022-11-28common/cache_management: Amend header includesLioncash
Narrows the include in the header to <cstddef>, since that's what houses size_t's definition, meanwhile the <cstdint> include can be moved into the cpp file.
2022-11-28common/input: Add helpers functions for creating input and output devicesLioncash
Avoids the redundancy of needing to explictly specify the common namespace and the type.
2022-11-28common/input: Pass ParamPackage by const reference in CreateDeviceLioncash
This was previously being passed by value, which was unnecessary and created more allocations than necessary.
2022-11-27Merge pull request #9276 from goldenx86/fsrSliderbunnei
FSR Sharpening Slider
2022-11-26OopsMatías Locatti
2022-11-26Replace GLSL as the default OpenGL shader backendMatías Locatti
GLASM is not very compatible with the latest games, and too many people have the special superpower to break their Vulkan support.
2022-11-25settings: Reset FSR sharpening global state with the otherslat9nq
2022-11-24FSR Sharpening Slider part 1 - only a global sliderMatías Locatti
2022-11-22general: fix compile for Apple ClangLiam
2022-11-20Configuration: Add per-game input profilesameerj
2022-11-18Merge pull request #9234 from liamwhite/data-cash-moneybunnei
kernel: implement data cache management operations
2022-11-17Merge pull request #9229 from Docteh/achy_breaky_heartMorph
Add break for default cases
2022-11-13Add break for default casesKyle Kienapfel
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
2022-11-12common: add cache management functionsLiam
2022-11-11Add CPU core count to log filesMatías Locatti
2022-11-10Merge pull request #9198 from liamwhite/arm64bunnei
Initial ARM64 support
2022-11-09Initial ARM64 supportLiam
2022-11-09Add break statement in default casesEnrico Mancuso
According to the contributing page (https://github.com/yuzu-emu/yuzu/wiki/Contributing) the default cases should have a break statement default: // Yes, even break for the last case break;
2022-10-26concepts: Use the std::contiguous_iterator conceptMorph
This also covers std::span, which does not have a const iterator. Also renames IsSTLContainer to IsContiguousContainer to explicitly convey its semantics.
2022-10-25Merge pull request #9107 from german77/gidoly_rulesliamwhite
input_common: cache vibration tests
2022-10-22CMakeLists: Disable C4100 and C4324Morph
Disabling C4100 is similar to -Wno-unused-parameter
2022-10-22CMakeLists: Remove redundant warningsMorph
These warnings are already included in /W3.
2022-10-22CMakeLists: Treat MSVC warnings as errorsMorph
2022-10-22general: Enforce C4800 everywhere except in video_coreMorph
2022-10-22CMakeLists: Remove all redundant warningsMorph
These are already explicitly or implicitly set in src/CMakeLists.txt
2022-10-21input_common: cache vibration testsgerman77
2022-10-18fixed_point: Mark default constructor as constexprLioncash
Ensures that a fixed-point value is always initialized This likely also fixes several cases of uninitialized values being operated on, since we have multiple areas in the codebase where the default constructor is being used like: Common::FixedPoint<50, 14> current_sample{}; and is then followed up with an arithmetic operation like += or something else, which operates directly on FixedPoint's internal data member, which would previously be uninitialized.
2022-10-18fixed_point: Mark copy/move assignment operators and constructors as constexprLioncash
Given these are just moving a raw value around, these can sensibly be made constexpr to make the interface more useful.
2022-10-18fixed_point: Mark std::swap and move constructor as noexceptLioncash
These shouldn't throw and can influence how some standard algorithms will work.
2022-10-18fixed_point: Mark relevant member function [[nodiscard]]Lioncash
Marks member functions as discard, where ignoring the return value would be indicative of a bug or dead code.
2022-10-18fixed_point: Make to_uint() non-constLioncash
This calls round_up(), which is a non-const member function, so if a fixed-point instantiation ever calls to_uint(), it'll result in a compiler error. This allows the member function to work. While we're at it, we can actually mark to_long_floor() as const, since it's not modifying any member state.
2022-10-18fixed_point: Use defaulted comparisonsLioncash
Collapses all of the comparison functions down to a single line.
2022-10-18fixed_point: Use variable templates and concepts where applicableLioncash
Makes a few things a little less noisy and removes the need for SFINAE in quite a few functions.
2022-10-17Merge pull request #9054 from Docteh/just_lz4bunnei
CMake: Try add_library "lz4" if "lz4::lz4" is unavailable
2022-10-17fixed_point: Replace CONSTEXPR14 with constexprMorph
As we require the latest C++ standards to compile yuzu, checking for C++14 constexpr is not needed.
2022-10-17general: Add missing pragma onceMorph
2022-10-13CMake: Try add library "LZ4::lz4_shared" if "lz4::lz4" is unavailableKyle Kienapfel
Right now this looks like a distro specific problem, but we'll have to see. Over on Gentoo: with lz4 1.9.3 there is a lz4::lz4 library target, with 1.9.4 it's no longer mentioned in the cmake files provided by the package. (/usr/lib64/cmake/lz4) arch and openSUSE have lz4 1.9.4 available so I checked there, they only have .pc files for pkg-config, so asking for "lz4::lz4" works as usual MSVC does require "lz4::lz4" to be asked for