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
6eeeebeb9d
fsp_srv: Resolve -Wunused-but-set-variable warning
We can just log out the parameters in the meantime.
5 years ago
Lioncash
da15e9f8a7
file_sys: Replace inclusions with forward declarations where applicable
Same behavior, minus unnecessary inclusions where not necessary.
5 years ago
Lioncash
c26b29c2c6
fsp_srv: Resolve -Wmaybe_uninitialized warning in OpenSaveDataFileSystem()
Initialize id to a deterministic value and also mark the unreachable
cases in the switch with UNREACHABLE().
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
ReinUsesLisp
74e1e7cfca
vk_device: Use Vulkan 1.0 properly
Enable the required capabilities to use Vulkan 1.0 without validation
errors and disable those that are not compatible with it.
6 years ago
ReinUsesLisp
b29e2d4656
renderer_vulkan: Create a Vulkan 1.0 instance when 1.1 is not available
This commit doesn't make yuzu compatible with Vulkan 1.0 yet, it only
creates an 1.0 instance.
6 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>
6 years ago
ameerj
b467d4dbd0
move thread 1/4 count computation into allocate workers method
6 years ago
ameerj
3fa34fa7bf
Address feedback, add shader compile notifier, update setting text
6 years ago
ameerj
5a2879a781
Vk Async Worker directly emplace in cache
6 years ago
ameerj
f029fa19bf
Address feedback. Bruteforce delete duplicates
6 years ago
ameerj
77698ae7d6
Vk Async pipeline compilation
6 years ago
David Marcec
f17f347e03
Preliminary effects
5 years ago
MerryMage
1057908c3a
dynarmic: Add unsafe optimizations
5 years ago
Lioncash
ea46b5546b
configure_hotkeys: Don't translate empty strings
There's no need to translate an empty string. This just gives
translators unnecessary work.
5 years ago
Lioncash
a87209e09d
common/fileutil: Convert namespace to Common::FS
Migrates a remaining common file over to the Common namespace, making it
consistent with the rest of common files.
This also allows for high-traffic FS related code to alias the
filesystem function namespace as
namespace FS = Common::FS;
for more concise typing.
5 years ago
Lioncash
a67c91f9dd
common: Silence two discarded result warnings
These are intentionally discarded internally, since the rest of the
public API allows querying success. We want all non-internal uses of
these functions to be explicitly checked, so we can signify that we
intentionally want to discard the return values here.
5 years ago
Lioncash
89b10968fc
common/time_zone: Simplify GetOsTimeZoneOffset()
We can simplify this function down into a single line with the use of
fmt. A benefit with the fmt approach is that the fmt variant of
localtime is thread-safe as well, making GetOsTimeZoneOffset()
thread-safe as well.
5 years ago
Lioncash
f9fe50958e
yuzu: Resolve -Wextra-semi warnings
While we're in the same area, we can ensure GameDir member variables are
always initialized to consistent values.
5 years ago
lat9nq
385449fb24
main: Add an option to modify the currrent game's configuration
Creates a new entry in the Emulation menu called "Configure Current Game..." that is only available if a game is currently being executed in yuzu. When selected, it opens the game properties dialog for the current game.
Thanks to @BSoDGamingYT for reminding me to do this.
6 years ago
Lioncash
0977ef7d7f
common/compression: Roll back std::span changes
Seems like all compilers don't support std::span yet.
5 years ago
Lioncash
2ef7815422
common: Make use of [[nodiscard]] where applicable
Now that clang-format makes [[nodiscard]] attributes format sensibly, we
can apply them to several functions within the common library to allow
the compiler to complain about any misuses of the functions.
5 years ago
Lioncash
f6ff8a0235
configuration_shared: Simplify name lookup in highlighting functions
We can query the given object name directly from the widget itself. This
removes any potential for forgetting to change the name if the widget
gets renamed and makes the API much simpler (just pass in the widget,
and not worry about its name).
5 years ago
Lioncash
0d29e40857
yuzu: Make use of qOverload where applicable
Eliminates a verbose function cast.
5 years ago
Lioncash
b86bba9f7e
time_zone_content_manager: Collapse auto and default case
Prevents a useless self-assignment from occurring.
5 years ago
David Marcec
ac9d36c1dc
Disable biquad filter
5 years ago
Lioncash
910dff8816
software_keyboard: Resolve a pessimizing move warning
A std::vector created in place like this is already an rvalue and
doesn't need to be moved.
5 years ago
Lioncash
0c78ed16df
core: Resolve several -Wextra-semi warnings
We can amend one of the cascade macros to require semicolons in order to
compile. In other cases, we can just remove the superfluous semicolons.
5 years ago
Lioncash
7557cf39f9
shader/memory: Amend UNIMPLEMENTED_IF_MSG without a message
We need to provide a message for this variant of the macro, so we can
simply log out the type being used.
5 years ago
Lioncash
dea59d837b
macro-interpreter: Resolve -Wself-assign-field warning
This was assigning the field to itself, which is a no-op. The size
doesn't change between its initial assignment and this one, so this is a
safe change to make.
5 years ago
Lioncash
cde4447257
vulkan/wrapper: Avoid unnecessary copy in EnumerateInstanceExtensionProperties()
Given this is implicitly creating a std::optional, we can move the
vector into it.
5 years ago
Lioncash
cb79f177aa
gl_shader_disk_cache: Make use of std::nullopt where applicable
Allows the compiler to avoid unnecessarily zeroing out the internal
buffer of std::optional on some implementations.
5 years ago
Lioncash
a743375791
async_shaders: Resolve -Wpessimizing-move warning
Prevents pessimization of the move constructor (which thankfully didn't
actually happen in practice here, given std::thread isn't copyable).
5 years ago