Morph
3c8f936b31
input_interpreter: Add method to check for a button press state
This allows to check for continuous input for the duration of a button press/hold
5 years ago
ReinUsesLisp
3ff978aa4f
common/common_funcs: Rename INSERT_UNION_PADDING_{BYTES,WORDS} to _NOINIT
INSERT_PADDING_BYTES_NOINIT is more descriptive of the underlying behavior.
5 years ago
ReinUsesLisp
301e2b5b7a
vulkan_memory_allocator: Remove unnecesary 'device' memory from commits
5 years ago
ReinUsesLisp
432f045dba
vk_texture_cache: Use Download memory types for texture flushes
Use the Download memory type where it matters.
5 years ago
ReinUsesLisp
8f22f5470c
vulkan_memory_allocator: Add allocation support for download types
Implements the allocator logic to handle download memory types. This
will try to use HOST_CACHED_BIT when available.
5 years ago
ReinUsesLisp
72541af3bc
vulkan_memory_allocator: Add "download" memory usage hint
Allow users of the allocator to hint memory usage for downloads. This
removes the non-descriptive boolean passed for "host visible" or not
host visible memory commits, and uses an enum to hint device local,
upload and download usages.
5 years ago
ReinUsesLisp
fade63b58e
vulkan_common: Move allocator to the common directory
Allow using the abstraction from the OpenGL backend.
5 years ago
ReinUsesLisp
c2b550987b
renderer_vulkan: Rename Vulkan memory manager to memory allocator
"Memory manager" collides with the guest GPU memory manager, and a
memory allocator sounds closer to what the abstraction aims to be.
5 years ago
ReinUsesLisp
e996f1ad09
vk_memory_manager: Improve memory manager and its API
Fix a bug where the memory allocator could leave gaps between commits.
To fix this the allocation algorithm was reworked, although it's still
short in number of lines of code.
Rework the allocation API to self-contained movable objects instead of
naively using an unique_ptr to do the job for us. Remove the VK prefix.
5 years ago
Lioncash
8620de6b20
common/bit_util: Replace CLZ/CTZ operations with standardized ones
Makes for less code that we need to maintain.
5 years ago
ReinUsesLisp
89c15dd115
common/alignment: Upgrade to use constraints instead of static asserts
5 years ago
ReinUsesLisp
fe494a0ccd
common/alignment: Rename AlignBits to AlignUpLog2
AlignUpLog2 describes what the function does better than AlignBits.
5 years ago
Lioncash
91084d9396
common/timer: Remove
This is a leftover from citra and dolphin that isn't used at all,
particularly given the <chrono> header exists.
5 years ago
ReinUsesLisp
95fa57f007
common/color: Remove
This is a leftover from Citra we no longer use.
5 years ago
ReinUsesLisp
fb99446f24
core/cmake: Remove Werror flags already defined code-base wide
5 years ago
ReinUsesLisp
cc2c3e447f
video_core/cmake: Remove Werror flags already defined code-base wide
These flags are already defined in src/cmake.
5 years ago
ReinUsesLisp
af540b0057
cmake: Remove yuzu_tester
We never ended up using yuzu_tester.
Removing it saves code duplication with yuzu_cmd, and distribution size on
prebuilt packages.
For unit testing, we can use catch2 from guest code and dump the results
to a file. Then execute yuzu from a script on ci if we want this to be
automated.
5 years ago
ReinUsesLisp
06e0506cb3
cmake: Enforce -Wunused-function code-base wide
5 years ago
ReinUsesLisp
71264ce9a7
video_core: Enforce -Wunused-function
Stops us from merging code with unused functions in the future.
If something is invoked behind conditionally evaluated code in
a way that the language can't see it (e.g. preprocessor macros), the
potentially unused function should use [[maybe_unused]].
5 years ago
ReinUsesLisp
3e03391a49
vk_buffer_cache: Remove unused function
5 years ago
ReinUsesLisp
be8fd5490e
vulkan_common: Silence missing initializer warnings
Silence warnings explicitly initializing all members on construction.
5 years ago
ReinUsesLisp
ba2ea7eeac
vulkan_device: Enable shaderStorageImageMultisample conditionally
Fix Vulkan initialization on ANV.
5 years ago
ReinUsesLisp
22be115eb2
astc: Increase integer encoded vector size
Invalid ASTC textures seem to write more bytes here, increase
the size to something that can't make us push out of bounds.
5 years ago
ReinUsesLisp
0ec71b78fb
astc: Return zero on out of bound bits
Avoid out of bound reads on invalid ASTC textures.
Games can bind invalid textures that make us read or write out of bounds.
5 years ago
Lioncash
e11e1dcf2d
yuzu: Remove unused variables in Qt code
Removes two unused variables in out Qt code. In this case the removal of
these two results in less allocations, given std::map allocates on the
heap.
5 years ago
Lioncash
45aee996c1
configure_motion_touch: Prevent use after move in ApplyConfiguration()
touch_engine was being compared against after being moved into the
setter for the engine, so this comparison wouldn't behave properly.
5 years ago
Lioncash
a2952ac213
configure_motion_touch: Migrate off QRegExp to QRegularExpression
QRegularExpression was introduced in Qt 5 as a better replacement for
QRegExp. In Qt 6.0 QRegExp is removed entirely.
To remain forward compatible with Qt 6.0, we can transition over to
using QRegularExpression.
5 years ago
german
06cf705501
Fix IP validator error where the last octet produced an error if the value was higher than 199
5 years ago
Lioncash
0d7de7c2db
yuzu: Migrate off of setMargin() to setContentsMargins()
setMargin() has been deprecated since Qt 5, and replaced with
setContentsMargins(). We can move over to setContentsMargins() to stay
forward-compatible with Qt 6.0.
5 years ago
ReinUsesLisp
d9a15a935b
vulkan_device: Remove requirement on shaderStorageImageMultisample
yuzu doesn't currently emulate MS image stores. Requiring this makes no
sense for now. Fixes ANV not booting any games on Vulkan.
5 years ago
Morph
2b98da2ed4
cmake: Enforce -Werror=switch and -Werror=unused-variable
5 years ago
Lioncash
b15e1a3501
common/tree: Convert defines over to templates
Reworks the tree header to operate off of templates as opposed to a
series of defines.
This allows all tree facilities to obey namespacing rules, and also
allows this code to be used within modules once compiler support is in
place.
This also gets rid to use a macro to define functions and structs for
necessary data types. With templates, these will be generated when
they're actually used, eliminating the need for the separate
declaration.
5 years ago
Lioncash
197b5d19bc
common/tree: Remove unused splay tree defines
Makes for less code to take care of.
5 years ago
Lioncash
703c57a119
common/parent_of_member: Replace TYPED_STORAGE define with template alias
Provides the same construct, but makes it obey namespacing.
5 years ago
bunnei
03dfc8d8e7
hle: kernel: thread: Preserve thread wait reason for debugging only.
- This is decoupled from core functionality and used for debugging only.
5 years ago
bunnei
81c1bfafea
yuzu: debugger: wait_tree: Handle unknown ThreadState.
5 years ago
bunnei
6b2f653143
hle: kernel: k_scheduler_lock: Fix shadowing errors.
5 years ago
bunnei
354130cd84
core: arm: arm_interface: Fix shadowing errors.
5 years ago
bunnei
82f6037ec2
core: hle: Add missing calls to MicroProfileOnThreadExit.
5 years ago
bunnei
912dd50146
core: hle: Integrate new KConditionVariable and KAddressArbiter implementations.
5 years ago
bunnei
952d1ac487
core: hle: kernel: Update KAddressArbiter.
5 years ago
bunnei
b4e6d6c385
core: hle: kernel: Update KConditionVariable.
5 years ago
bunnei
1212fa60b6
core: hle: kernel: Begin moving common SVC defintions to its own header.
5 years ago
bunnei
8a155c4058
hle: kernel: Remove unnecessary AddressArbiter definition.
5 years ago
bunnei
92d5c63f01
common: common_funcs: Add R_UNLESS macro.
5 years ago
bunnei
f12701b303
hle: kernel: k_scheduler: Cleanup OnThreadPriorityChanged.
5 years ago
bunnei
d1309fb275
hle: kernel: Rename thread "status" to "state".
5 years ago
bunnei
c3c43e32fc
hle: kernel: thread: Replace ThreadStatus/ThreadSchedStatus with a single ThreadState.
- This is how the real kernel works, and is more accurate and simpler.
5 years ago
bunnei
7420a717e6
core: hle: kernel: Add some useful functions for checking kernel addresses.
5 years ago
bunnei
4bbf173fc1
core: hle: kernel: svc_types: Add type definitions for KAddressArbiter.
5 years ago