aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-08-27Fix orientation errors and improve drift correctiongerman
2020-08-27Address commentsgerman
2020-08-27Implement a basic class for motion devicesgerman
2020-08-27input_common: Eliminate most global stateLioncash
Abstracts most of the input mechanisms under an InputSubsystem class that is managed by the frontends, eliminating any static constructors and destructors. This gets rid of global accessor functions and also allows the frontends to have a more fine-grained control over the lifecycle of the input subsystem. This also makes it explicit which interfaces rely on the input subsystem instead of making it opaque in the interface functions. All that remains to migrate over is the factories, which can be done in a separate change.
2020-08-27Merge pull request #4530 from Morph1984/mjolnir-p1bunnei
Project Mjölnir: Part 1 - Input Rewrite
2020-08-27Merge pull request #4577 from lioncash/assertsbunnei
common/assert: Make use of C++ attribute syntax
2020-08-27Merge pull request #4524 from lioncash/memory-logbunnei
shader/memory: Amend UNIMPLEMENTED_IF_MSG without a message
2020-08-26Merge pull request #4569 from ReinUsesLisp/glsl-cmakebunnei
video_core/host_shaders: Add CMake integration for string shaders
2020-08-26input_common/main: Add "/Mouse" to the display nameMorph
2020-08-26Merge pull request #4555 from ReinUsesLisp/fix-primitive-topologybunnei
vk_state_tracker: Fix primitive topology
2020-08-27Merge pull request #4593 from lioncash/const2Rodrigo Locatti
memory_manager: Make operator+ const qualified
2020-08-26memory_manager: Make use of [[nodiscard]] in the interfaceLioncash
2020-08-26memory_manager: Make operator+ const qualifiedLioncash
This doesn't modify member state, so it can be marked as const.
2020-08-26externals: Track upstream libusbLioncash
We can place the external in an inner folder and manage the custom files necessary to integrate it with CMake directly. This allows us to directly change how we use it with our build system, as opposed to needing to change a fork.
2020-08-26configure_input_player: Fix modifier scale button mappingMorph
2020-08-26configuration/input: Add support for mouse button clicksMorph
Supports the Left, Right, Middle, Backward and Forward mouse buttons.
2020-08-26controllers/npad: Fix inconsistencies with controller connection statusesMorph
2020-08-26controllers/npad: Fix LibNX controller connection statusesMorph
This allows homebrew applications to be able to properly detect connected controllers.
2020-08-26controllers/npad: Fix LedPattern for P1-4Morph
2020-08-26input_common: Fix directional deadzone valuesMorph
The hardware tested value is 0.5 which translates to SHRT_MAX / 2
2020-08-26Address feedbackMorph
2020-08-26qt_themes: Fix Midnight Blue themeMorph
Co-authored-by: Its-Rei <kupfel@gmail.com>
2020-08-26Project Mjölnir: Part 1Morph
Co-authored-by: James Rowe <jroweboy@gmail.com> Co-authored-by: Its-Rei <kupfel@gmail.com>
2020-08-25gc_poller: Resolve compilation warnings on MSVCLioncash
We just need to make our intentional implicit truncations explicit.
2020-08-26hle/scheduler: Fix data race in is_context_switch_pendingReinUsesLisp
As reported by tsan, SelectThreads could write to is_context_switch_pending holding a mutex while SwitchToCurrent reads it without holding any. It is assumed that the author didn't want an atomic here, so the code is reordered so that whenever is_context_switch_pending is read inside SwitchToContext, the mutex is locked.
2020-08-26hle/kernel: Fix data race in GetCurrentHostThreadIDReinUsesLisp
As reported by tsan, host_thread_ids could be read while any of the RegisterHostThread variants were called. To fix this, lock the register mutex when yuzu is running in multicore mode and GetCurrentHostThreadID is called.
2020-08-26common/thread: Fix data race in is_setReinUsesLisp
As report by tsan, Event::Set can write is_set while WaitFor and friends are reading from it. To address this issue, make is_set an atomic.
2020-08-26externals/microprofile: Fix data race in g_bUseLockReinUsesLisp
As reported by tsan, g_bUseLock had a data race. Fix this using an atomic boolean.
2020-08-26cpu_interrupt_handler: Misc style changesReinUsesLisp
2020-08-26cpu_interrupt_handler: Make is_interrupted an atomicReinUsesLisp
Fixes a race condition detected from tsan
2020-08-25externals: Untrack non-upstream variant of libusbLioncash
We shouldn't be tracking personal forks of repositories when upstream can be managed directly.
2020-08-25Merge pull request #4582 from lioncash/xbyakbunnei
externals: Update Xbyak to 5.95
2020-08-25externals: Update Xbyak to 5.95Lioncash
5.95 contains a potentially backward-compatibility breaking change, so we should be updating to this to ensure that our code remains forward-compatible.
2020-08-25Merge pull request #4572 from lioncash/xbyakbunnei
externals: Update xbyak to v5.941
2020-08-25Merge pull request #4574 from lioncash/const-fnbunnei
memory_manager: Mark IsGranularRange() as a const member function
2020-08-25Merge pull request #4565 from lioncash/memsetbunnei
microprofile: Don't memset through std::atomic types
2020-08-25Merge pull request #4563 from lioncash/rcachebunnei
registered_cache: Make use of designated initializers
2020-08-25Merge pull request #4548 from lioncash/colorbunnei
common/color: Migrate code over to the Common namespace
2020-08-24Merge pull request #4542 from ReinUsesLisp/gpu-init-basebunnei
video_core: Initialize renderer with a GPU
2020-08-24Merge pull request #4562 from lioncash/loopbunnei
cpu_manager: Make use of ranged for where applicable
2020-08-24common_funcs: Add missing XOR operators to DECLARE_ENUM_FLAG_OPERATORSLioncash
Ensures that the full set of bitwise operators are available for types that make use of this macro.
2020-08-24common/assert: Make use of C++ attribute syntaxLioncash
Normalizes the syntax used for attributes
2020-08-24async_shaders: Mark getters as const member functionsLioncash
While we're at it, we can also mark them as nodiscard.
2020-08-24Merge pull request #4573 from lioncash/labelRodrigo Locatti
gl_texture_cache: Take std::string by reference in DecorateViewName()
2020-08-24memory_manager: Mark IsGranularRange() as a const member functionLioncash
This doesn't modify internal member state, so it can be marked as const.
2020-08-23gl_texture_cache: Take std::string by reference in DecorateViewName()Lioncash
LabelGLObject takes a string_view, so we don't need to make copies of the std::string.
2020-08-24Merge pull request #4571 from lioncash/fenceRodrigo Locatti
video_core/fence_manager: Remove unnecessary includes
2020-08-23externals: Update xbyak to v5.941Lioncash
Keeps the tracked submodule up to date with the latest release.
2020-08-23video_core/fence_manager: Remove unnecessary includesLioncash
Avoids pulling in unnecessary things that can cause rebuilds when they aren't required.
2020-08-23microprofile: Don't memset through std::atomic typesLioncash
Two of the members of the MicroProfileThreadLog contains two std::atomic instances. Given these aren't trivially-copyable types, we shouldn't be memsetting the structure, given implementation details can contain other members within it. To avoid potential undefined behavior on platforms, we can use aggregate initialization to zero out the members while still having well-defined behavior. While we're at it we can also silence some sign conversion warnings.