bunnei
25dcaf1eca
core: hle: kernel: k_process: Change Status -> State.
3 years ago
bunnei
113a5ed68f
core: hle: kernel: svc_types: Add SystemThreadPriorityHighest and ProcessState.
3 years ago
bunnei
47b8160666
core: device_memory: Templatize GetPointer(..).
3 years ago
bunnei
cb073f95dc
core: hle: result: Add GetInnerValue and Includes methods.
3 years ago
bunnei
e63a5459e3
core: hle: kernel: svc_common: Add WaitInfinite & cleanup.
3 years ago
Lioncash
6e1c6297a3
fixed_point: Mark default constructor as constexpr
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.
3 years ago
Lioncash
b6119a55f9
fixed_point: Mark copy/move assignment operators and constructors as constexpr
Given these are just moving a raw value around, these can sensibly be
made constexpr to make the interface more useful.
3 years ago
Lioncash
0cfd90004b
fixed_point: Mark std::swap and move constructor as noexcept
These shouldn't throw and can influence how some standard algorithms
will work.
3 years ago
Lioncash
2cc9d94060
fixed_point: Mark relevant member function [[nodiscard]]
Marks member functions as discard, where ignoring the return value would
be indicative of a bug or dead code.
3 years ago
Lioncash
0101ef9fb1
fixed_point: Make to_uint() non-const
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.
3 years ago
Lioncash
9393f90ccf
fixed_point: Use defaulted comparisons
Collapses all of the comparison functions down to a single line.
3 years ago
Lioncash
5000d814af
fixed_point: Use variable templates and concepts where applicable
Makes a few things a little less noisy and removes the need for SFINAE
in quite a few functions.
3 years ago
Liam
282cd3e5fe
kernel: fix slab heap ABA
3 years ago
FengChen
23b6569fc2
video_core: implement 1D copies based on VMM 'kind'
3 years ago
FengChen
99507d0188
video_core: Implement memory manager page kind
3 years ago
Morph
88ccdaf10a
fixed_point: Replace CONSTEXPR14 with constexpr
As we require the latest C++ standards to compile yuzu, checking for C++14 constexpr is not needed.
3 years ago
Morph
bffbaddb79
general: Add missing pragma once
3 years ago
Morph
ae453ab6a8
savedata_factory: Detect future save data paths
Enable compatibility for new account/device save paths planned on a future implementation.
3 years ago
FengChen
20139f8a55
Address feedback
3 years ago
lat9nq
4b773b15a6
sdl2_sink: Inline variable init into if condition
Co-authored-by: Mai <mathew1800@gmail.com>
3 years ago
lat9nq
9fe077635e
sdl2_sink: Distinguish between capture and non-capture device names
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.
3 years ago
lat9nq
5c7eef3756
sdl2_sink: Check for null string when loading SDL audio devices
Attempting to place a null string into a vector of strings causes an
error that closes the application.
Don't.
3 years ago
Morph
ddf5577799
video_core: Fix spelling of "synchronize"
3 years ago
Morph
f706b3bd24
general: Fix spelling of "unknown"
3 years ago
Kyle Kienapfel
0ba03d1b3a
fix a tiny spelling mistake
Kreato pointed this out over on discord.
3 years ago
Narr the Reg
d2170075e6
audio_core: Revert sink name to sdl2
3 years ago
Kyle Kienapfel
40af1111c2
CMake: Try add library "LZ4::lz4_shared" if "lz4::lz4" is unavailable
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
3 years ago
Morph
d3114c620d
renderer_(opengl/vulkan): Fix tessellation clockwise parameter
This should be assigned CW only on Triangles_CW rather than not Triangles_CCW, making CCW the default winding order rather than CW.
3 years ago
Morph
e2164f3417
settings: Update aspect_ratio range
Since 16:10 was added, the maximum value is now 4.
3 years ago
Liam
c0fb5e876d
result: enforce reference check specialization
3 years ago
Liam
a9ace6856d
kernel: remove KWritableEvent
3 years ago
Liam
61a8696510
k_server_session: preliminary support for userspace server sessions
3 years ago
Liam
9b34afa588
Add implementation of svcCreateSession
3 years ago
Liam
6bcd676b61
general: preliminary support for hbl
3 years ago
Liam
b1cd6cec19
syncpoint_manager: ensure handle is removable before removing
3 years ago
Kelebek1
4496030ea9
Fix stencil func registers, make clip control equivalent to how it was before, but surely wrong.
3 years ago
Narr the Reg
eb74ef474b
yuzu: Add 16:10 aspect ratio
3 years ago
german77
224a19758e
input_common: have an unique vector in callback status
3 years ago
Kelebek1
8c9e238a7b
Choose the SDL audio backend when Cubeb reports too high of a latency
3 years ago
Liam
9632434243
core_timing: use high-precision sleeps on non-Windows targets
3 years ago
Liam
47a2efee73
kernel: add expanded result macros
3 years ago
Liam
5b7c0f13d3
fsp_srv: stub GetCacheStorageSize
3 years ago
Liam
ddf64e56af
IFriendService: stub CheckFriendListAvailability
3 years ago
Liam
a5476541f2
video_core: don't block rendering on screenshots
3 years ago
Morph
1e35ade1ec
configure_graphics: Fix graphics API selection when a game is running
The graphics API setting should not be changed when a game is running.
3 years ago
Kelebek1
752659aef3
Update 3D regs
3 years ago
Liam
9574429c5f
nfp_types: silence -Wtype-limits
3 years ago
liamwhite
20cf09471a
Revert "vulkan: automatically use larger staging buffer sizes when possible"
3 years ago
Byte
df6dffa30b
vulkan_blitter: Fix pool allocation double free.
3 years ago
Liam
aedd739631
maxwell_dma: remove warnings from implemented functionality
3 years ago