comex
63994da5c3
hle: Type check ResponseBuilder::Push arguments, and fix use in vi.cpp
- Add a type check so that calling Push with an invalid type produces a
compile error rather than a linker error.
- vi.cpp was calling Push with a variable of type `std::size_t`.
There's no explicit overload for `size_t`, but there is one for `u64`,
which on most platforms is the same type as `size_t`. On macOS,
however, it isn't: both types are 64 bits, but `size_t` is `unsigned
long` and `u64` is `unsigned long long`. Regardless, it makes more
sense to explicitly use `u64` here instead of `size_t`.
5 years ago
comex
3c7962df41
CMakeLists,network: Create YUZU_UNIX macro to replace __unix__
__unix__ is not predefined on Apple platforms even though they are Unix.
5 years ago
comex
2451a59949
renderer_vulkan: Add missing `override` specifier
5 years ago
comex
ef14bbc69d
map_interval: Change field order to address uninitialized field warning
Clang complains about `new_chunk`'s constructor using the
then-uninitialized `first_chunk` (even though it's just to get a pointer
into it).
5 years ago
comex
cf99d67e66
core: Mark unused fields as [[maybe_unused]]
5 years ago
comex
8e924224df
boxcat: Avoid unnecessary object copy
5 years ago
LC
03aee5c798
Merge pull request #5146 from comex/xx-num
video_core: Adjust `NUM` macro to avoid Clang warning
5 years ago
comex
e250594b6e
nvdrv: Remove useless re-declaration of pure virtual methods that were already declared in the superclass
5 years ago
comex
38f4b34610
video_core: Adjust `NUM` macro to avoid Clang warning
The previous definition was:
#define NUM(field_name) (sizeof(Maxwell3D::Regs::field_name) / sizeof(u32))
In cases where `field_name` happens to refer to an array, Clang thinks
`sizeof(an array value) / sizeof(a type)` is an instance of the idiom
where `sizeof` is used to compute an array length. So it thinks the
type in the denominator ought to be the array element type, and warns if
it isn't, assuming this is a mistake.
In reality, `NUM` is not used to get array lengths at all, so there is no
mistake. Silence the warning by applying Clang's suggested workaround
of parenthesizing the denominator.
5 years ago
Rodrigo Locatti
722001f513
Merge pull request #5143 from comex/xx-users-size
yuzu_cmd: Remove 'users_size'
5 years ago
Rodrigo Locatti
216928a60b
Merge pull request #5141 from comex/xx-true-false
maxwell_dma: Rename RenderEnable::Mode::FALSE and TRUE to avoid name conflict
5 years ago
bunnei
ee884dbd69
Merge pull request #5140 from FearlessTobi/port-5577
Port citra-emu/citra#5577 : "Update cubeb and request a persistent stream session"
5 years ago
bunnei
dbacf065f4
Merge pull request #5132 from lioncash/xbyak-abi
xbyak_abi: Avoid implicit sign conversions
5 years ago
bunnei
d6bb5cf7c7
Merge pull request #5139 from lioncash/deprecated-qt
game_list_p: Resolve deprecated usage of QVariant operator<
5 years ago
bunnei
144e143a40
hle: kernel: Process: Various style fixes based on code review feedback.
5 years ago
bunnei
cf7a66a3cc
core: cpu_manager: Fix a typo in PreemptSingleCore, which broke many games.
- We were reload'ing the old current scheduler, which may have changed.
5 years ago
bunnei
37b1919b4d
hle: kernel: Thread: Various style fixes based on code review feedback.
5 years ago
bunnei
f83f0ef61b
hle: kernel: KScopedSchedulerLockAndSleep: Various style fixes based on code review feedback.
5 years ago
bunnei
85c01ee860
hle: kernel: KScopedLock: Various style fixes based on code review feedback.
5 years ago
bunnei
e3e254b713
hle: kernel: KAbstractSchedulerLock: Various style fixes based on code review feedback.
5 years ago
bunnei
2033f0a1a3
hle: kernel: KScheduler: Various style fixes based on code review feedback.
5 years ago
bunnei
dfacfa12d3
hle: kernel: KPriorityQueue: Various style fixes based on code review feedback.
5 years ago
bunnei
266d16c350
hle: kernel: KAffinityMask: Various style fixes based on code review feedback.
5 years ago
bunnei
ddaecce2f5
hle: kernel: GlobalSchedulerContext: Various style fixes based on code review feedback.
5 years ago
bunnei
4617be5b35
common: BitSet: Various style fixes based on code review feedback.
5 years ago
bunnei
ea30e22ef1
hle: kernel: Use C++ style comments in KScheduler, etc.
5 years ago
bunnei
c3c09d9a35
kernel: KScopedSchedulerLockAndSleep: Remove unused ctor.
5 years ago
bunnei
31243d2b7a
kernel: time_manager: Add missing lock guards.
5 years ago
bunnei
de522657dd
hle: kernel: Migrate to KScopedSchedulerLock.
5 years ago
bunnei
61e017a026
hle: kernel: Separate KScopedSchedulerLockAndSleep from k_scheduler.
5 years ago
bunnei
4f16c961c9
hle: kernel: Separate KScheduler from GlobalSchedulerContext class.
5 years ago
bunnei
039844bbb9
hle: kernel: Rewrite scheduler implementation based on Mesopshere.
5 years ago
bunnei
abc079aca1
hle: kernel: physical_core: Clear exclusive state after each run.
- This is closer to pre-multicore behavior, and works a bit better.
5 years ago
bunnei
1ffab4019b
hle: kernel: Port KAbstractSchedulerLock from Mesosphere.
5 years ago
bunnei
0c9f4d749c
hle: kernel: svc: Remove reschedule on svcBreak.
- This breaks things, and is unnecessary, since emulation will be done at this point.
5 years ago
bunnei
cd66ac3af5
hle: kernel: process: Add schedule count tracking, to be used for yield impl.
5 years ago
bunnei
5f00b01a5d
hle: kernel: svc: Remove unnecessary hack in svcSleep.
5 years ago
bunnei
11e7b74858
common: Port KPriorityQueue from Mesosphere.
5 years ago
bunnei
b164f6306b
common: Port BitSet from Mesosphere.
5 years ago
bunnei
ba09b4d69d
hle: kernel: Port KAffinityMask from Mesosphere.
5 years ago
comex
20f4c9175a
maxwell_dma: Rename RenderEnable::Mode::FALSE and TRUE to avoid name conflict
On Apple platforms, FALSE and TRUE are defined as macros by
<mach/boolean.h>, which is included by various system headers.
Note that there appear to be no actual users of the names to fix up.
5 years ago
comex
278bbcb8d7
yuzu_cmd: Remove 'users_size'
Specifically:
const auto size = sdl2_config->GetInteger("System", "users_size", 0);
The variable is never used, producing a warning. I wondered if this
ought to be assigning something to in `Settings`, but nothing else in
the codebase ever mentions a setting called "users_size", so I guess
it's safe to remove...
5 years ago
Vitor Kiguchi
31a3bf1b8c
Update cubeb and request a persistent stream session
5 years ago
Lioncash
5db4785535
video_core: Resolve more variable shadowing scenarios pt.3
Cleans out the rest of the occurrences of variable shadowing and makes
any further occurrences of shadowing compiler errors.
5 years ago
Lioncash
66bb735a95
game_list_p: Resolve deprecated usage of QVariant operator<
This is designated as obsolete in Qt's docs (see:
https://doc.qt.io/qt-5/qvariant-obsolete.html#operator-lt )
5 years ago
Morph
6efd390668
applets: Resolve variable shadowing
5 years ago
Chloe
fe9823a520
Merge pull request #5133 from lioncash/video-shadow2
video_core: Resolve more variable shadowing scenarios pt.2
5 years ago
Lioncash
341083a5e1
video_core: Resolve more variable shadowing scenarios pt.2
Migrates the video core code closer to enabling variable shadowing
warnings as errors.
This primarily sorts out shadowing occurrences within the Vulkan code.
5 years ago
bunnei
32984bf3e1
Merge pull request #5124 from lioncash/video-shadow
video_core: Resolve more variable shadowing scenarios
5 years ago
bunnei
0c55e7820c
Merge pull request #5127 from FearlessTobi/port-5617
Port citra-emu/citra#5617 : "Fix telemetry-related exit crash from use-after-free"
5 years ago