summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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-17Merge pull request #9087 from Morph1984/oncebunnei
general: Add missing pragma once
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-17Merge pull request #9079 from Morph1984/unknown-unkownsMorph
general: Fix spelling
2022-10-16sdl2_sink: Inline variable init into if conditionlat9nq
Co-authored-by: Mai <mathew1800@gmail.com>
2022-10-16sdl2_sink: Distinguish between capture and non-capture device nameslat9nq
The function prototype appears to care whether we are loading capture devices or not, and SDL_GetAudioDeviceName has a parameter to use it, but for some reason it isn't. This puts `capture` where it goes.
2022-10-16sdl2_sink: Check for null string when loading SDL audio deviceslat9nq
Attempting to place a null string into a vector of strings causes an error that closes the application. Don't.
2022-10-16video_core: Fix spelling of "synchronize"Morph
2022-10-16general: Fix spelling of "unknown"Morph
2022-10-15fix a tiny spelling mistakeKyle Kienapfel
Kreato pointed this out over on discord.
2022-10-14Merge pull request #9061 from liamwhite/writable-eventliamwhite
kernel: remove KWritableEvent
2022-10-14Merge pull request #9055 from liamwhite/hblliamwhite
Preliminary support for nx-hbloader
2022-10-14audio_core: Revert sink name to sdl2Narr the Reg
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
2022-10-13Merge pull request #9067 from Morph1984/tess-cwliamwhite
renderer_(opengl/vulkan): Fix tessellation clockwise parameter
2022-10-13Merge pull request #9039 from Kelebek1/auto_backendliamwhite
Auto select the SDL audio backend when Cubeb latency is too high
2022-10-13Merge pull request #9032 from liamwhite/stub-friendsliamwhite
IFriendService: stub CheckFriendListAvailability
2022-10-13Merge pull request #9065 from liamwhite/result-messMai
result: enforce reference check specialization
2022-10-13renderer_(opengl/vulkan): Fix tessellation clockwise parameterMorph
This should be assigned CW only on Triangles_CW rather than not Triangles_CCW, making CCW the default winding order rather than CW.
2022-10-13settings: Update aspect_ratio rangeMorph
Since 16:10 was added, the maximum value is now 4.
2022-10-13result: enforce reference check specializationLiam
2022-10-12kernel: remove KWritableEventLiam
2022-10-12Merge pull request #9034 from liamwhite/result-macrosbunnei
kernel: add expanded result macros
2022-10-12Merge pull request #9027 from ↵bunnei
yuzu-emu/revert-8987-another-name-for-reinforcement-steel Revert "vulkan: automatically use larger staging buffer sizes when possible"
2022-10-12Merge pull request #9040 from liamwhite/woe-thirty-twobunnei
core_timing: use high-precision sleeps on non-Windows targets
2022-10-12Merge pull request #9024 from liamwhite/async-screenshotbunnei
video_core: don't block rendering on screenshots
2022-10-12Merge pull request #9047 from german77/steam-aspectbunnei
yuzu: Add 16:10 aspect ratio
2022-10-12Merge pull request #9049 from liamwhite/monkeyhawkbunnei
syncpoint_manager: ensure handle is removable before removing
2022-10-11k_server_session: preliminary support for userspace server sessionsLiam
2022-10-11Add implementation of svcCreateSessionLiam
2022-10-11general: preliminary support for hblLiam
2022-10-10syncpoint_manager: ensure handle is removable before removingLiam
2022-10-10Fix stencil func registers, make clip control equivalent to how it was ↵Kelebek1
before, but surely wrong.
2022-10-10yuzu: Add 16:10 aspect ratioNarr the Reg
2022-10-09Merge pull request #9043 from german77/vector_dataliamwhite
input_common: have an unique vector in callback status
2022-10-09input_common: have an unique vector in callback statusgerman77
2022-10-09Choose the SDL audio backend when Cubeb reports too high of a latencyKelebek1
2022-10-09Merge pull request #8766 from Kelebek1/regsFernando S
[video_core] Update 3D registers
2022-10-08core_timing: use high-precision sleeps on non-Windows targetsLiam
2022-10-08kernel: add expanded result macrosLiam
2022-10-08fsp_srv: stub GetCacheStorageSizeLiam
2022-10-07IFriendService: stub CheckFriendListAvailabilityLiam