Morph
11a0033a66
service: set: Correct copy amount in GetAvailableLanguageCodes
4 years ago
ameerj
bfb2325618
astc_decoder: Reduce workgroup size
This reduces the amount of over dispatching when there are odd dimensions (i.e. ASTC 8x5), which rarely evenly divide into 32x32.
4 years ago
ameerj
2ff4eb5def
astc_decoder: Compute offset swizzles in-shader
Alleviates the dependency on the swizzle table and a uniform which is constant for all ASTC texture sizes.
4 years ago
ameerj
59ff9e51f2
astc_decoder: Make use of uvec4 for payload data
5 years ago
ameerj
8f9c7a4ba2
astc_decoder: Simplify Select2DPartition
5 years ago
ameerj
958ede1ed9
astc_decoder: Optimize the use EncodingData
This buffer was a list of EncodingData structures sorted by their bit length, with some duplication from the cpu decoder implementation.
We can take advantage of its sorted property to optimize its usage in the shader.
Thanks to wwylele for the optimization idea.
5 years ago
ameerj
f4409c9db9
astc.h: Move data to cpp implementation
Moves leftover values that are no longer used by the gpu decoder back to the cpp implementation.
5 years ago
lat9nq
1f81d4415c
settings: Use std::clamp where possible
Addresses PR review
Co-authored-by: PixelyIon <pixelyion@protonmail.com>
4 years ago
Morph
057a4a8a06
hle: api_version: Update HOS version to 12.1.0
Keeps us up to date with reporting the system version.
4 years ago
lat9nq
3314d63af4
settings: Remove unnecessary std::move usages
Addresses review feedback.
Co-authored-by: Mai M. <mathew1800@gmail.com>
4 years ago
lat9nq
9194f2f342
settings: Fix function virtualization
Fixes a theoretical scenario where a Setting is using the BasicSetting's
GetValue function. In practice this probably only happens on yuzu-cmd,
where there is no need for a Setting's additional features. Need to fix
regardless.
4 years ago
lat9nq
62e78f36c7
settings: Implement setting ranges
Clamps the setting's values against the specified minimum and maximum
values.
5 years ago
lat9nq
d15ff8a89b
emu_window: Remove global system instance
It was just the one in emu_window_sdl2, but since _gl and _vk inherit
from it, they all needed adjustments.
Leaves just the one auto system& in main().
4 years ago
Morph
ac09092898
applet_swkbd: Correct string buffer size calculation
The buffer size here does not include the initial 8 bytes.
5 years ago
Morph
743b6b53d9
configure_system: Add Brazilian Portuguese to the list of languages
5 years ago
Morph
2359f8283a
service: set: Correct 4.0.0 max_entries to 0x40 (64) instead of 17
5 years ago
Morph
58a79102ae
service: ns, set: Add PT_BR (Brazilian Portuguese)
5 years ago
ReinUsesLisp
ecc05bdcb6
shader: Fold UnpackFloat2x16 and PackFloat2x16
Simplifies the code a bit when possible. These instructions should be
no-ops codegen wise.
4 years ago
ReinUsesLisp
2eaec1b7ee
vk_rasterizer: Flip viewport on Y_NEGATE
Matches OpenGL's behavior. I don't believe this register flips geometry,
but we have to try to match behavior on both backends.
4 years ago
ameerj
9629e74364
renderers: Add explicit invert_y bool to screenshot callback
OpenGL and Vulkan images render in different coordinate systems. This allows us to specify the coordinate system of the screenshot within each renderer
5 years ago
ameerj
6733ae9aab
renderer_vulkan: Implement screenshots
4 years ago
ameerj
317f238e1d
vk_blit_screen: Add public CreateFramebuffer method
4 years ago
ameerj
870a92bd78
vk_blit_screen: Make Draw method more generic
Allows specifying the framebuffer and render area dimensions, rather than being hard coded for the render window.
4 years ago
ReinUsesLisp
d84b81fdfb
shader: Mark ConvertF16F32 and ConvertF32F16 as fp16 instructions
Fixes instances where fp16 types are not declared on SPIR-V but they are
used. This shouldn't happen on master, as it's been uncovered by an
additional optimization pass.
5 years ago
ReinUsesLisp
482c1ec8e5
renderer_vulkan: Add setting to log pipeline statistics
Use VK_KHR_pipeline_executable_properties when enabled and available to
log statistics about the pipeline cache in a game.
For example, this is on Turing GPUs when generating a pipeline cache
from Super Smash Bros. Ultimate:
Average pipeline statistics
==========================================
Code size: 6433.167
Register count: 32.939
More advanced results could be presented, at the moment it's just an
average of all 3D and compute pipelines.
5 years ago
Jan Beich
471ddd0674
host_memory: Add workaround for FreeBSD 12
src/common/host_memory.cpp:360:14: error: use of undeclared identifier
'memfd_create'
fd = memfd_create("HostMemory", 0);
^
5 years ago
Jan Beich
112a8e017d
host_memory: Enable Linux implementation on FreeBSD
HW.Memory <Critical> common/host_memory.cpp:HostMemory:492: Fastmem unavailable, falling back to VirtualBuffer for memory allocation
5 years ago
jls47
20083ccd43
qt_web_browser: Fix lambda capture for HIDButton
5 years ago
jls47
85e29934fd
qt_web_browser: Focus on the first link element
Focusing on the first link element fixes element navigation upon loading the web applet in games such as Super Mario Odyssey
5 years ago
Morph
6c7b6b7be0
service: ns: Remove unused ns_language header
5 years ago
Morph
ae8a88d10c
service: ns: Map ZH_TW and ZH_CN to Traditional/Simplified Chinese
5 years ago
Lioncash
2fa5f631c3
render_target: Add missing initializer for size extent
Everything else has a default constructor that does the straightforward
thing of initializing most members to a default value, except for the
size.
We explicitly initialize the size (and others, for consistency), to
prevent potential uninitialized reads from occurring. Particularly given
the largeish surface area that this struct is used in.
5 years ago
Lioncash
23ec5faf24
video_core/engine: Consistently initialize rasterizer pointers
Ensures all of the engines have consistent and deterministic
initialization of the rasterizer pointers.
5 years ago
Lioncash
be66e2a272
vulkan_wrapper: Fix SetObjectName() always indicating objects as images
We should be using the passed in object type instead.
5 years ago
Lioncash
dd25abba68
buffer_cache: Remove unused small_vector in CommitAsyncFlushesHigh()
Given this is non-trivial, the constructor is required to execute, so
this removes a bit of redundant codegen.
5 years ago
Lioncash
ac3aa96ebc
gl_shader_cache: Remove unused variable
5 years ago
Lioncash
f902b4b167
vk_compute_pass: Remove unused captures
Resolves two compiler warnings.
5 years ago
Lioncash
b5ce444508
exception: Make constructors explicit
Ensures that exception construction is always explicit.
5 years ago
Lioncash
b650c38a31
exception: Make what() member function nodiscard
5 years ago
Lioncash
d04bbd8207
exception: Narrow down specific header
We can use the <exception> header instead of pulling in all of the
exception-style classes.
5 years ago
Morph
10e072f490
common: fs: fs_util: Add BufferToUTF8String
Allows for direct conversion to std::string without having to convert std::u8string to std::string
5 years ago
Morph
881199e524
common: uuid: Return a lower-case hex string in Format
5 years ago
Robin Kertels
534c86587b
vk_staging_buffer_pool: Fall back to host memory when allocation fails
5 years ago
ReinUsesLisp
5afcd587e3
vk_stream_buffer: Remove unused stream buffer
Remove unused file.
5 years ago
Vamsi Krishna
713f960ce3
configure_graphics: reword GLASM option
Change wording to explain that GLASM is actually short for Assembly Shaders
5 years ago
ReinUsesLisp
8d86e9a9d7
vk_compute_pass: Fix pipeline barrier for indexed quads
Use an index buffer barrier instead of a vertex input read barrier.
5 years ago
ReinUsesLisp
b53503b0fe
vk_buffer_cache: Add transform feedback usage to null buffer
Fixes bad API usages on Vulkan.
5 years ago
Lioncash
00bd622334
emit_glasm: Fix LINESS_ADJACENCY typo in InputPrimitive()
This should be LINES_ADJACENCY
5 years ago
Lioncash
0692818106
emit_spirv_instructions: Add missing header guard
5 years ago
Lioncash
05201f4f88
shader_recompiler: Remove unnecessary [[nodiscard]] instances
[[nodiscard]] doesn't do anything on functions with a void return type
and causes superfluous warnings.
5 years ago