Lioncash
eb2ab15bdb
sdl_impl: Make use of std::move on std::string where applicable
Avoids redundant copies.
5 years ago
Lioncash
285e3386e2
sdl_impl: Make use of insert_or_assign() where applicable
Avoids churning ParamPackage instances.
5 years ago
Lioncash
3413c8c046
sdl_impl: Prevent type truncation in BuildAnalogParamPackageForButton() default arguments
We need to add the 'f' suffix to make the right hand side a float and
not a double.
5 years ago
Lioncash
1338c58d37
sdl_impl: Simplify make_tuple call
The purpose of make_tuple is that you don't need to explicitly type out
the types of the things that comprise said tuple.
Given this just returns default values, we can simplify this a bit.
5 years ago
Lioncash
4dc59a4b64
sdl_impl: Mark FromEvent() as a const member function
This doesn't modify internal member state, so it can be marked as const.
5 years ago
Lioncash
0322ffa4fd
input_common/main: Remove unnecessary headers
5 years ago
Lioncash
72d5a883a1
input_common/main: Remove unimplemented prototype
I forgot to remove this in the rebase when removing most of the global
variables within the input common codebase.
5 years ago
ReinUsesLisp
a7ea965de5
vk_device: Blacklist AMD proprietary from VK_EXT_extended_dynamic_state
Vertex binding's <stride> is bugged on AMD's proprietary drivers when
using VK_EXT_extended_dynamic_state. Blacklist it for now while we
investigate how to report this issue to AMD.
5 years ago
Lioncash
affbf8e188
input_common: Eliminate most global state
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.
5 years ago
Morph
4ca910101f
input_common/main: Add "/Mouse" to the display name
5 years ago
Lioncash
ad83996932
memory_manager: Make use of [[nodiscard]] in the interface
5 years ago
Lioncash
4ccecf6fec
memory_manager: Make operator+ const qualified
This doesn't modify member state, so it can be marked as const.
5 years ago
Morph
0d6a2a37d2
configure_input_player: Fix modifier scale button mapping
5 years ago
Morph
bc37d84a84
configuration/input: Add support for mouse button clicks
Supports the Left, Right, Middle, Backward and Forward mouse buttons.
5 years ago
Morph
9b0f5da0c6
controllers/npad: Fix inconsistencies with controller connection statuses
5 years ago
Morph
4d6a8f3e8f
controllers/npad: Fix LibNX controller connection statuses
This allows homebrew applications to be able to properly detect connected controllers.
5 years ago
Morph
9fc2eb2ee0
controllers/npad: Fix LedPattern for P1-4
5 years ago
Morph
5e4f03f663
input_common: Fix directional deadzone values
The hardware tested value is 0.5 which translates to SHRT_MAX / 2
5 years ago
Morph
24ce544120
Address feedback
5 years ago
Morph
34a209d15c
Project Mjölnir: Part 1
Co-authored-by: James Rowe <jroweboy@gmail.com>
Co-authored-by: Its-Rei <kupfel@gmail.com>
6 years ago
ReinUsesLisp
ad0306e520
cpu_interrupt_handler: Misc style changes
5 years ago
ReinUsesLisp
7eb6cc742a
cpu_interrupt_handler: Make is_interrupted an atomic
Fixes a race condition detected from tsan
5 years ago
Lioncash
4861eb64aa
common/assert: Make use of C++ attribute syntax
Normalizes the syntax used for attributes
5 years ago
Lioncash
9a974b8cb9
memory_manager: Mark IsGranularRange() as a const member function
This doesn't modify internal member state, so it can be marked as const.
5 years ago
Lioncash
18732e9822
gl_texture_cache: Take std::string by reference in DecorateViewName()
LabelGLObject takes a string_view, so we don't need to make copies of
the std::string.
5 years ago
Lioncash
d62357c8ae
video_core/fence_manager: Remove unnecessary includes
Avoids pulling in unnecessary things that can cause rebuilds when they
aren't required.
5 years ago
ReinUsesLisp
ecde168452
video_core/host_shaders: Add CMake integration for string shaders
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.
5 years ago
ReinUsesLisp
82f88a0203
gl_shader_util: Use std::string_view instead of star pointer
This allows us passing any type of string and hinting the length of the
string to the OpenGL driver.
5 years ago
Lioncash
942badd1e7
registered_cache: Make use of ends_with for string suffix checking
Simplifies code.
5 years ago
Lioncash
a185b6cf21
registered_cache: Make use of designated initializers
Removes the need for comments to indicate the fields being assigned.
5 years ago
Lioncash
ebe30ea145
key_manager: Make data arrays constexpr
We can convert these maps into constexpr arrays to eliminate some
runtime static constructors.
5 years ago
Lioncash
beca7a0429
cpu_manager: Make use of ranged for where applicable
We can simplify a few loops by making use of ranged for.
5 years ago
Lioncash
96214f8600
core_timing: Remove unused header
5 years ago
Lioncash
aae74a55da
core_timing: Move clock initializer into constructor initializer list
Same behavior, minus unnecessary zeroing out of the pointer.
5 years ago
Lioncash
41c74f4f0c
core_timing: Resolve sign conversion warning
This constant is only ever assigned to downcount, which is a s64, not a
u64.
5 years ago
Lioncash
77d6d3bf4b
web_service: Move web_result.h into web_service
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.
5 years ago
ReinUsesLisp
1c61cf29b6
video_core: Initialize renderer with a GPU
Add an extra step in GPU initialization to be able to initialize render
backends with a valid GPU instance.
6 years ago
ReinUsesLisp
39cab995e3
vk_state_tracker: Fix primitive topology
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.
5 years ago
bunnei
55d11a0bfd
Revert "common/time_zone: Simplify GetOsTimeZoneOffset()"
5 years ago
Lioncash
ecb9029c6a
common/telemetry: Migrate namespace into the Common namespace
Migrates the Telemetry namespace into the Common namespace to make the
code consistent with the rest of our common code.
5 years ago
Lioncash
d9fc3abc1f
vfs_real: Resolve sign conversion warnings
5 years ago
Lioncash
182739ce1b
vfs_real: Avoid redundant map lookups
Avoids some trivially avoidable map lookups by keeping the result of
find operations around and querying them.
5 years ago
Lioncash
475e8a40ea
common/color: Migrate code over to the Common namespace
No external code makes use of this header, so we can freely change the
namespace.
5 years ago
Lioncash
e478c61eeb
common/concepts: Move <type_traits> include out of the Common namespace
This is a compiler/linker error waiting to happen.
5 years ago
ameerj
4cb6ad9eaf
Remove unneeded newlines, optional Registry in shader params
Addressing feedback from Rodrigo
5 years ago
Ameer J
8374d79c4b
Morph: Update worker allocation comment
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com>
5 years ago
ameerj
b467d4dbd0
move thread 1/4 count computation into allocate workers method
5 years ago
ameerj
3fa34fa7bf
Address feedback, add shader compile notifier, update setting text
5 years ago
ameerj
5a2879a781
Vk Async Worker directly emplace in cache
5 years ago
ameerj
f029fa19bf
Address feedback. Bruteforce delete duplicates
5 years ago