aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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-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-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-25Merge pull request #4574 from lioncash/const-fnbunnei
memory_manager: Mark IsGranularRange() as a const member function
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-24logging/settings: Increase maximum log size to 100 MB and add extended ↵M&M
logging option The extended logging option is automatically disabled on boot but can be enabled afterwards, allowing the log file to go up to 1 GB during that session. This commit also fixes a few errors that are present in the general debug menu.
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-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-23video_core/fence_manager: Remove unnecessary includesLioncash
Avoids pulling in unnecessary things that can cause rebuilds when they aren't required.
2020-08-23Merge pull request #4561 from lioncash/key-constexprbunnei
key_manager: Make data arrays constexpr
2020-08-23video_core/host_shaders: Add CMake integration for string shadersReinUsesLisp
Add the necessary CMake code to copy the contents in a string source shader (GLSL or GLASM) to a header file then consumed by video_core files. This allows editting GLSL in its own files without having to maintain them in source files. For now, only OpenGL presentation shaders are moved, but we can add GLASM presentation shaders and static SPIR-V generation through glslangValidator in the future.
2020-08-23gl_shader_util: Use std::string_view instead of star pointerReinUsesLisp
This allows us passing any type of string and hinting the length of the string to the OpenGL driver.
2020-08-23Merge pull request #4549 from lioncash/filesbunnei
vfs_real: Avoid redundant map lookups
2020-08-23Merge pull request #4559 from lioncash/webresultbunnei
web_service: Move web_result.h into web_service
2020-08-23fsp_srv: Resolve -Wunused-but-set-variable warningLioncash
We can just log out the parameters in the meantime.
2020-08-23file_sys: Replace inclusions with forward declarations where applicableLioncash
Same behavior, minus unnecessary inclusions where not necessary.
2020-08-23fsp_srv: Resolve -Wmaybe_uninitialized warning in OpenSaveDataFileSystem()Lioncash
Initialize id to a deterministic value and also mark the unreachable cases in the switch with UNREACHABLE().
2020-08-23registered_cache: Make use of ends_with for string suffix checkingLioncash
Simplifies code.
2020-08-23registered_cache: Make use of designated initializersLioncash
Removes the need for comments to indicate the fields being assigned.
2020-08-23Merge pull request #4560 from lioncash/convertbunnei
core_timing: Resolve sign conversion warning
2020-08-22key_manager: Make data arrays constexprLioncash
We can convert these maps into constexpr arrays to eliminate some runtime static constructors.
2020-08-22cpu_manager: Make use of ranged for where applicableLioncash
We can simplify a few loops by making use of ranged for.
2020-08-22core_timing: Remove unused headerLioncash
2020-08-22core_timing: Move clock initializer into constructor initializer listLioncash
Same behavior, minus unnecessary zeroing out of the pointer.
2020-08-22core_timing: Resolve sign conversion warningLioncash
This constant is only ever assigned to downcount, which is a s64, not a u64.
2020-08-22web_service: Move web_result.h into web_serviceLioncash
This is the only place it's actively used. It's also more appropriate for web-related structures to be within the web service target. Especially given this one doesn't rely on anything in the common library.
2020-08-22video_core: Initialize renderer with a GPUReinUsesLisp
Add an extra step in GPU initialization to be able to initialize render backends with a valid GPU instance.
2020-08-21Merge pull request #4521 from lioncash/optionalcachebunnei
gl_shader_disk_cache: Make use of std::nullopt where applicable
2020-08-21Merge pull request #4541 from MerryMage/yolobunnei
dynarmic: Add unsafe optimizations
2020-08-21Merge pull request #4523 from lioncash/self-assignbunnei
macro-interpreter: Resolve -Wself-assign-field warning
2020-08-20vk_state_tracker: Fix primitive topologyReinUsesLisp
State track the current primitive topology with a regular comparison instead of using dirty flags. This fixes a bug in dirty flags for this particular state and it also avoids unnecessary state changes as this property is stored in a frequently changed bit field.
2020-08-20vk_device: Use Vulkan 1.0 properlyReinUsesLisp
Enable the required capabilities to use Vulkan 1.0 without validation errors and disable those that are not compatible with it.
2020-08-20renderer_vulkan: Create a Vulkan 1.0 instance when 1.1 is not availableReinUsesLisp
This commit doesn't make yuzu compatible with Vulkan 1.0 yet, it only creates an 1.0 instance.
2020-08-20Merge pull request #4546 from lioncash/telemetrybunnei
common/telemetry: Migrate namespace into the Common namespace
2020-08-19Merge pull request #4547 from lioncash/header-conceptbunnei
common/concepts: Move <type_traits> include out of the Common namespace
2020-08-19Revert "common/time_zone: Simplify GetOsTimeZoneOffset()"bunnei
2020-08-18Merge pull request #4539 from lioncash/discbunnei
common: Silence two discarded result warnings
2020-08-18Merge pull request #4522 from lioncash/vulk-copybunnei
vulkan/wrapper: Avoid unnecessary copy in EnumerateInstanceExtensionProperties()