aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-12-07Merge pull request #5158 from lioncash/video-fmtRodrigo Locatti
video_core: Remove unnecessary enum class casting in logging messages
2020-12-06Merge pull request #5148 from comex/xx-unused-fieldsbunnei
core: Mark unused fields as [[maybe_unused]]
2020-12-06Merge pull request #5154 from comex/xx-ipcbunnei
hle: Type check ResponseBuilder::Push arguments, and fix use in vi.cpp
2020-12-07shader_ir: std::move node within DeclareAmend()Lioncash
Same behavior, but elides an unnecessary atomic reference count increment and decrement.
2020-12-07video_core: Remove unnecessary enum class casting in logging messagesLioncash
fmt now automatically prints the numeric value of an enum class member by default, so we don't need to use casts any more. Reduces the line noise a bit.
2020-12-07Merge pull request #5147 from comex/xx-purevirtLC
nvdrv: Remove useless re-declaration of pure virtual methods that were already declared in the superclass
2020-12-07Merge pull request #5150 from comex/xx-boxcatLC
boxcat: Avoid unnecessary object copy
2020-12-07Merge pull request #5152 from comex/xx-overrideLC
renderer_vulkan: Add missing `override` specifier
2020-12-07Merge pull request #5136 from lioncash/video-shadow3LC
video_core: Resolve more variable shadowing scenarios pt.3
2020-12-06maxwell_3d: Move member variables to end of classLioncash
Follows our established coding style.
2020-12-06maxwell_3d: Resolve -Wdocumentation warningLioncash
Removes a documentation comment for a non-existent member.
2020-12-06maxwell_3d: Remove unused dirty_pointer arrayLioncash
This is unused and removing it shrinks the structure by 3584 bytes.
2020-12-06configure_motion_touch: Fix unescaped backslash in regexcomex
Since this is inside a string literal, backslashes that are part of regex syntax have to be escaped. But that's ugly, so convert to a raw string instead.
2020-12-06network, sockets: Replace `POLL_IN`, `POLL_OUT`, etc. constants with an ↵comex
`enum class PollEvents` Actually, two enum classes, since for some reason there are two separate yet identical `PollFD` types used in the codebase. I get that one is ABI-compatible with the Switch while the other is an abstract type used for the host, but why not use `WSAPOLLFD` directly for the latter? Anyway, why make this change? Because on Apple platforms, `POLL_IN`, `POLL_OUT`, etc. (with an underscore) are defined as macros in <sys/signal.h>. (This is inherited from FreeBSD.) So defining a variable with the same name causes a compile error. I could just rename the variables, but while I was at it I thought I might as well switch to an enum for stronger typing. Also, change the type used for values copied directly to/from the `events` and `revents` fields of the host *native* `pollfd`/`WSASPOLLFD`, from `u32` to `short`, as `short` is the correct canonical type on both Unix and Windows.
2020-12-06Merge pull request #5155 from comex/xx-defaultLC
Fix "explicitly defaulted but implicitly deleted" warning
2020-12-06Fix "explicitly defaulted but implicitly deleted" warningcomex
`PhysicalCore`'s move assignment operator was declared as `= default`, but was implicitly deleted because `PhysicalCore` has fields of reference type. Switch to explicitly deleting it to avoid a Clang warning. The move *constructor* is still defaulted, and is required to exist due to the use of `std::vector<PhysicalCore>`.
2020-12-06hle: Type check ResponseBuilder::Push arguments, and fix use in vi.cppcomex
- 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`.
2020-12-06CMakeLists,network: Create YUZU_UNIX macro to replace __unix__comex
__unix__ is not predefined on Apple platforms even though they are Unix.
2020-12-06renderer_vulkan: Add missing `override` specifiercomex
2020-12-06map_interval: Change field order to address uninitialized field warningcomex
Clang complains about `new_chunk`'s constructor using the then-uninitialized `first_chunk` (even though it's just to get a pointer into it).
2020-12-06core: Mark unused fields as [[maybe_unused]]comex
2020-12-06boxcat: Avoid unnecessary object copycomex
2020-12-06Merge pull request #5146 from comex/xx-numLC
video_core: Adjust `NUM` macro to avoid Clang warning
2020-12-06nvdrv: Remove useless re-declaration of pure virtual methods that were ↵comex
already declared in the superclass
2020-12-06video_core: Adjust `NUM` macro to avoid Clang warningcomex
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.
2020-12-06Merge pull request #5143 from comex/xx-users-sizeRodrigo Locatti
yuzu_cmd: Remove 'users_size'
2020-12-06Merge pull request #5141 from comex/xx-true-falseRodrigo Locatti
maxwell_dma: Rename RenderEnable::Mode::FALSE and TRUE to avoid name conflict
2020-12-06Merge pull request #5140 from FearlessTobi/port-5577bunnei
Port citra-emu/citra#5577: "Update cubeb and request a persistent stream session"
2020-12-06Merge pull request #5132 from lioncash/xbyak-abibunnei
xbyak_abi: Avoid implicit sign conversions
2020-12-06Merge pull request #5139 from lioncash/deprecated-qtbunnei
game_list_p: Resolve deprecated usage of QVariant operator<
2020-12-06hle: kernel: Process: Various style fixes based on code review feedback.bunnei
2020-12-06core: cpu_manager: Fix a typo in PreemptSingleCore, which broke many games.bunnei
- We were reload'ing the old current scheduler, which may have changed.
2020-12-06hle: kernel: Thread: Various style fixes based on code review feedback.bunnei
2020-12-06hle: kernel: KScopedSchedulerLockAndSleep: Various style fixes based on code ↵bunnei
review feedback.
2020-12-06hle: kernel: KScopedLock: Various style fixes based on code review feedback.bunnei
2020-12-06hle: kernel: KAbstractSchedulerLock: Various style fixes based on code ↵bunnei
review feedback.
2020-12-06hle: kernel: KScheduler: Various style fixes based on code review feedback.bunnei
2020-12-06hle: kernel: KPriorityQueue: Various style fixes based on code review feedback.bunnei
2020-12-06hle: kernel: KAffinityMask: Various style fixes based on code review feedback.bunnei
2020-12-06hle: kernel: GlobalSchedulerContext: Various style fixes based on code ↵bunnei
review feedback.
2020-12-06common: BitSet: Various style fixes based on code review feedback.bunnei
2020-12-06hle: kernel: Use C++ style comments in KScheduler, etc.bunnei
2020-12-06kernel: KScopedSchedulerLockAndSleep: Remove unused ctor.bunnei
2020-12-06kernel: time_manager: Add missing lock guards.bunnei
2020-12-06hle: kernel: Migrate to KScopedSchedulerLock.bunnei
2020-12-06hle: kernel: Separate KScopedSchedulerLockAndSleep from k_scheduler.bunnei
2020-12-06hle: kernel: Separate KScheduler from GlobalSchedulerContext class.bunnei
2020-12-06hle: kernel: Rewrite scheduler implementation based on Mesopshere.bunnei
2020-12-06hle: kernel: physical_core: Clear exclusive state after each run.bunnei
- This is closer to pre-multicore behavior, and works a bit better.
2020-12-06hle: kernel: Port KAbstractSchedulerLock from Mesosphere.bunnei