Lioncash
d10014e47f
gl_buffer_cache: Default initialize member variables
Ensures that the cache always has a deterministic initial state.
7 years ago
Lioncash
ef88902b2c
gl_buffer_cache: Make GetHandle() a const member function
GetHandle() internally calls GetHandle() on the stream_buffer instance,
which is a const member function, so this can be made const as well.
7 years ago
Lioncash
e0b2bdf8b2
gl_buffer_cache: Remove unnecessary includes
7 years ago
Lioncash
96cd6e9ee2
gl_buffer_cache: Make constructor explicit
Implicit conversions during construction isn't desirable here.
7 years ago
Markus Wick
9e600046df
gl_shader_gen: Initialize position.
IMO the old code is fine, but nvidia raises shader compiler warnings.
Trivial fix through...
7 years ago
FernandoS27
758dd86de9
Implemented IPA Properly
7 years ago
Markus Wick
06395d3659
gl_rasterizer: Skip TODO log.
This is called ~3k times per frame in SMO ingame.
My laptop spends ~3ms per frame on allocating and freeing this string.
Let's just stop printing this kind of redundant information.
7 years ago
Lioncash
c0f0078eb1
file_sys/submission_package: Correct constructor initialization list order
Orders the elements in the sequence to match the order in which they'll
actually be initialized in.
7 years ago
Markus Wick
7902bc2853
gl_rasterizer: Implement a VAO cache.
This patch caches VAO objects instead of re-emiting all pointers per draw call.
Configuring this pointers is known as a fast task, but it yields too many GL
calls. So for better performance, just bind the VAO instead of 16 pointers.
7 years ago
Lioncash
a4907882ad
file_sys/submission_package: Replace includes with forward declarations where applicable
7 years ago
Markus Wick
3706ea6c39
renderer_opengl: Implement a buffer cache.
The idea of this cache is to avoid redundant uploads. So we are going
to cache the uploaded buffers within the stream_buffer and just reuse
the old pointers.
The next step is to implement a VBO cache on GPU memory, but for now,
I want to check the overhead of the cache management. Fetching the
buffer over PCI-E should be quite fast.
7 years ago
Zach Hilman
46eb9ec6ba
bktr: Fix bucket overlap error
7 years ago
Zach Hilman
14bfdbe0e7
drd: Parse title ID from program metadata
7 years ago
Zach Hilman
14a18fd7ae
patch_manager: Centralize Control-type NCA parsing
7 years ago
Zach Hilman
4148e4fbba
nsp: Fix error masking issue with XCI files
Now display correct error instead of catch-all MissingProgramNCA
7 years ago
Zach Hilman
ac7d3882b4
game_list: Fix version display on non-NAND titles
7 years ago
Zach Hilman
b555718bb9
bktr: Add logging on successful patch
7 years ago
Zach Hilman
e4d55fc9b0
game_list: Use friendly game versions
Mainly, from control.nacp metadata instead of cnmt metadata
7 years ago
Zach Hilman
b8f8b0fa47
bktr: Implement IVFC offset shifting
Fixes base game read errors
7 years ago
Zach Hilman
e88835cd40
bktr: Fix missing includes and optimize style
7 years ago
Zach Hilman
f467901160
main: Make game updates installable
7 years ago
Zach Hilman
56280fd666
game_list: Display patch names and versions on list
7 years ago
Zach Hilman
8a01446903
loader: Add BKTR-specific error messages and codes
7 years ago
Zach Hilman
e9e74efb6c
loader: Ignore patches on NRO and DRD
7 years ago
Zach Hilman
77282b170f
patch_manager: Add usages of patches to ExeFS
7 years ago
Zach Hilman
1b8f19f417
file_sys: Add class to manage game patches
Right now only includes Updates, but should eventually contain all of the other patches we need.
7 years ago
Zach Hilman
d4d0d3d933
file_sys: Add BKTR patching mechanism
7 years ago
Zach Hilman
de4a0027c1
content_archive: Add BKTR header parsing to NCA
7 years ago
Zach Hilman
6e6f8cf474
registration: Add RegisteredCacheUnion
Aggregates multiple caches into one interface
7 years ago
Zach Hilman
bf86700873
game_list: Use RegisteredCacheUnion for installed
Reduces code
7 years ago
Zach Hilman
7b95f295b6
aes_util: Fix error involving reads of less than 0x10
Issues with block size are fixed by making all reads minimum length of 0x10
7 years ago
Markus Wick
40784ec48b
gl_shader_cache: Use an u32 for the binding point cache.
The std::string generation with its malloc and free requirement
was a noticeable overhead. Also switch to an ordered_map to
avoid the std::hash call. As those maps usually have a size of
two elements, the lookup time shall not matter.
7 years ago
Zach Hilman
44448809d5
main: Only show DRD deprecation warning once
7 years ago
Zach Hilman
79f66a7e8d
control_metadata: Use alternate language names if AmericanEnglish isn't available
7 years ago
Zach Hilman
a67309aa0e
card_image: Add program title ID getter
7 years ago
Zach Hilman
d3aaa8f52d
qt: Add deprecation warnings for DRD format
7 years ago
Zach Hilman
599b7eac32
registration: Fix NSP installation errors
7 years ago
Zach Hilman
887ffb2512
nsp: Comply with style and performance guidelines
7 years ago
Zach Hilman
d0467f930a
qt: Add UI support for NSP files
7 years ago
Zach Hilman
87a91f6b09
registration: Add support for installing NSP files
7 years ago
Zach Hilman
6d8efb4e2e
loader: Add AppLoader for NSP files
7 years ago
Zach Hilman
57769f8d0d
card_image: Parse XCI secure partition with NSP
Eliminated duplicate code and adds support for Rev1+ carts
7 years ago
Zach Hilman
a9397ca8c0
file_sys: Add Nintendo Submission Package (NSP)
7 years ago
Zach Hilman
d4794948f2
drd: Load title ID from program metadata
Previously only loaded from control metadata
7 years ago
Zach Hilman
1572b45583
loader: Add NSP file type and NSP-specific errors
7 years ago
Zach Hilman
8e787e5ec2
key_manager: Avoid autogeneration if key exists
7 years ago
Lioncash
067e34798b
common/logging: Amend documentation comments
Multi-line doc comments still need the '<' after the ///, otherwise it's
treated as a regular comment and makes the original doc comment broken
in viewers, IDEs, etc. While we're at it, also fix some typos in the
comments.
7 years ago
Lioncash
4209a71953
common/logging/filter: Replace C-style case with C++ static_cast
7 years ago
Lioncash
ed8b4ac2b4
common/logging/filter: Make constructor explicit
Implicit conversions aren't desirable here.
7 years ago
Markus Wick
5093e008c9
core: Use a raw pointer in GetGPUDebugContext.
This helper is called very often. The memory ownership shall not be transfered, so just return the raw pointer.
7 years ago