Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2021-11-16 | Yuzu UI: Add button for Anti Alias | Fernando Sahmkow | 3 | -0/+45 | |
2021-11-16 | Vulkan: Fix FXAA in AMD. | Fernando Sahmkow | 1 | -2/+40 | |
2021-11-16 | Texture Cache: Fix blitting. | Fernando Sahmkow | 1 | -2/+2 | |
2021-11-16 | Vulkan: Implement FXAA | FernandoS27 | 3 | -22/+387 | |
2021-11-16 | OpenGL: fix FXAA with scaling | Marshall Mohror | 2 | -9/+31 | |
2021-11-16 | OpenGL: Implement FXAA | Marshall Mohror | 6 | -35/+194 | |
2021-11-16 | Frontend: Add anti-aliasing method setting | Marshall Mohror | 5 | -0/+70 | |
2021-11-16 | Settings: Add anti-aliasing method setting | Marshall Mohror | 2 | -0/+7 | |
2021-11-16 | QtGUI: Add buttton to toggle the filter. | FernandoS27 | 5 | -1/+61 | |
2021-11-16 | VideoCore: Add gaussian filtering. | FernandoS27 | 8 | -2/+140 | |
2021-11-16 | TextureCache: Improve Reaper. | FernandoS27 | 2 | -14/+26 | |
2021-11-16 | Vulkan: fix waiting on semaphore. | FernandoS27 | 1 | -1/+3 | |
2021-11-16 | Update scaleforce to use FP16 | Marshall Mohror | 1 | -88/+55 | |
2021-11-16 | VideoCore: Add more rescaling option. | FernandoS27 | 3 | -7/+38 | |
2021-11-16 | TextureCache: fix rescaling in aliases and overlap joins. | FernandoS27 | 4 | -23/+48 | |
2021-11-16 | Presentation: Fix turning FSR on and off in settings | Marshall Mohror | 1 | -0/+11 | |
2021-11-16 | Video Core: fix building for GCC. | Fernando Sahmkow | 5 | -24/+42 | |
2021-11-16 | Vulkan Rasterizer: Fix clears on integer textures. | FernandoS27 | 3 | -1/+84 | |
2021-11-16 | Texture cache: fix Intel with rescaler. | FernandoS27 | 1 | -2/+2 | |
2021-11-16 | TextureCache: Fix blitting filter in Vulkan and correct viewport/scissor calculation when downscaling. | FernandoS27 | 2 | -20/+44 | |
2021-11-16 | Texture Cache: fix memory managment and optimize scaled downloads, uploads. | Fernando Sahmkow | 7 | -28/+57 | |
2021-11-16 | Texture Cache: ease the requirements of textures being blacklisted. | Fernando Sahmkow | 2 | -22/+7 | |
2021-11-16 | Vulkan: Fix Blit Depth Stencil | Fernando Sahmkow | 2 | -14/+20 | |
2021-11-16 | Texture Cache: Fix downscaling and correct memory comsumption. | Fernando Sahmkow | 8 | -36/+147 | |
2021-11-16 | Presentation: add Nearest Neighbor filter. | Fernando Sahmkow | 6 | -14/+67 | |
2021-11-16 | vulkan: Implement FidelityFX Super Resolution | Marshall Mohror | 11 | -17/+643 | |
2021-11-16 | Texture Cache: Rescale conversions between depth and color | FernandoS27 | 6 | -25/+37 | |
2021-11-16 | Texture cache: Fix memory consumption and ignore rating when a depth texture is rendered. | Fernando Sahmkow | 3 | -7/+19 | |
2021-11-16 | vulkan: Fix rescaling push constant usage | ameerj | 8 | -69/+78 | |
2021-11-16 | Texture Cahe: Fix downscaling on SMO. | Fernando Sahmkow | 5 | -0/+11 | |
2021-11-16 | texture_cache_base: Remove unused function declarations | ameerj | 1 | -8/+0 | |
2021-11-16 | yuzu: Fix build errors | ameerj | 1 | -1/+1 | |
2021-11-16 | vk_texture_cache: Use 3D to scale images when blit is unsupported | ameerj | 4 | -29/+87 | |
2021-11-16 | texture_cache: Fix infinitely recursive ImageCanRescale check | ameerj | 3 | -10/+13 | |
2021-11-16 | vk_texture_cache: Fix BlitScale of non-2D images | ameerj | 1 | -10/+9 | |
2021-11-16 | video_core: Refactor resolution scale function | ameerj | 4 | -46/+34 | |
2021-11-16 | texture_cache: Fix image resolves when src/dst are not both scaled | ameerj | 1 | -5/+8 | |
2021-11-16 | yuzu_cmd: Read resolution_setup and scaling_filter from config | lat9nq | 2 | -0/+25 | |
Also adds descriptions and the settings to the default config. | |||||
2021-11-16 | video_core,yuzu: Move UpdateRescalingInfo call to video_core | lat9nq | 3 | -5/+2 | |
This only needs to happen once per game boot, so we can just call it during CreateGPU and be done with it, avoiding the need to call it in the frontends. | |||||
2021-11-16 | gl_texture_cache: Disable scissor test when scaling textures | ameerj | 1 | -0/+8 | |
Fixes a bug on BOTW where some objects were no longer being rendered after blitting | |||||
2021-11-16 | vk_texture_cache: Fix unsupported blit format error checking | ameerj | 2 | -9/+9 | |
2021-11-16 | vk_texture_cache: Fix early returns on unsupported scales | ameerj | 2 | -19/+11 | |
2021-11-16 | video_core: Misc resolution scaling related refactoring | ameerj | 8 | -47/+51 | |
2021-11-16 | texture_cache: Refactor scaled image size calculation | ameerj | 2 | -12/+13 | |
2021-11-16 | Texture Cache: Fix calculations when scaling. | Fernando Sahmkow | 1 | -0/+12 | |
2021-11-16 | gl_texture_cache: Fix BGR pbo size for scaled textures | ameerj | 1 | -11/+10 | |
2021-11-16 | rescaling_pass: Fix IR errors when unscalable texture types are encountered | ameerj | 1 | -0/+28 | |
2021-11-16 | Texture Cache: Fix Rescaling on Multisample | Fernando Sahmkow | 3 | -8/+21 | |
2021-11-16 | TextureCache: Base fixes on rescaling. | Fernando Sahmkow | 2 | -4/+6 | |
2021-11-16 | rescaling_pass: Logic simplification and minor style cleanup | ameerj | 2 | -33/+17 | |
2021-11-16 | rescaling_pass: Scale ImageFetch offset if it exists | ameerj | 1 | -59/+37 | |
Plus some code deduplication | |||||
2021-11-16 | rescaling_pass: Enable PatchImageQueryDimensions on fragment stages | ameerj | 1 | -5/+4 | |
2021-11-16 | vk_texture_cache: Simplify scaled image management | ameerj | 2 | -107/+34 | |
2021-11-16 | gl_texture_cache: Fix scaling backup logic | ameerj | 2 | -20/+16 | |
2021-11-16 | vk_rasterizer: Fix scaling on Y_NEGATE | ameerj | 1 | -3/+9 | |
2021-11-16 | vk_texture_cache: Use nearest neighbor scaling when available | ameerj | 4 | -29/+36 | |
2021-11-16 | gl_texture_cache: Fix depth and integer format scaling blits | ameerj | 2 | -16/+61 | |
2021-11-16 | gl_texture_cache/rescaling_pass: minor cleanup | ameerj | 3 | -16/+10 | |
2021-11-16 | vk_texture_cache: Minor cleanup | ameerj | 2 | -11/+8 | |
2021-11-16 | rescaling_pass: Fix and simplify shuffle/fragcoord pass | ameerj | 1 | -26/+20 | |
2021-11-16 | Shader: Don't rescale FragCoord if used by Shuffle | Fernando Sahmkow | 2 | -2/+55 | |
2021-11-16 | image_info: Mark MSAA textures as non-rescalable | ameerj | 1 | -2/+2 | |
Blitting or resolving multisampled images requires the dimensions of the src and dst to be equal for valid usage, making them difficult for resolution scaling using the current implementation. | |||||
2021-11-16 | bootmanager: Fix screenshot resolution factor usage | ameerj | 7 | -20/+13 | |
Fixes screenshots at non integer scaling | |||||
2021-11-16 | gl_texture_cache: Simplify scaling | ameerj | 2 | -31/+39 | |
We don't need to reconstruct new textures every time we ScaleUp/ScaleDown. We can scale up once, and revert to the original texture whenever scaling down. Fixes memory leaks due to glDeleteTextures being deferred for later handling on some drivers | |||||
2021-11-16 | Renderers: Unify post processing filter shaders | ameerj | 7 | -211/+36 | |
2021-11-16 | gl_texture_cache: fix scaling on upload | ameerj | 1 | -0/+7 | |
2021-11-16 | Renderer: Implement Bicubic and ScaleForce filters. | Fernando Sahmkow | 15 | -34/+620 | |
2021-11-16 | Texture Cache: fix scaling on upload and stop scaling on base resolution. | Fernando Sahmkow | 1 | -14/+32 | |
2021-11-16 | shader, video_core: Fix GCC build errors | ameerj | 3 | -14/+3 | |
2021-11-16 | emit_spirv: Fix RescalingLayout alignment | ameerj | 3 | -4/+8 | |
2021-11-16 | TextureCache: Fix Buffer Views Scaling. | Fernando Sahmkow | 2 | -5/+9 | |
2021-11-16 | RescalingPass: Agregate pixels on texelFetch while on Fragment Shader | Fernando Sahmkow | 1 | -3/+97 | |
2021-11-16 | Texture Cache: Correctly fix Blits Rescaling. | Fernando Sahmkow | 1 | -9/+12 | |
2021-11-16 | shader: Fix TextureSize check on rescaling. | Fernando Sahmkow | 1 | -27/+21 | |
2021-11-16 | texture_cache: Disable dst_image scaling in BlitImage | ameerj | 1 | -5/+7 | |
Fixes scaling in Super Mario Party | |||||
2021-11-16 | emit_spirv: Fix RescalingLayout alignment | ameerj | 2 | -3/+3 | |
2021-11-16 | shader: Properly scale image reads and add GL SPIR-V support | ReinUsesLisp | 25 | -77/+228 | |
Thanks for everything! | |||||
2021-11-16 | shader: Properly blacklist and scale image loads | ReinUsesLisp | 5 | -11/+31 | |
2021-11-16 | texture_cache: Add getter to query if image view is rescaled | ReinUsesLisp | 5 | -22/+12 | |
2021-11-16 | vk_rasterizer: Minor style change | ReinUsesLisp | 1 | -2/+2 | |
2021-11-16 | gl_texture_cache: Fix scaling blits | ReinUsesLisp | 1 | -20/+12 | |
2021-11-16 | glsl/glasm: Pass and use scaling parameters in shaders | ReinUsesLisp | 9 | -28/+51 | |
2021-11-16 | gl_rasterizer: Properly scale viewports and scissors | ReinUsesLisp | 1 | -23/+24 | |
2021-11-16 | gl_texture_cache: Fix multi layered texture Scale | ameerj | 1 | -11/+15 | |
2021-11-16 | gl_compute_pipeline: Add downscale factor to shader uniforms | ameerj | 1 | -0/+9 | |
2021-11-16 | gl_rasterizer: Fix rescale dirty state checking | ameerj | 1 | -4/+9 | |
2021-11-16 | gl_graphics_pipeline: Add downscale factor to shader uniforms | ameerj | 4 | -5/+19 | |
2021-11-16 | texture_cache: Fix blacklists on compute | ReinUsesLisp | 1 | -1/+1 | |
2021-11-16 | texture_cache: Simplify image view queries and blacklisting | ReinUsesLisp | 16 | -192/+192 | |
2021-11-16 | Vulkan: Fix downscaling Blit. | Fernando Sahmkow | 1 | -14/+18 | |
2021-11-16 | Texture Cache: Implement Rating System. | Fernando Sahmkow | 5 | -15/+47 | |
2021-11-16 | OpenGL: set linear mag filter when blitting a downscaled image. | Fernando Sahmkow | 1 | -0/+1 | |
2021-11-16 | Vulkan: Fix AA when rescaling. | Fernando Sahmkow | 1 | -1/+1 | |
2021-11-16 | Texture Cache: Implement Blacklisting. | Fernando Sahmkow | 5 | -4/+90 | |
2021-11-16 | main: Add resolution scale label in the status bar | Morph | 2 | -2/+12 | |
Shows the resolution scale as "Scale: {}x" in the status bar, where {} is a floating point value representing the current resolution scaling factor. | |||||
2021-11-16 | vulkan: Implement rescaling shader patching | ReinUsesLisp | 8 | -27/+103 | |
2021-11-16 | vk_texture_cache: Properly scale blit source images | ReinUsesLisp | 1 | -2/+2 | |
2021-11-16 | vk_graphics_pipeline: Use Shader::NumDescriptors when possible | ReinUsesLisp | 1 | -18/+6 | |
2021-11-16 | opengl: Use Shader::NumDescriptors when possible | ReinUsesLisp | 3 | -46/+20 | |
2021-11-16 | spirv: Implement rescaling patching | ReinUsesLisp | 8 | -5/+86 | |
2021-11-16 | shader/rescaling_pass: Patch more instructions | ReinUsesLisp | 1 | -4/+101 | |
2021-11-16 | shader: Add IsTextureScaled opcode | ReinUsesLisp | 10 | -0/+34 | |
2021-11-16 | texture_cache: Add image getters | ReinUsesLisp | 2 | -0/+16 | |
2021-11-16 | shader: Add copy constructor to instructions | ReinUsesLisp | 4 | -1/+20 | |
2021-11-16 | shader: Add integer division opcodes | ReinUsesLisp | 9 | -0/+37 | |
2021-11-16 | common/settings: Remove unused scaling options | ReinUsesLisp | 2 | -18/+7 | |
2021-11-16 | shader: Fix rescaling pass | ReinUsesLisp | 1 | -1/+1 | |
2021-11-16 | gl_texture_cache: Simplify rescaling | ameerj | 2 | -19/+15 | |
2021-11-16 | texture_cache: Fix typo in aliased image rescaling | ameerj | 1 | -1/+1 | |
2021-11-16 | vk_texture_cache: Simplify and optimize scaling blits | ReinUsesLisp | 1 | -106/+62 | |
2021-11-16 | vk_texture_cache: Fix scaling blit validation errors | ReinUsesLisp | 1 | -81/+78 | |
2021-11-16 | shader: Fix resolution scaling pass | ReinUsesLisp | 5 | -35/+32 | |
2021-11-16 | shader: Add resolution down factor opcode | ReinUsesLisp | 9 | -0/+25 | |
2021-11-16 | gl_texture_cache: Implement ScaleDown | ameerj | 2 | -26/+36 | |
2021-11-16 | gl_texture_cache: Rescale fixes for multi-layered textures | ameerj | 2 | -16/+32 | |
2021-11-16 | Texture Cache: Implement Rescaling on Aliases and Blits. | Fernando Sahmkow | 1 | -5/+53 | |
2021-11-16 | Fix blits with mips | ReinUsesLisp | 1 | -12/+16 | |
2021-11-16 | Fix blits | ReinUsesLisp | 1 | -10/+10 | |
2021-11-16 | renderer_gl: Resolution scaling fixes | ameerj | 3 | -61/+107 | |
2021-11-16 | TextureCache: Fix rescaling of ImageCopies | Fernando Sahmkow | 3 | -18/+67 | |
2021-11-16 | TextureCache: Modify Viewports/Scissors according to Rescale. | Fernando Sahmkow | 6 | -35/+93 | |
2021-11-16 | Settings: eliminate rescaling_factor. | Fernando Sahmkow | 7 | -37/+19 | |
2021-11-16 | Texture Cache: More rescaling fixes. | Fernando Sahmkow | 4 | -84/+96 | |
2021-11-16 | gl_texture_cache: WIP texture rescale | ameerj | 2 | -3/+69 | |
2021-11-16 | Texture Cache: Implement Vulkan UpScaling & DownScaling | Fernando Sahmkow | 6 | -42/+327 | |
2021-11-16 | ShaderDecompiler: Add initial support for rescaling. | Fernando Sahmkow | 2 | -0/+73 | |
2021-11-16 | Settings: Add resolution scaling to settings. | Fernando Sahmkow | 6 | -5/+155 | |
2021-11-16 | VideoCore: Initial Setup for the Resolution Scaler. | Fernando Sahmkow | 11 | -18/+255 | |
2021-11-13 | codes: Rename ComposeFrameHeader to ComposeFrame | ameerj | 7 | -14/+14 | |
These functions were composing the entire frame, not just the headers. Rename to more accurately describe them. | |||||
2021-11-13 | vp8: Implement header composition | ameerj | 4 | -6/+90 | |
Enables frame decoding with FFmpeg | |||||
2021-11-13 | codecs: Add VP8 codec class | ameerj | 9 | -20/+90 | |
2021-11-11 | program_metadata: Add default ThreadInfo kernel capability | OatmealDome | 1 | -1/+4 | |
2021-11-08 | applets/swkbd: Fix text check message encoding | Morph | 1 | -7/+15 | |
The text check message can be encoded in UTF-8. | |||||
2021-11-08 | applets/swkbd: Skip text checking if the text has been confirmed | Morph | 8 | -26/+36 | |
Confirm means that the text has already been checked by the application to be correct, but is asking the user for confirmation. The confirmation text itself seems to be corrupted though, this needs to be investigated. Fixes the software keyboard in Famicom Detective Club: The Missing Heir | |||||
2021-11-05 | service/pctl: Stub EndFreeCommunication | Narr the Reg | 1 | -1/+8 | |
- Used by Just Dance 2022 | |||||
2021-11-05 | vulkan_device: Add missing vulkan image format R5G6B5 in GetFormatProperties | Feng Chen | 1 | -0/+1 | |
- Used by Dragon Quest Builders | |||||
2021-11-05 | core: Reorder perf_stats destruction order on Shutdown | ameerj | 1 | -1/+1 | |
Avoids the gpu_core using perf_stats after it's been freed. | |||||
2021-11-04 | general: Get the current process program id directly from the system | Morph | 21 | -56/+42 | |
This allows us to avoid including KProcess' header file in files that only need to get the current process' program id. | |||||
2021-11-04 | general: Rename GetTitleID to GetProgramID | Morph | 24 | -43/+46 | |
2021-11-04 | service: aoc: Stub NotifyUnmountAddOnContent | Morph | 2 | -1/+9 | |
Used by Animal Crossing: New Horizons v2.0.0 DLC | |||||
2021-11-04 | service: aoc: Stub NotifyMountAddOnContent and NotifyMountAddOnContent | Morph | 2 | -0/+21 | |
Used by Animal Crossing: New Horizons v2.0.0 DLC | |||||
2021-11-04 | service/acc: Rename Unknown160 to InitializeApplicationInfoV2 | german77 | 3 | -3/+3 | |
2021-11-04 | service: acc: Stub acc:u0 '160' | Morph | 3 | -0/+9 | |
- Used by Animal Crossing: New Horizons v2.0.0 Since the name is currently unknown, '160' is used as a placeholder. | |||||
2021-11-04 | core: Fix transitive include build errors | ameerj | 5 | -0/+9 | |
2021-11-04 | core: Remove unused includes | ameerj | 133 | -221/+1 | |
2021-11-04 | Simply legacy attribute implement | Feng Chen | 3 | -152/+125 | |
2021-11-03 | svc: Correct WaitSynchronization num_handles param type | Morph | 2 | -4/+4 | |
num_handles is a s32 | |||||
2021-11-02 | general: Remove MakeResult helpers | Morph | 13 | -69/+48 | |
This is made obsolete by the presence of implicit constructors. | |||||
2021-11-02 | hle/result: Amend ResultVal documentation | Morph | 1 | -12/+10 | |
This amends the documentation slightly to reflect the updated interface. | |||||
2021-11-02 | hle/result: Reimplement ResultVal using Common::Expected | Morph | 1 | -117/+63 | |
Common::Expected effectively provides the same functions as ResultVal, so we can implement it with this. This can be replaced with std::expected with minimal effort should it be standardized in the C++ Standard Template Library. | |||||
2021-11-02 | common: Implement a subset of P0323 (std::expected) | Morph | 2 | -0/+988 | |
This implementation is based on and is a subset of the proposed implementation of std::expected https://github.com/TartanLlama/expected/blob/master/include/tl/expected.hpp | |||||
2021-11-02 | Refactor Logging Impl | Levi Behunin | 4 | -28/+41 | |
Loop on stop_token and remove final_entry in Entry. Move Backend thread out of Impl Constructor to its own function. Add Start function for backend thread. Use stop token in PopWait and check if entry filename is nullptr before logging. | |||||
2021-11-02 | Shader Cahe: Fix Phi Nodes on GLASM. | Fernando Sahmkow | 1 | -1/+1 | |
2021-11-01 | ShaderCache: Fix Phi Nodes Type on OGL. | Fernando Sahmkow | 3 | -2/+30 | |
2021-11-01 | gl_rasterizer: Remove unused includes | Morph | 1 | -4/+2 | |
This removes unused includes, especially the core includes which were causing this file to be recompiled every time files included by those headers are modified. | |||||
2021-10-31 | ShaderCache: Order Phi Arguments from farthest away to nearest. | Fernando Sahmkow | 5 | -0/+37 | |
2021-10-31 | Support gl_FogFragCoord attribute | vonchenplus | 3 | -48/+58 | |
2021-10-30 | yuzu qt: Disable the screensaver with SDL2 | lat9nq | 2 | -1/+23 | |
Disables the screen saver when a game boots using SDL2 so that it works on any supported platform. | |||||
2021-10-30 | profile_manager: Resize any image bigger than 256p | german77 | 1 | -0/+11 | |
2021-10-29 | CMakeLists: Document the /GT compile option | Morph | 1 | -0/+1 | |
2021-10-29 | file_sys: control_metadata: Add BrazilianPortuguese | Morph | 2 | -2/+4 | |
2021-10-29 | ns: language: Add BrazilianPortuguese to ApplicationLanguage | Morph | 2 | -1/+26 | |
It seems that Nintendo finally filled that last empty spot in ApplicationLanguage for a total of 16 supported languages. | |||||
2021-10-29 | gl_device: Force GLASM on NVIDIA drivers 495-496 | lat9nq | 1 | -0/+15 | |
GLSL shaders currently do not render correctly on the recent NVIDIA drivers. This adds a check that forces assembly shaders for these drivers since they seem unaffected and adds a warning informing of the decision. Developers can disable the check by enabling graphics debugging. | |||||
2021-10-28 | hle/result: Declare copy/move constructor/assignment as noexcept | Morph | 1 | -3/+3 | |
While we're at it, we can also declare these copy/move constructor/assignment as noexcept. | |||||
2021-10-28 | hle/result: Add move assignment operator in ResultVal | Morph | 1 | -0/+20 | |
ResultVal was missing a move assignment operator, add it. | |||||
2021-10-28 | hle/result: Remove cv-qualifiers from Arg in MakeResult | Morph | 1 | -2/+2 | |
This removes the const qualification for types when MakeResult(arg) is used in a const member function, allowing for automatic deduction and removing the need to manually specify the non-const type as the template argument. | |||||
2021-10-27 | Fix dangling kernel objects when exiting | Feng Chen | 2 | -11/+13 | |
2021-10-27 | Revert PR7009 | Feng Chen | 2 | -15/+5 | |
2021-10-27 | Fix memory leak | Feng Chen | 4 | -0/+38 | |
2021-10-26 | Support gl_BackSecondaryColor attribute | vonchenplus | 3 | -0/+33 | |
2021-10-26 | Support gl_FrontSecondaryColor attribute | vonchenplus | 3 | -0/+33 | |
2021-10-26 | Support gl_BackColor attribute | vonchenplus | 3 | -0/+33 | |
2021-10-26 | Geometry property removal and rewording | Moonlacer | 2 | -9/+1 | |
2021-10-24 | TexturePass: Fix clamping of images as this allowed negative indices. | Fernando Sahmkow | 1 | -1/+1 | |
2021-10-24 | Fixed ARM_Dynamic_64 Step | Andrew Strelsky | 1 | -1/+1 | |
2021-10-24 | Fixup channel submit IOCTL syncpoint parameters | Billy Laws | 2 | -21/+9 | |
The current arguments worked by happenstance as games only ever submit one syncpoint and request one fence back, if a game were to do something other than this then the arguments would've been parsed entirely wrong. | |||||
2021-10-23 | Vulran Rasterizer: address feedback. | Fernando Sahmkow | 1 | -3/+5 | |
2021-10-23 | Revert "input_common: Fix data race on GC implementation" | Fernando S | 2 | -120/+115 | |
2021-10-22 | Fix vulkan viewport issue | Feng Chen | 1 | -0/+1 | |
2021-10-20 | common/alignment: Fix VS2022 compilation | ameerj | 1 | -1/+6 | |
VS2022 seems to introduce an optimization when moving vectors to check for equality of the element values. AlignmentAllocator needed to overload the equality operator to fix compilation of its usage in vector moving. | |||||
2021-10-20 | input_common: Fix VS2022 compilation errors | ameerj | 1 | -39/+35 | |
2021-10-17 | emit_spirv_image: Fix depth image implicit lod sample in compute | ameerj | 1 | -5/+16 | |
Ensures all drivers behave the same way in this case. | |||||
2021-10-17 | settings: Remove std::chrono usage | ameerj | 7 | -24/+20 | |
Alleviates the dependency on chrono for all files that include settings.h | |||||
2021-10-17 | add_link | Moonlacer | 1 | -2/+2 | |
remove_accident fix_whoopsie | |||||
2021-10-17 | Shader Compiler: avoid overflowed indices on indixed samplers. | Fernando Sahmkow | 1 | -1/+2 | |
2021-10-16 | SVC: Implement svcInfo:IdleTickCount | Fernando Sahmkow | 2 | -0/+22 | |
Used by the Witcher 3 | |||||
2021-10-16 | main: fix typo in warning message | Romain Failliot | 1 | -1/+1 | |
2021-10-16 | main: Add missing make_unique for ui | Morph | 1 | -1/+1 | |
2021-10-16 | service/vi: Stub IHOSBinderDriver::TransactParcel GetBufferHistory (#7184) | Feng Chen | 1 | -1/+11 | |
2021-10-16 | qt_web_browser: Add missing QApplication include | Morph | 1 | -0/+1 | |
2021-10-16 | NvHost/Core: Address Feedback. | Fernando Sahmkow | 3 | -19/+27 | |
2021-10-16 | Suspend temporally | FernandoS27 | 3 | -1/+31 | |
2021-10-16 | NVHost_Ctrl: Force wait if the gpu falls behind too long. | FernandoS27 | 2 | -0/+13 | |
2021-10-15 | ui: fix crash when closing configure window | Romain Failliot | 1 | -2/+5 | |
This crash happens 100% of the time (on Linux at least), you just need to open the configure window and click OK. It seems to happen when the tabs are destroyed and once all the tabs are destroyed, a final signal is sent with `index == -1`. So `debug_tab_tab` doesn't exist anymore when this happens, so the crash. | |||||
2021-10-15 | bootmanager: Forward declare System and SystemResultStatus | Morph | 1 | -1/+5 | |
2021-10-15 | yuzu: Construct system in GMainWindow | Morph | 2 | -81/+83 | |
2021-10-15 | core: Move ResultStatus outside of System | Morph | 7 | -67/+69 | |
Allows it to be a forward declaration in other header files. | |||||
2021-10-15 | yuzu_cmd: Remove remaining static system instances | Morph | 1 | -3/+2 | |
2021-10-15 | core: Remove static system instance | Morph | 2 | -28/+5 | |
2021-10-15 | Hide mouse cursor by default | Romain Failliot | 1 | -1/+1 | |
2021-10-15 | main: Slightly refactor NCA entry installation in InstallNCA (#7181) | Creak | 1 | -8/+6 | |
* main: Slightly refactor NCA entry installation in InstallNCA Co-authored-by: Ameer J <52414509+ameerj@users.noreply.github.com> | |||||
2021-10-15 | main: Use std::unique_ptr for ui | Morph | 2 | -137/+142 | |
2021-10-15 | configuration: Use std::make_unique instead of operator new for ui | Morph | 13 | -14/+15 | |
2021-10-15 | config: Read network_interface | lat9nq | 2 | -0/+9 | |
Let's yuzu_cmd use a network interface. Also adds it to the default ini. | |||||
2021-10-15 | settings_ui: Better NVDEC Description For Each Video Rendering Option (#7165) | Moonlacer | 1 | -3/+3 | |
* better_description * Revert "better_description" This reverts commit 3a152a6ba6f2d6e02530b69a8194e4db302c8acd. * better_nvdec_wording * best_performance * update_word_stuff * another_update | |||||
2021-10-14 | string_util: Make use of std::string_view and add bounds checking | Morph | 2 | -5/+5 | |
Makes use of std::string_view in StringFromFixedZeroTerminatedBuffer and add bounds checking | |||||
2021-10-14 | string_util: Prevent out of bounds access in u16string_view buffer | Morph | 1 | -2/+2 | |
2021-10-13 | KPageTable: Perform ranged invalidation when unmapping code memory | Morph | 1 | -0/+2 | |
Co-Authored-By: Fernando S. <1731197+FernandoS27@users.noreply.github.com> | |||||
2021-10-12 | common/fs/path_util: Slightly refactor PathManagerImpl's constructor | Creak | 1 | -12/+15 | |
This moves all GenerateYuzuPath calls outside of the platofrm-specific #ifdefs, replacing them with assignments to paths. | |||||
2021-10-12 | Create local variables for mouse and wheel positions | Romain Failliot | 1 | -5/+9 | |
2021-10-12 | Fix a few warnings | Romain Failliot | 3 | -6/+5 | |
- configure_input_player_widget.cpp: always better to use `const auto &` whenever possible - profiler.cpp: `ev->pos()` is deprecated, replace with `ev->position()`, which returns floats, thus the addition of `.toPoint()` (same as what's happening in `pos()`) - game_list.cpp: `QString::SplitBehavior` is deprecate, use `Qt::` namespace instead | |||||
2021-10-11 | input_common/sdl: Fix joystick range | german77 | 1 | -3/+4 | |
2021-10-11 | main: Add option to reset window size to 900p | ameerj | 3 | -36/+53 | |
2021-10-11 | applets/web: Fallback to loader to get the manual romfs if none is found | Feng Chen | 1 | -0/+10 | |
2021-10-11 | vic: Use the minimum of surface/frame dimensions when writing the final frame to the GPU | ameerj | 1 | -16/+15 | |
Addresses possible buffer overflow behavior. | |||||
2021-10-10 | h264: Use max allowed max_num_ref_frames when using CPU decoding | Feng Chen | 1 | -1/+6 | |
2021-10-09 | vic: Allow surface to be higher than frame | Valeri | 1 | -2/+3 | |
Touhou Genso Wanderer Lotus Labyrinth R decodes 1920x1080 videos into 1920x1088 surface. Only allow mismatch for height, since larger width would result in increasingly offset rows and somewhat defeat entire purpose of this check. | |||||
2021-10-08 | Update configure_tas.ui | Levi Behunin | 1 | -8/+0 | |
Remove the geometry property again(7045) after 7090 re-added. | |||||
2021-10-08 | vic: Avoid memory corruption when multiple streams with different dimensions are decoded | ameerj | 1 | -0/+9 | |
This is a work around to avoid buffer overflow errors until multi channel/multi stream decoding is supported. | |||||
2021-10-07 | vic: Refactor frame writing methods | ameerj | 2 | -138/+146 | |
2021-10-07 | discord_impl: Remove global system instances | lat9nq | 3 | -6/+13 | |
2021-10-07 | game_list: Remove global instances of Core::System | lat9nq | 5 | -13/+19 | |
2021-10-07 | configuration: Add const qualifier where able | lat9nq | 18 | -31/+28 | |
2021-10-07 | yuzu qt: Remove global system instances from config, WaitTree, main | lat9nq | 69 | -636/+688 | |
2021-10-07 | kernel: hle_ipc: Foward declare KAutoObject | Morph | 2 | -1/+2 | |
2021-10-07 | service: Reduce header include overhead | Morph | 31 | -39/+11 | |
2021-10-07 | vic: Implement RGBX frame format | ameerj | 2 | -3/+15 | |
2021-10-04 | Vulkan: Fix failing barrier on refresh. | Fernando Sahmkow | 1 | -1/+2 | |
2021-10-04 | RasterizerInterface: Correct size of CPU addresses to cache. | FernandoS27 | 1 | -1/+1 | |
2021-10-04 | Vulkan: Fix the master Semaphore | FernandoS27 | 1 | -4/+12 | |
2021-10-03 | nvflinger: Use jthread and stop_token for VSync thread | ameerj | 2 | -32/+8 | |
Avoids a destruction data race that may occur on the vsync thread | |||||
2021-10-03 | nvhost_ctrl: Refactor usage of gpu.LockSync() | ameerj | 3 | -35/+16 | |
This seems to only be used to protect a later gpu function call. So we can move the lock into that call instead. | |||||
2021-10-03 | gpu: Migrate implementation to the cpp file | ameerj | 19 | -632/+875 | |
2021-10-02 | service: am: Make use of Exit to exit the currently running application | Morph | 1 | -2/+2 | |
This also moves the call to the end to ensure services are properly destructed on exit. | |||||
2021-10-02 | yuzu: main: Register a callback for Exit | Morph | 4 | -0/+17 | |
2021-10-02 | core: Add Exit and ExitCallback | Morph | 2 | -0/+25 | |
This allows ISelfController::Exit to stop the currently running application. This is typically used by homebrew to exit back to the homebrew menu after calling consoleExit with libnx. | |||||
2021-10-02 | service: Replace service event creation with ServiceContext::CreateEvent | Morph | 26 | -271/+367 | |
The service context helps to manage all created events and allows us to close them upon destruction. | |||||
2021-10-02 | network: Do not log IP address | Morph | 1 | -2/+0 | |
Logging this may be a privacy concern for some users. | |||||
2021-10-02 | common/logging: Reduce scope of fmt include | ameerj | 4 | -1/+5 | |
2021-10-02 | common/logging: Move Log::Entry declaration to a separate header | ameerj | 12 | -17/+48 | |
This reduces the load of requiring to include std::chrono in all files which include log.h | |||||
2021-10-01 | main: Don't add an extra separator when the title version is absent | lat9nq | 1 | -2/+7 | |
Some titles, such as homebrew, do not have any version string. Because yuzu hard codes the title bar string assuming a version string is preset, booting homebrew causes yuzu to add an extra separator with no content between. This uses a lambda expression to prevent that from happening. | |||||
2021-09-30 | prevent access violation from iob in Memory::IsValidVirtualAddress | Andrew Strelsky | 1 | -1/+5 | |
2021-09-29 | Fixed invalid iterator usage | Andrew Strelsky | 1 | -1/+1 | |
2021-09-29 | style: Remove extra space preceding the :: operator | Morph | 8 | -10/+10 | |
2021-09-29 | CMakeLists: Remove BoxCat build option | Morph | 1 | -4/+0 | |
2021-09-29 | settings: Remove BCAT settings | Morph | 5 | -17/+0 | |
2021-09-29 | configure_network: Remove BCAT | Morph | 3 | -208/+0 | |
2021-09-29 | service: bcat: Remove BoxCat BCAT implementation | Morph | 4 | -631/+0 | |
The current implementation of BoxCat as it stands is non-functional due to the reliance on a server providing BCAT files. This implementation will eventually be replaced with one that allows the use of local BCAT files dumped from a Nintendo Switch. | |||||
2021-09-29 | configure_tas: Remove help button from dialog window | Moonlacer | 1 | -0/+1 | |
2021-09-29 | configure_tas: Ensure dialog buttons always stay at the bottom | Moonlacer | 1 | -146/+187 | |
Previously, the dialog buttons would be floating in-place when the dialog is stretched downwards. This change ensures that the dialog buttons always stay at the bottom of the window. | |||||
2021-09-29 | externals: Remove libzip | Morph | 1 | -1/+1 | |
2021-09-29 | file_sys: Remove vfs_libzip | Morph | 3 | -103/+0 | |
2021-09-29 | Fix KShareMemory object leak | Feng Chen | 5 | -3/+106 | |
2021-09-28 | vk_graphics_pipeline: Force patch list topology when tessellation is used | ameerj | 1 | -1/+10 | |
Fixes a crash on some drivers when tessellation is used but the IA topology is not patch list. | |||||
2021-09-27 | service/es: Update to 13.0.0 | german77 | 1 | -0/+6 | |
2021-09-27 | service/npns: Update to 13.0.0 | german77 | 1 | -0/+1 | |
2021-09-27 | service/vi: Update to 13.0.0 | german77 | 2 | -0/+2 | |
2021-09-27 | service/am: Update to 13.0.0 | german77 | 1 | -0/+4 | |
2021-09-27 | service/audio: Update to 13.0.0 | german77 | 2 | -1/+10 | |
2021-09-27 | service/hid: Update to 13.0.0 | german77 | 2 | -0/+10 | |
2021-09-27 | service/btdrv: Update to 13.0.0 | german77 | 1 | -0/+4 | |
2021-09-27 | service/usb: Update to 13.0.0 | german77 | 1 | -3/+3 | |
2021-09-25 | Fix KScopedAutoObject object leak when SendSyncRequest | Feng Chen | 1 | -6/+8 | |
2021-09-25 | service: bsd: Stub Read | Morph | 1 | -6/+5 | |
- Used by Diablo II: Resurrected | |||||
2021-09-24 | service: bsd: Implement Read | Morph | 2 | -1/+15 | |
- Used by Diablo II: Resurrected | |||||
2021-09-24 | general: Update style to clang-format-12 | ameerj | 13 | -66/+62 | |
2021-09-24 | video_core: Fix jthread related hangs when stopping emulation | ameerj | 2 | -2/+2 | |
jthread on some compilers is more picky when it comes to the order in which objects are destroyed. | |||||
2021-09-24 | vk_texture_cache: Disable cube compatibility flag on non-mesa AMD GCN4 and earlier | ameerj | 3 | -11/+22 | |
Fixes rainbow textures on BOTW. | |||||
2021-09-24 | Vulkan Query Cache: make sure to wait for the query result. | Fernando Sahmkow | 1 | -1/+2 | |
2021-09-24 | QueryCache: Flush queries in order of running. | Fernando Sahmkow | 1 | -4/+4 | |
2021-09-23 | Use subdirectory of main data directory for QtWebEngine storage | v1993 | 1 | -0/+3 | |
Previously, an unrelated directory was used for this. Keep everything together for consistency. | |||||
2021-09-23 | Vulkan Rasterizer: Correct DepthBias/PolygonOffset on Vulkan. | Fernando Sahmkow | 6 | -3/+29 | |
2021-09-23 | core/profile_select: Avoid uninitialized read in SelectProfile() | Lioncash | 1 | -1/+2 | |
The default constructor of UUID doesn't initialize its data members, so we need to directly initialize it to be invalid. | |||||
2021-09-22 | common/uuid: Add validity checking functions to interface | Lioncash | 4 | -7/+14 | |
Given we have a function to invalidate, we should also have ones to query the validity. Also makes the code more straightforward to read. | |||||
2021-09-22 | Clean-up and nits | Levi Behunin | 1 | -121/+60 | |
Remove redundent label, rearange checkboxs to keep same 3 per column layout, remove unneeded properties. | |||||
2021-09-21 | Clean-up | Levi Behunin | 1 | -44/+14 | |
Numerize names, remove unneeded properties and spacer. | |||||
2021-09-20 | maxwell_dma: Minor refactoring | ameerj | 2 | -33/+33 | |
2021-09-20 | buffer_cache: Minor fixes | ameerj | 2 | -6/+4 | |
Loop through the tmp_intervals by reference, rather than by copy, and fix gl clear buffer size calculation. | |||||
2021-09-19 | Tas configure ui nits | Levi Behunin | 1 | -4/+4 | |
Text looked cramped on my pc (Ubuntu 21.04). Re-flowed text as well for nicer read. | |||||
2021-09-18 | UI: Relocate tas menu and add brief description | german77 | 10 | -68/+148 | |
2021-09-18 | input_common/tas: new update method | german77 | 5 | -17/+4 | |
2021-09-18 | input_common/tas: Document the main class | german77 | 8 | -51/+153 | |
2021-09-18 | input_common/tas: Add swap controller | german77 | 8 | -39/+99 | |
2021-09-18 | input_common/tas: overwrite file dialog | german77 | 3 | -20/+16 | |
2021-09-18 | input_common/tas: Fallback to simple update | MonsterDruide1 | 10 | -102/+60 | |
2021-09-18 | config: Move TAS options to it's own menu | german77 | 19 | -184/+452 | |
2021-09-18 | core: Hacky TAS syncing & load pausing | MonsterDruide1 | 9 | -107/+140 | |
To keep the TAS inputs synced to the game speed even through lag spikes and loading zones, deeper access is required. First, the `TAS::UpdateThread` has to be executed exactly once per frame. This is done by connecting it to the service method the game calls to pass parameters to the GPU: `Service::VI::QueueBuffer`. Second, the loading time of new subareas and/or kingdoms (SMO) can vary. To counteract that, the `CPU_BOOST_MODE` can be detected: In the `APM`-interface, the call to enabling/disabling the boost mode can be caught and forwarded to the TASing system, which can pause the script execution if neccessary and enabled in the settings. | |||||
2021-09-18 | main: TAS Playback state label | MonsterDruide1 | 2 | -0/+10 | |
During script playback/recording, the user has to see what happens currently. For that, a new label has been added to the bottom-left corner, always displaying the current state of the TASing system. | |||||
2021-09-18 | settings: File selector & other settings | MonsterDruide1 | 9 | -2/+104 | |
First of all, TASing requires a script to play back. The user can select the parent directory at `System -> Filesystem`, next to an option to pause TAS during loads: This requires a "hacky" setup deeper in the code and will be added in the last commit. Also, Hotkeys are being introduced: CTRL+F5 for playback start/stop, CTRL+F6 for re-reading the script and CTRL+F7 for recording a new script. | |||||
2021-09-18 | input_common/tas: Base playback & recording system | MonsterDruide1 | 14 | -9/+818 | |
The base playback system supports up to 8 controllers (specified by `PLAYER_NUMBER` in `tas_input.h`), which all change their inputs simulataneously when `TAS::UpdateThread` is called. The recording system uses the controller debugger to read the state of the first controller and forwards that data to the TASing system for recording. Currently, this process sadly is not frame-perfect and pixel-accurate. Co-authored-by: Naii-the-Baf <sfabian200@gmail.com> Co-authored-by: Narr-the-Reg <juangerman-13@hotmail.com> | |||||
2021-09-18 | If not on Windows, disable raw input | Valeri | 1 | -0/+4 | |
This way, if someone copies their Windows config to other OS, they won't be stuck without web applet for no apparent reason. | |||||
2021-09-18 | Hide XInput bypass on non-Windows OSes | Valeri | 1 | -0/+4 | |
Follow-up to #6950. This option is a no-op on other OSes and only serves to spread confusion there. | |||||
2021-09-17 | host_shaders: Remove opengl_copy_bgra.comp | ameerj | 4 | -19/+0 | |
2021-09-17 | gl_texture_cache: Migrate BGRCopyPass from util_shaders | ameerj | 4 | -42/+48 | |
The BGR copies no longer use shaders. | |||||
2021-09-16 | vulkan_device: Reorder Float16Int8 declaration | ameerj | 1 | -1/+2 | |
This variable was going out of scope before its usage in the vulkan device creation, causing a crash on very specific drivers. | |||||
2021-09-16 | Revert "Merge pull request #7006 from FernandoS27/a-motherfucking-driver" | ameerj | 1 | -13/+1 | |
This reverts commit 62e88d0e7455e37840db7e2a8e199bc6ca176966, reversing changes made to edf3da346f4ec0ca492b427f4f693d56e84abc52. | |||||
2021-09-16 | fix_clang_error | Moonlacer | 1 | -1/+0 | |
2021-09-16 | util_shaders: Unify BGRA copy passes | ameerj | 5 | -82/+36 | |
2021-09-16 | fix_accidental_deletion | Moonlacer | 1 | -1/+2 | |
2021-09-16 | remove-audio-stretching-setting | Moonlacer | 8 | -30/+1 | |
2021-09-16 | vk_scheduler: Use std::jthread | ameerj | 2 | -17/+9 | |
2021-09-16 | gpu: Use std::jthread for async gpu thread | ameerj | 5 | -69/+18 | |
2021-09-16 | threadsafe_queue: Add std::stop_token overload to PopWait | ameerj | 1 | -5/+22 | |
Useful for jthreads which make use of the threadsafe queues. | |||||
2021-09-15 | audin_u: Return a buffer event in RegisterBufferEvent | lat9nq | 2 | -2/+12 | |
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com> | |||||
2021-09-15 | audin_u: stub Start, RegisterBufferEvent, AppendAudioInBufferAuto | lat9nq | 2 | -26/+57 | |
This also moves IAudioIn's definition to the header. Required for Splatoon 2 LAN play. | |||||
2021-09-15 | Build System: Build with JCC Erratum Mitigation | Fernando Sahmkow | 1 | -0/+5 | |
2021-09-15 | Spir-V: Rescale the frag depth to 0,1 mode when -1,1 mode is used in Vulkan. | Fernando Sahmkow | 1 | -1/+7 | |
2021-09-15 | ngct: Stub Match | Narr the Reg | 1 | -1/+14 | |
Needed for Cruis'n Blast | |||||
2021-09-14 | renderers: Log total pipeline count | Morph | 2 | -0/+4 | |
2021-09-14 | vfs: Partially implement GetFileTimeStampRaw | Morph | 8 | -1/+83 | |
Gets rid of homebrew warnings using this func | |||||
2021-09-14 | core: Destroy main_process during shutdown | ameerj | 1 | -3/+12 | |
The main_process was never being cleaned up, causing a noticeable memory leak after subsequent launches. This change cleans up the memory during Core Shutdown, mitigating the leak. | |||||
2021-09-14 | vulkan_debug_callback: Ignore InvalidCommandBuffer-VkDescriptorSet errors | ameerj | 1 | -0/+1 | |
This validation error is spammed on some titles, asserting that VkDescriptorSet 0x0[] was destroyed. This is likely a validation layer bug when using VK_KHR_push_descriptor, which can avoid using traditional VkDescriptorSet. It should be safe to ignore for now. | |||||
2021-09-13 | Vulkan: Disable VK_EXT_SAMPLER_FILTER_MINMAX in GCN AMD since it's broken. | Fernando Sahmkow | 1 | -6/+20 | |
2021-09-13 | Vulkan: Blacklist Int8Float16 Extension on AMD on driver 21.9.1 | Fernando Sahmkow | 1 | -1/+13 | |
2021-09-13 | Vulkan/Descriptors: Increase sets per pool on AMFD propietary driver. | Fernando Sahmkow | 3 | -3/+14 | |
2021-09-13 | common_funcs: Add enum flag bitwise shift operator overloads | Morph | 1 | -0/+16 | |
This adds bitwise shift operator overloads (<<, >>, <<=, >>=) in the macro DECLARE_ENUM_FLAG_OPERATORS(type) | |||||
2021-09-13 | vk_swapchain: Use immediate present mode when mailbox is unavailable and FPS is unlocked | ameerj | 3 | -4/+38 | |
Allows drivers that do not support VK_PRESENT_MODE_MAILBOX_KHR the ability to present at a framerate higher than the monitor's refresh rate when the FPS is unlocked. | |||||
2021-09-12 | vk_rasterizer: Fix dynamic StencilOp updating when two faces are enabled | ameerj | 1 | -6/+8 | |
This function was incorrectly using the stencil_two_side_enable register when dynamically updating the StencilOp. | |||||
2021-09-12 | vk_state_tracker: Remove unused function | ameerj | 1 | -4/+0 | |
2021-09-12 | FS: Mark recursive CreateDirectory as inaccurate and temporary | Morph | 1 | -0/+5 | |
2021-09-12 | main: Apply confirm exit setting in exit locked scenarios | ameerj | 1 | -11/+9 | |
Some titles set an exit lock through HLE, which prompts an exit confirmation when stopping emulation if the system is locked. This change allows bypassing this confirmation if the setting to confirm exits has been disabled by the user. | |||||
2021-09-11 | shader_environment: Add missing <algorithm> include | Morph | 1 | -0/+1 | |
2021-09-11 | vk_descriptor_pool: Add missing <algorithm> include | Morph | 1 | -0/+1 | |
2021-09-11 | slot_vector: Add missing <algorithm> include | Morph | 1 | -0/+1 | |
2021-09-11 | video_core/memory_manager: Add missing <algorithm> include | Morph | 1 | -0/+2 | |
2021-09-11 | kernel: Add missing <functional> include | Morph | 1 | -0/+1 | |
2021-09-11 | file_sys/kernel_executable: Add missing <string> include | Morph | 1 | -0/+1 | |
2021-09-11 | codec: Add missing <string_view> include | Morph | 1 | -0/+1 | |
2021-09-11 | common_funcs: Replace <algorithm> with <iterator> | Morph | 1 | -1/+1 | |
2021-09-11 | common: Move error handling to error.cpp/h | Morph | 6 | -18/+34 | |
This allows us to avoid implicitly including <string> every time common_funcs.h is included. | |||||
2021-09-10 | am: Implement GetNotificationStorageChannelEvent | german77 | 2 | -2/+16 | |
2021-09-10 | hid: Stub SetTouchScreenConfiguration | german77 | 3 | -1/+28 | |
2021-09-10 | input_common: Enable steam controllers and 8 player support | german77 | 8 | -11/+35 | |
2021-09-10 | api_version: Update and add AtmosphereTargetFirmware | Morph | 1 | -5/+12 | |
2021-09-08 | Addressed issues | Chloe | 1 | -1/+1 | |
Co-authored-by: Mai M. <mathew1800@gmail.com> | |||||
2021-09-08 | Mark is_complete as atomic | Chloe Marcec | 2 | -4/+5 | |
2021-09-08 | Addressed issues | Chloe Marcec | 3 | -15/+14 | |
2021-09-08 | Detail adjustment | Feng Chen | 1 | -13/+14 | |
2021-09-08 | Detail adjustment | Feng Chen | 2 | -28/+35 | |
2021-09-07 | Re-implement get unused location | Feng Chen | 1 | -30/+30 | |
2021-09-07 | Move attribute related definitions to spirv anonymous namespace | Feng Chen | 4 | -30/+26 | |
2021-09-07 | input_common: Add alternative string for joycons | german77 | 1 | -2/+16 | |
2021-09-07 | nvflinger: Use external surface format for framebuffer creation | ameerj | 3 | -7/+8 | |
The format member the IGBPBuffer may not always specify the correct desired format. Using the external format member ensures a valid format is provided when creating the framebuffer. Fixes homebrew using the wrong framebuffer format. | |||||
2021-09-07 | Fix blend equation enum error | Feng Chen | 1 | -4/+4 | |
2021-09-06 | Second part of Golden's PR | Moonlacer | 2 | -3/+3 | |
2021-09-06 | Rename all shader cache references to pipeline cache | Matías Locatti | 1 | -4/+4 | |
After Hades, both OpenGL and Vulkan use a pipeline cache instead of single stages of the graphics pipeline. Renamed the Remove menu entries to match. | |||||
2021-09-06 | address name shadowing with system | Chloe Marcec | 1 | -2/+2 | |
2021-09-06 | account: EnsureTokenIdCacheAsync | Chloe Marcec | 4 | -19/+154 | |
Closes #2547, #6946 | |||||
2021-09-06 | FS: Recursively create directories for CreateDirectory | Chloe Marcec | 1 | -8/+13 | |
Originally we only created the parent directory, this caused issues for creating directories which also contained subdirectories, eg `/Folder1/Folder2` This allows the ultimate mod manager homebrew to at least boot | |||||
2021-09-06 | Dynamic get unused location | Feng Chen | 1 | -27/+49 | |
2021-09-06 | Implement intput and output fixed fnc textures | Feng Chen | 4 | -19/+25 | |
2021-09-05 | core: hle: service: buffer_queue: Improve management of KEvent. | bunnei | 3 | -14/+24 | |
2021-09-04 | core: hle: service: nvflinger/vi: Improve management of KEvent. | bunnei | 4 | -16/+30 | |
2021-09-04 | core: cpu_manager: Use jthread. | bunnei | 2 | -18/+13 | |
2021-09-03 | Rename parameters | Feng Chen | 5 | -14/+24 | |
2021-09-03 | Fix create GraphicsPipelines crash | Feng Chen | 1 | -5/+5 | |
2021-09-02 | renderer_vulkan: Wait on present semaphore at queue submit | ameerj | 5 | -26/+33 | |
The present semaphore is being signalled by the call to acquire the swapchain image. This semaphore is meant to be waited on when rendering to the swapchain image. Currently it is waited on when presenting, but moving its usage to be waited on in the command buffer submission allows for proper usage of this semaphore. Fixes the device lost when launching titles on the Intel Linux Mesa driver. | |||||
2021-09-02 | Add input/output location | Feng Chen | 1 | -5/+13 | |
2021-09-02 | common/logging: Add missing include | german77 | 1 | -0/+1 | |
2021-08-31 | emit_glsl_warp: Fix shuffle ops for 64-thread warp sizes | ameerj | 1 | -24/+36 | |
2021-08-31 | emit_glsl_warp: Fix ballot related ops for 64-thread warp sizes | ameerj | 1 | -24/+38 | |
2021-08-31 | emit_spirv_warp: Fix shuffle ops for 64-thread warp sizes | ameerj | 1 | -1/+29 | |
2021-08-31 | emit_spirv_warp: Fix ballot related ops for 64-thread warp sizes | ameerj | 1 | -10/+11 | |
2021-08-31 | Add colorfront and txtcoord support | Feng Chen | 5 | -0/+57 | |
2021-08-30 | structured_control_flow: Skip reordering nested demote branches. | ameerj | 1 | -0/+11 | |
Nested demote branches add complexity with combining the condition if it has not been initialized yet. Skip them for the time being. | |||||
2021-08-30 | structured_control_flow: Conditionally invoke demote reorder pass | ameerj | 7 | -10/+23 | |
This is only needed on select drivers when a fragment shader discards/demotes. | |||||
2021-08-29 | Garbage Collection: Make it more agressive on high priority mode. | Fernando Sahmkow | 3 | -5/+5 | |
2021-08-29 | Garbage Collection: Adress Feedback. | Fernando Sahmkow | 4 | -17/+23 | |
2021-08-29 | vulkan_device: Enable VK_KHR_swapchain_mutable_format if available | ameerj | 3 | -0/+27 | |
Silences validation errors when creating sRGB image views of linear swapchain images | |||||
2021-08-29 | vk_swapchain: Prefer linear swapchain format when presenting sRGB images | ameerj | 3 | -11/+10 | |
Fixes broken sRGB when presenting from a secondary GPU. | |||||
2021-08-28 | Garbage Collection: enable as default, eliminate option. | Fernando Sahmkow | 9 | -26/+2 | |
2021-08-28 | VideoCore: Rework Garbage Collection. | Fernando Sahmkow | 6 | -101/+213 | |
2021-08-28 | structured_control_flow: Add DemoteCombinationPass | ameerj | 1 | -1/+107 | |
Some drivers misread data when demotes are interleaved in the program. This moves demote branches to be checked at the end of the program. Fixes "wireframe" issue in Pokemon SwSh on some drivers | |||||
2021-08-27 | ngct: Stub NGCT:U service | german77 | 6 | -0/+72 | |
2021-08-27 | Revert "logging: Display backtrace on crash" | Morph | 2 | -114/+1 | |
2021-08-27 | service: nifm: Populate fields in GetCurrentNetworkProfile | Morph | 1 | -29/+37 | |
Populates the current_address, subnet_mask, and gateway fields from the selected network interface. | |||||
2021-08-27 | service: nifm: Cleanup GetCurrentIpConfigInfo | Morph | 1 | -26/+21 | |
2021-08-27 | network_interface: Cleanup code | Morph | 1 | -76/+83 | |
2021-08-27 | network_interface: Replace default return value with std::nullopt | Morph | 1 | -6/+6 | |
2021-08-27 | emit_spirv_context_get_set: Fix Get FrontFace return value | ameerj | 1 | -2/+3 | |
The IR expects GetAttribute to return an F32 value. This case was returning a U32 instead. | |||||
2021-08-26 | Revert "kernel: Various improvements to scheduler" | bunnei | 23 | -224/+140 | |
2021-08-26 | vp9_types: Minor refactor of VP9 info structs. | ameerj | 1 | -32/+29 | |
2021-08-26 | vp9_types: Remove unused Vp9PictureInfo members | ameerj | 2 | -24/+1 | |
2021-08-25 | vulkan_device: Add a check for int8 support | ameerj | 3 | -9/+19 | |
Silences validation errors when shaders use int8 without specifying its support to the API | |||||
2021-08-24 | logging: Fix log filter during initialization | ameerj | 4 | -12/+16 | |
The log filter was being ignored on initialization due to the logging instance being initialized before the config instance, so the log filter was set to its default value. This fixes that oversight, along with using descriptive exceptions instead of abort() calls. | |||||
2021-08-22 | CMakeLists: Ensure proper numerusform tags are generated for pluralized translations | Lioncash | 1 | -1/+8 | |
If we don't set an explicit source and target language for the base english translation, then we'll generate an incorrect number of <numerusform> tags (which Transifex doesn't like). | |||||
2021-08-21 | settings: Amend language_index maximum setting range | Morph | 1 | -1/+1 | |
The maximum is now 17 with the addition of Brazilian Portuguese | |||||
2021-08-21 | vk_rasterizer: Only clear depth and stencil buffers when set in attachment aspect mask | ameerj | 3 | -6/+24 | |
Silences validation errors for clearing the depth/stencil buffers of framebuffer attachments that were not specified to have depth/stencil usage. | |||||
2021-08-19 | GPU_MemoryManger: Fix GetSubmappedRange. | Fernando Sahmkow | 1 | -0/+1 | |
2021-08-19 | Replace QPoint with QPointF where applicable | Valeri | 1 | -16/+18 | |
Previously, floats were implicitly cast to integers | |||||
2021-08-19 | qt_software_keyboard: fix copy-paste error | Valeri | 1 | -1/+1 | |
2021-08-19 | video_core: eliminate constant ternary | Valeri | 1 | -1/+1 | |
`via_header_index` is already checked above, so it would never be true in this branch | |||||
2021-08-19 | applet_error: Fix 64-bit error code conversion | Morph | 1 | -6/+25 | |
2021-08-19 | SPIR-V: Merge two ifs in EmitGetAttribute | Valeri | 1 | -6/+2 | |
2021-08-19 | Fix crash in logging in CreateStrayLayer | Valeri | 1 | -1/+1 | |
It was trying to log value of layer_id which is specifically known not to exist, potentially leading to segfault. Log display_id instead. | |||||
2021-08-19 | Fix check is thread current in GetThreadContext | Valeri | 1 | -1/+1 | |
Misplaced break made it only check for the first core. | |||||
2021-08-16 | h264: Lower max_num_ref_frames | ameerj | 1 | -1/+2 | |
GPU decoding seems to be more picky when it comes to the maximum number of reference frames. | |||||
2021-08-16 | configure_graphics: Add GPU nvdec decoding as an option | ameerj | 12 | -27/+120 | |
Some system configurations may see visual regressions or lower performance using GPU decoding compared to CPU decoding. This setting provides the option for users to specify their decoding preference. Co-Authored-By: yzct12345 <87620833+yzct12345@users.noreply.github.com> | |||||
2021-08-16 | codec: Improve libav memory alloc and cleanup | ameerj | 2 | -14/+19 | |
2021-08-16 | codec: Fallback to CPU decoding if no compatible GPU format is found | ameerj | 2 | -22/+32 | |
2021-08-16 | cmake: Add VDPAU and NVDEC support to FFmpeg | lat9nq | 1 | -0/+1 | |
Adds {h264_,vp9_}{nvdec,vdpau} hwaccels. | |||||
2021-08-16 | vk_blit_screen: Fix non-accelerated texture size calculation | ameerj | 2 | -9/+3 | |
Addresses the potential OOB access in UnswizzleTexture. | |||||
2021-08-16 | kernel: Optimize GetHostThreadID | BreadFish64 | 1 | -10/+13 | |
2021-08-16 | network_interface: correct formatting | Sönke Holz | 1 | -1/+1 | |
2021-08-16 | network_interface: fix mingw-w64 build | spholz | 1 | -1/+1 | |
2021-08-16 | network: retrieve subnet mask and gateway info | Sönke Holz | 5 | -24/+137 | |
2021-08-15 | xbyak: Update include path | Merry | 3 | -3/+3 | |
2021-08-14 | core: hle: kernel: Disable dispatch count tracking on single core. | bunnei | 3 | -5/+12 | |
- This would have limited value, and would be a mess to handle properly. | |||||
2021-08-13 | threadsafe_queue: Fix deadlock | yzct12345 | 1 | -6/+4 | |
This fixes a lost wakeup in SPSCQueue. If the reader is in just the right position, the writer's notification will be lost and this will be a problem if the writer then does something to wait on the reader. This was discovered to affect my upcoming stacktrace PR. I don't think any performance decrease will be noticeable because an uncontended mutex is smart enough to skip the syscall. This PR might also resolve some rare deadlocks but I don't know of any examples. | |||||
2021-08-13 | logging: Display backtrace on crash | yzct12345 | 2 | -1/+114 | |
This implements backtraces so we don't have to tell users how to use gdb anymore. This prints a backtrace after abort or segfault is detected. It also fixes the log getting cut off with the last line containing only a bracket. This change lets us know what caused a crash not just what happened the few seconds before it. I only know how to add support for Linux with GCC. Also this doesn't work outside of C/C++ such as in dynarmic or certain parts of graphics drivers. The good thing is that it'll try and just crash again but the stack frames are still there so the core dump will work just like before. | |||||
2021-08-13 | logging: Simplify and make thread-safe | yzct12345 | 8 | -292/+243 | |
This simplifies the logging system. This also fixes some lost messages on startup. The simplification is simple. I removed unused functions and moved most things in the .h to the .cpp. I replaced the unnecessary linked list with its contents laid out as three member variables. Anything that went through the linked list now directly accesses the backends. Generic functions are replaced with those for each specific use case and there aren't many. This change increases coupling but we gain back more KISS and encapsulation. With those changes it was easy to make it thread-safe. I just removed the mutex and turned a boolean atomic. I was planning to use this thread-safety in my next PR about stacktraces. It was actually async-signal-safety at first but I ended up using a different approach. Anyway getting rid of the linked list is important for that because have the list of backends constantly changing complicates things. | |||||
2021-08-13 | configuration: fix mingw-w64 build | Sönke Holz | 1 | -2/+2 | |
2021-08-13 | network: don't use reinterpret_cast in GetAvailableNetworkInterfaces | spholz | 1 | -7/+4 | |
2021-08-13 | network: fix mingw-w64 build | Sönke Holz | 1 | -4/+4 | |
The header "combaseapi.h" of mingw-w64 defines "interface" as "struct". | |||||
2021-08-13 | network: don't use assert to check if no network interfaces are returned | Sönke Holz | 1 | -2/+4 | |
2021-08-13 | configuration: move network_interface include to source file | Sönke Holz | 2 | -2/+1 | |
2021-08-13 | network: use Common::BitCast instead of std::bit_cast | Sönke Holz | 1 | -2/+3 | |
2021-08-13 | network: narrow down scope of "result" in win32 code for | Sönke Holz | 1 | -4/+5 | |
GetAvailableNetworkInterfaces | |||||
2021-08-13 | configuration: use tr instead of QStringLiteral for "None" item in | Sönke Holz | 1 | -1/+1 | |
network interface combobox | |||||
2021-08-13 | network: use explicit bool conversions in GetAvailableNetworkInterfaces | Sönke Holz | 1 | -1/+1 | |
2021-08-13 | network: initialize ip_addr in GetHostIPv4Address() | Sönke Holz | 1 | -1/+1 | |
2021-08-13 | nifm: use operator*() instead of .value() to get value of std::optional | Sönke Holz | 1 | -2/+2 | |
2021-08-13 | nifm: treat a missing host IP address as a non-critical error | Sönke Holz | 1 | -2/+2 | |
2021-08-12 | network: correct formatting in network.cpp and network_interface.cpp | Sönke Holz | 2 | -8/+6 | |
2021-08-12 | configuration: add option to select network interface | spholz | 15 | -90/+278 | |
This commit renames the "Services" tab to "Network" and adds a combobox that allows the user to select the network interface that yuzu should use. This new setting is now used to get the local IP address in Network::GetHostIPv4Address. This prevents yuzu from selecting the wrong network interface and thus using the wrong IP address. The return type of Network::GetHostIPv4Adress has also been changed. | |||||
2021-08-12 | input_common: Disable sdl raw input mode | german77 | 1 | -0/+3 | |
2021-08-12 | codec: Replace deprecated av_init_packet usage | ameerj | 1 | -9/+13 | |
2021-08-12 | nvdec: Implement GPU accelerated decoding for all platforms | ameerj | 2 | -70/+92 | |
Supplements the VAAPI intel gpu decoder by implementing the D3D11VA decoder for Windows, and CUVID/VDPAU for Nvidia and AMD on drivers linux respectively. | |||||
2021-08-12 | decoders: Templates allow memcpy optimizations | yzct12345 | 1 | -57/+116 | |
2021-08-11 | settings: Fix MSVC issues | lat9nq | 1 | -7/+22 | |
According to https://stackoverflow.com/questions/469508, we run into a MSVC bug (since VS 2005) when using diamond inheritance for RangedSetting. This explicitly implements those functions in RangedSetting. GetValue is implemented as just calling the inherited version. The explicit converson operator is reimplemented. I opted for this over ignoring the warning with a pragma since this specifies the inherited behavior, and I have now less faith in MSVC to pick the right one. In addition, we mark destructors as virtual to silence what I believe is a fair MSVC compilation error. | |||||
2021-08-10 | vic: Specify sws_scale height stride. | ameerj | 1 | -3/+2 | |
Silences a sws_scale runtime warning about unaligned strides. | |||||
2021-08-08 | yuzu-cmd/CMakeLists: Correct attribution for this function. | Fernando Sahmkow | 2 | -0/+2 | |
2021-08-08 | vp9: Ensure the first frame is complete | ameerj | 2 | -3/+3 | |
Silences a runtime error due to the first frame missing the frame data, and being set to hidden despite being a key-frame. | |||||
2021-08-08 | texture_cache: Address ameerj's review | yzct12345 | 3 | -7/+4 | |
2021-08-08 | configure_general: Swap positions of speed limit and frame limit options | ameerj | 1 | -30/+30 | |
2021-08-08 | input_common: Improve SDL joystick and hide toggle option | german77 | 4 | -33/+76 | |
2021-08-07 | input_common: Fix data race on GC implementation | Rodrigo Locatti | 2 | -115/+120 | |
2021-08-07 | main: Avoid stopping emulation when taking a screenshot | german77 | 1 | -5/+2 | |
2021-08-07 | core: hle: kernel: k_thread: Mark KScopedDisableDispatch as nodiscard. | bunnei | 1 | -1/+1 | |
2021-08-07 | core: cpu_manager: Use invalid core_id on init and simplify shutdown. | bunnei | 1 | -7/+3 | |
2021-08-07 | core: hle: service: buffer_queue: Improve management of KEvent. | bunnei | 3 | -14/+24 | |
2021-08-07 | core: hle: kernel: k_auto_object: Add GetName method. | bunnei | 1 | -0/+4 | |
- Useful purely for debugging. | |||||
2021-08-07 | core: hle: service: nvflinger/vi: Improve management of KEvent. | bunnei | 4 | -16/+30 | |
2021-08-07 | core: hle: kernel: DisableDispatch on suspend threads. | bunnei | 1 | -0/+3 | |
2021-08-07 | core: hle: kernel: k_scheduler: Improve DisableScheduling and EnableScheduling. | bunnei | 1 | -14/+9 | |
2021-08-07 | core: cpu_manager: Use KScopedDisableDispatch. | bunnei | 1 | -7/+8 | |
2021-08-07 | core: hle: kernel: Use CurrentPhysicalCoreIndex as appropriate. | bunnei | 1 | -6/+2 | |
2021-08-07 | core: hle: kernel: k_scheduler: Remove unnecessary MakeCurrentProcess. | bunnei | 1 | -5/+0 | |
2021-08-07 | core: hle: kernel: k_scheduler: Improve ScheduleImpl. | bunnei | 1 | -6/+7 | |
2021-08-07 | core: hle: kernel: k_scheduler: Improve Unload. | bunnei | 1 | -17/+29 | |
2021-08-07 | core: hle: kernel: k_process: DisableDispatch on main thread. | bunnei | 1 | -0/+1 | |
2021-08-07 | core: hle: kernel: k_handle_table: Use KScopedDisableDispatch as necessary. | bunnei | 2 | -0/+8 | |
2021-08-07 | core: hle: kernel: k_thread: Add KScopedDisableDispatch. | bunnei | 2 | -1/+47 | |
2021-08-07 | core: hle: kernel: Ensure idle threads are closed before destroying scheduler. | bunnei | 3 | -24/+22 | |
2021-08-07 | core: hle: kernel: Reflect non-emulated threads as core 3. | bunnei | 7 | -13/+15 | |
2021-08-07 | core: cpu_manager: Use jthread. | bunnei | 2 | -18/+13 | |
2021-08-07 | vulkan_memory_allocator: Respect bufferImageGranularity | Robin Kertels | 2 | -2/+8 | |
2021-08-07 | nvdec: Better logging for unimplemented codecs | ameerj | 1 | -1/+1 | |
2021-08-07 | memory: Address lioncash's review | yzct12345 | 1 | -52/+6 | |
2021-08-07 | memory: Dedup Read and Write and fix logging bugs | yzct12345 | 1 | -129/+115 | |
2021-08-07 | texture_cache: Address ameerj's review | yzct12345 | 4 | -10/+5 | |
2021-08-07 | network: GetAndLogLastError: ignore Errno::AGAIN | Sönke Holz | 1 | -1/+5 | |
If non-blocking sockets are used, they generate a lot of Errno::AGAIN errors when they didn't receive any data. These errors shouldn't be logged. | |||||
2021-08-07 | network: GetCurrentIpConfigInfo: return host IP address | Sönke Holz | 1 | -1/+4 | |
Service::NIFM::IGeneralService::GetCurrentIpConfigInfo currently hardcodes 192.168.1.100 as the IP address, which prevents LAN play from working correctly. | |||||
2021-08-07 | nvhost_nvdec_common: Remove BufferMap | ameerj | 2 | -76/+0 | |
This was mainly used to keep track of mapped buffers for later unmapping. Since unmap is no longer implemented, this no longer seves a valuable purpose. | |||||
2021-08-07 | vp9: Cleanup unused variables | ameerj | 3 | -58/+17 | |
With reference frames refreshes fix, we no longer need to buffer two frames in advance. We can also remove other unused or otherwise unneeded variables. | |||||
2021-08-07 | vp9: Fix reference frame refreshes | ameerj | 2 | -48/+31 | |
This resolves the artifacting when decoding VP9 streams. | |||||
2021-08-07 | nvhost_nvdec_common: Stub UnmapBuffer Ioctl | ameerj | 1 | -23/+4 | |
Skip unmapping nvdec buffers to avoid breaking the continuity of the VP9 reference frame addresses, and the risk of invalidating data before the async GPU thread is done with it. | |||||
2021-08-06 | network: fix fcntl cmds | Sönke Holz | 1 | -2/+2 | |
F_SETFL/F_GETFL are the correct commands to set a socket to be non-blocking | |||||
2021-08-06 | common: uuid: Add hash function for UUID | Morph | 1 | -0/+11 | |
Used when UUID is a key in an unordered_map. The hash is produced by XORing the high and low 64-bits of the UUID together. | |||||
2021-08-05 | memory: Clean up CopyBlock too | yzct12345 | 1 | -36/+15 | |
2021-08-05 | Update configure_graphics_advanced.ui | gidoly | 1 | -2/+5 | |
add description too fast gpu time | |||||
2021-08-05 | texture_cache: Don't change copyright year | yzct12345 | 4 | -4/+4 | |
2021-08-05 | texture_cache: Address ameerj's review | yzct12345 | 12 | -1821/+1821 | |
2021-08-05 | memory: Address lioncash's review | yzct12345 | 2 | -7/+8 | |
2021-08-05 | memory: Clean up code | yzct12345 | 2 | -329/+81 | |
2021-08-05 | assert: Verify formatting | yzct12345 | 1 | -2/+6 | |
2021-08-05 | assert: Avoid empty macros | yzct12345 | 1 | -2/+2 | |
2021-08-05 | texture_cache: Split templates out | yzct12345 | 7 | -1532/+1533 | |
2021-08-05 | applet_swkbd: Include the null terminator in the buffer size calculation | Morph | 1 | -2/+4 | |
Some games may interpret the read string as a null-terminated string instead of just reading the string up to buffer_size. | |||||
2021-08-05 | hex_util: Fix incorrect array size in AsArray | Morph | 1 | -1/+1 | |
Although this isn't used, this is a potential bug as HexStringToArray will perform an out-of-bounds read. | |||||
2021-08-04 | config: Read connected setting for controllers | lat9nq | 1 | -0/+3 | |
Currently yuzu will read the mapping but does not connect a controller despite adding subsequent configurations for it. Read the `connected` setting for now as a boolean like the Qt frontend. | |||||
2021-08-04 | settings_ui: Add emulated joystick position dot to controller preview | german77 | 2 | -21/+46 | |
2021-08-04 | common: uuid: Add hex string to UUID constructor | Morph | 2 | -0/+73 | |
This allows for easily converting a hex string into a Common::UUID, which is backed by a 128 bit unsigned integer. | |||||
2021-08-04 | nvdec: Implement VA-API hardware video acceleration (#6713) | yzct12345 | 5 | -72/+175 | |
* nvdec: VA-API * Verify formatting * Forgot a semicolon for Windows * Clarify comment about AV_PIX_FMT_NV12 * Fix assert log spam from missing negation * vic: Remove forgotten debug code * Address lioncash's review * Mention VA-API is Intel/AMD * Address v1993's review * Hopefully fix CMakeLists style this time * vic: Improve cache locality * vic: Fix off-by-one error * codec: Async * codec: Forgot the GetValue() * nvdec: Address ameerj's review * codec: Fallback to CPU without VA-API support * cmake: Address lat9nq's review * cmake: Make VA-API optional * vaapi: Multiple GPU * Apply suggestions from code review Co-authored-by: Ameer J <52414509+ameerj@users.noreply.github.com> * nvdec: Address ameerj's review * codec: Use anonymous instead of static * nvdec: Remove enum and fix memory leak * nvdec: Address ameerj's review * codec: Remove preparation for threading Co-authored-by: Ameer J <52414509+ameerj@users.noreply.github.com> | |||||
2021-08-03 | config: Only read/write current_user on global config | lat9nq | 1 | -5/+6 | |
2021-08-02 | network: fix ternary operator in Socket::SendTo | spholz | 1 | -1/+1 | |
2021-08-02 | decoders: Optimize swizzle copy performance (#6790) | yzct12345 | 1 | -9/+43 | |
This makes UnswizzleTexture up to two times faster. It is the main bottleneck in NVDEC video decoding. | |||||
2021-08-01 | yuzu-cmd: hide cursor when in fullscreen | san | 4 | -0/+9 | |
Exposed the SDL_ShowCursor function to EmuWindow baseclass. When creating the window (GL or VK) in fullscreen it now automatically hides the cursor. | |||||
2021-08-01 | game_list: Make game list folder icons smaller (#6762) | Malte Jürgens | 6 | -28/+70 | |
Makes the default game list folder icons 48x48 by default instead of 64x64, and allows for selecting small (24x24) and large (72x72) icon sizes. | |||||
2021-08-01 | service: set: Correct copy amount in GetAvailableLanguageCodes | Morph | 1 | -1/+2 | |
2021-08-01 | astc_decoder: Reduce workgroup size | ameerj | 3 | -5/+5 | |
This reduces the amount of over dispatching when there are odd dimensions (i.e. ASTC 8x5), which rarely evenly divide into 32x32. | |||||
2021-08-01 | astc_decoder: Compute offset swizzles in-shader | ameerj | 4 | -109/+25 | |
Alleviates the dependency on the swizzle table and a uniform which is constant for all ASTC texture sizes. | |||||
2021-08-01 | astc_decoder: Make use of uvec4 for payload data | ameerj | 1 | -79/+43 | |
2021-08-01 | astc_decoder: Simplify Select2DPartition | ameerj | 1 | -38/+19 | |
2021-08-01 | astc_decoder: Optimize the use EncodingData | ameerj | 6 | -138/+108 | |
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. | |||||
2021-08-01 | astc.h: Move data to cpp implementation | ameerj | 2 | -64/+63 | |
Moves leftover values that are no longer used by the gpu decoder back to the cpp implementation. | |||||
2021-07-31 | settings: Use std::clamp where possible | lat9nq | 1 | -39/+9 | |
Addresses PR review Co-authored-by: PixelyIon <pixelyion@protonmail.com> | |||||
2021-07-31 | hle: api_version: Update HOS version to 12.1.0 | Morph | 1 | -7/+7 | |
Keeps us up to date with reporting the system version. | |||||
2021-07-31 | settings: Remove unnecessary std::move usages | lat9nq | 1 | -12/+12 | |
Addresses review feedback. Co-authored-by: Mai M. <mathew1800@gmail.com> | |||||
2021-07-30 | settings: Fix function virtualization | lat9nq | 1 | -12/+18 | |
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. | |||||
2021-07-30 | settings: Implement setting ranges | lat9nq | 1 | -18/+152 | |
Clamps the setting's values against the specified minimum and maximum values. | |||||
2021-07-30 | emu_window: Remove global system instance | lat9nq | 7 | -12/+23 | |
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(). | |||||
2021-07-30 | applet_swkbd: Correct string buffer size calculation | Morph | 1 | -2/+2 | |
The buffer size here does not include the initial 8 bytes. | |||||
2021-07-30 | configure_system: Add Brazilian Portuguese to the list of languages | Morph | 2 | -1/+6 | |
2021-07-30 | service: set: Correct 4.0.0 max_entries to 0x40 (64) instead of 17 | Morph | 1 | -8/+8 | |
2021-07-30 | service: ns, set: Add PT_BR (Brazilian Portuguese) | Morph | 3 | -2/+6 | |
2021-07-30 | shader: Fold UnpackFloat2x16 and PackFloat2x16 | ReinUsesLisp | 1 | -0/+4 | |
Simplifies the code a bit when possible. These instructions should be no-ops codegen wise. | |||||
2021-07-29 | vk_rasterizer: Flip viewport on Y_NEGATE | ReinUsesLisp | 1 | -2/+7 | |
Matches OpenGL's behavior. I don't believe this register flips geometry, but we have to try to match behavior on both backends. | |||||
2021-07-29 | renderers: Add explicit invert_y bool to screenshot callback | ameerj | 5 | -7/+7 | |
OpenGL and Vulkan images render in different coordinate systems. This allows us to specify the coordinate system of the screenshot within each renderer | |||||
2021-07-29 | renderer_vulkan: Implement screenshots | ameerj | 2 | -0/+152 | |
2021-07-29 | vk_blit_screen: Add public CreateFramebuffer method | ameerj | 2 | -14/+18 | |
2021-07-29 | vk_blit_screen: Make Draw method more generic | ameerj | 3 | -55/+71 | |
Allows specifying the framebuffer and render area dimensions, rather than being hard coded for the render window. | |||||
2021-07-28 | shader: Mark ConvertF16F32 and ConvertF32F16 as fp16 instructions | ReinUsesLisp | 1 | -0/+2 | |
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. | |||||
2021-07-28 | renderer_vulkan: Add setting to log pipeline statistics | ReinUsesLisp | 19 | -24/+307 | |
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. | |||||
2021-07-27 | host_memory: Add workaround for FreeBSD 12 | Jan Beich | 1 | -0/+5 | |
src/common/host_memory.cpp:360:14: error: use of undeclared identifier 'memfd_create' fd = memfd_create("HostMemory", 0); ^ | |||||
2021-07-27 | host_memory: Enable Linux implementation on FreeBSD | Jan Beich | 1 | -2/+2 | |
HW.Memory <Critical> common/host_memory.cpp:HostMemory:492: Fastmem unavailable, falling back to VirtualBuffer for memory allocation | |||||
2021-07-27 | qt_web_browser: Fix lambda capture for HIDButton | jls47 | 1 | -1/+1 | |
2021-07-27 | qt_web_browser: Focus on the first link element | jls47 | 3 | -0/+22 | |
Focusing on the first link element fixes element navigation upon loading the web applet in games such as Super Mario Odyssey | |||||
2021-07-27 | service: ns: Remove unused ns_language header | Morph | 1 | -42/+0 | |
2021-07-27 | service: ns: Map ZH_TW and ZH_CN to Traditional/Simplified Chinese | Morph | 1 | -0/+2 | |
2021-07-27 | render_target: Add missing initializer for size extent | Lioncash | 1 | -3/+3 | |
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. | |||||
2021-07-27 | video_core/engine: Consistently initialize rasterizer pointers | Lioncash | 2 | -2/+2 | |
Ensures all of the engines have consistent and deterministic initialization of the rasterizer pointers. | |||||
2021-07-27 | vulkan_wrapper: Fix SetObjectName() always indicating objects as images | Lioncash | 1 | -1/+1 | |
We should be using the passed in object type instead. | |||||
2021-07-27 | buffer_cache: Remove unused small_vector in CommitAsyncFlushesHigh() | Lioncash | 1 | -1/+0 | |
Given this is non-trivial, the constructor is required to execute, so this removes a bit of redundant codegen. | |||||
2021-07-27 | gl_shader_cache: Remove unused variable | Lioncash | 1 | -1/+0 | |
2021-07-27 | vk_compute_pass: Remove unused captures | Lioncash | 1 | -3/+2 | |
Resolves two compiler warnings. | |||||
2021-07-27 | exception: Make constructors explicit | Lioncash | 1 | -4/+4 | |
Ensures that exception construction is always explicit. | |||||
2021-07-27 | exception: Make what() member function nodiscard | Lioncash | 1 | -1/+1 | |
2021-07-27 | exception: Narrow down specific header | Lioncash | 1 | -1/+1 | |
We can use the <exception> header instead of pulling in all of the exception-style classes. | |||||
2021-07-27 | common: fs: fs_util: Add BufferToUTF8String | Morph | 2 | -0/+15 | |
Allows for direct conversion to std::string without having to convert std::u8string to std::string | |||||
2021-07-27 | common: uuid: Return a lower-case hex string in Format | Morph | 3 | -15/+15 | |
2021-07-26 | vk_staging_buffer_pool: Fall back to host memory when allocation fails | Robin Kertels | 1 | -8/+21 | |
2021-07-26 | vk_stream_buffer: Remove unused stream buffer | ReinUsesLisp | 2 | -244/+0 | |
Remove unused file. | |||||
2021-07-26 | configure_graphics: reword GLASM option | Vamsi Krishna | 1 | -1/+1 | |
Change wording to explain that GLASM is actually short for Assembly Shaders | |||||
2021-07-26 | vk_compute_pass: Fix pipeline barrier for indexed quads | ReinUsesLisp | 1 | -1/+1 | |
Use an index buffer barrier instead of a vertex input read barrier. | |||||
2021-07-26 | vk_buffer_cache: Add transform feedback usage to null buffer | ReinUsesLisp | 1 | -3/+7 | |
Fixes bad API usages on Vulkan. | |||||
2021-07-26 | emit_glasm: Fix LINESS_ADJACENCY typo in InputPrimitive() | Lioncash | 1 | -1/+1 | |
This should be LINES_ADJACENCY | |||||
2021-07-26 | emit_spirv_instructions: Add missing header guard | Lioncash | 1 | -0/+2 | |
2021-07-26 | shader_recompiler: Remove unnecessary [[nodiscard]] instances | Lioncash | 2 | -4/+4 | |
[[nodiscard]] doesn't do anything on functions with a void return type and causes superfluous warnings. | |||||
2021-07-26 | control_flow: Fix duplicate switch case in OpcodeToken | Lioncash | 1 | -1/+1 | |
This previously duplicated the case of the PBK case above it. | |||||
2021-07-26 | object_pool: Add missing return in Chunk move assignment operator | Lioncash | 1 | -0/+1 | |
Prevents undefined behavior from occurring. | |||||
2021-07-26 | shader: Fold integer FMA from Nvidia's pattern | ReinUsesLisp | 1 | -0/+175 | |
Fold shaders doing "a * b + c" on integers from the pattern generated by Nvidia's GL compiler. On a somewhat complex compute shader it reduces the code size by 16 instructions from 2 matches on Turing GPUs. On Intel as extracted from KHR_pipeline_executable_properties: Before the optimization: ``` Instruction Count: 2057 Basic Block Count: 45 Scratch Memory Size: 14752 Spill Count: 232 Fill Count: 261 SEND Count: 610 Cycle Count: 11325 ``` After the optimization: ``` Instruction Count: 2046 Basic Block Count: 44 Scratch Memory Size: 13728 Spill Count: 219 Fill Count: 268 SEND Count: 604 Cycle Count: 11367 ``` | |||||
2021-07-26 | shader: Use TryInstRecursive on XMAD multiply folding | ReinUsesLisp | 1 | -14/+12 | |
Simplify a bit the logic. | |||||
2021-07-26 | shader: Add TryInstRecursive utility to values | ReinUsesLisp | 1 | -0/+8 | |
2021-07-25 | main: Fix screenshot filepath construction | ameerj | 1 | -1/+1 | |
The screenshot directory path returned does not have a trailing directory separator character. This caused screenshots to be saved in the parent directory of the configured screenshot directory. This fixes that behavior | |||||
2021-07-24 | renderer_base: Removed redundant settings | ameerj | 3 | -12/+4 | |
use_framelimiter was not being used internally by the renderers. set_background_color was always set to true as there is no toggle for the renderer background color, instead users directly choose the color of their choice. | |||||
2021-07-24 | general: Rename "Frame Limit" references to "Speed Limit" | ameerj | 16 | -77/+77 | |
This setting is best referred to as a speed limit, as it involves the limits of all timing based aspects of the emulator, not only framerate. This allows us to differentiate it from the fps unlocker setting. | |||||
2021-07-24 | config, nvflinger: Add FPS cap setting | ameerj | 8 | -6/+49 | |
Allows finer tuning of the FPS limit. | |||||
2021-07-23 | configuration: Use combobox apply template where possible | lat9nq | 2 | -35/+2 | |
We don't need to manually apply this setting now that a template can do this for us. | |||||
2021-07-23 | general: Implement FullscreenMode enumeration | lat9nq | 8 | -28/+38 | |
Prevents us from using an unclear 0 or 1 to describe the fullscreen mode. | |||||
2021-07-23 | common: Publically link to pthreads | lat9nq | 1 | -1/+1 | |
Common requires pthreads but does not refer to it when linking to other modules. Fix this by linking to Threads where necessary. | |||||
2021-07-23 | shader: Support out of bound local memory reads and immediate writes | ReinUsesLisp | 1 | -4/+21 | |
Support ignoring immediate out of bound writes. Writing dynamically out of bounds is not yet supported (e.g. R0+0x4). Reading out of bounds yields zero. This is supported checking for the size from the IR; if the input is immediate, the optimization passes will drop it. | |||||
2021-07-23 | vulkan/blit_image: Commit descriptor sets within worker thread | ReinUsesLisp | 1 | -9/+7 | |
Fixes race condition caused. The descriptor pool is not thread safe, so we have to commit descriptor sets within the same thread. | |||||
2021-07-23 | vulkan_device: Blacklist Volta and older from VK_KHR_push_descriptor | ReinUsesLisp | 1 | -4/+39 | |
Causes crashes on Link's Awakening intro. It's hard to debug if it's our fault due to bugs in validation layers. | |||||
2021-07-23 | qt: Remove "experimental" from asynchronous shader building UI | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | Revert "renderers: Disable async shader compilation" | ReinUsesLisp | 2 | -5/+3 | |
This reverts commit 4a152767286717fa69bfc94846a124a366f70065. | |||||
2021-07-23 | opengl: Fix asynchronous shaders | ReinUsesLisp | 2 | -4/+33 | |
Wait for shader to build before configuring it, and wait for the shader to build before sharing it with other contexts. | |||||
2021-07-23 | shader_environment: Receive cache version from outside | ReinUsesLisp | 4 | -16/+23 | |
This allows us invalidating OpenGL and Vulkan separately in the future. | |||||
2021-07-23 | cmake: Remove shader cache version | ReinUsesLisp | 3 | -12/+1 | |
2021-07-23 | shader: Fix disabled attribute default values | ameerj | 2 | -2/+2 | |
2021-07-23 | gl_device: Simplify GLASM setting logic | ameerj | 1 | -15/+8 | |
2021-07-23 | glsl: Simplify FCMP emission | ameerj | 1 | -6/+4 | |
2021-07-23 | glsl: Update TessellationControl gl_in | ameerj | 1 | -0/+28 | |
Adheres to GL_ARB_separate_shader_objects requirements | |||||
2021-07-23 | renderer_opengl: Use ARB_separate_shader_objects | ReinUsesLisp | 9 | -116/+154 | |
Ensures that states set for a particular stage are not attached to other stages which may not need them. | |||||
2021-07-23 | shader: Implement ISETP.X | ameerj | 4 | -44/+57 | |
2021-07-23 | shader: Avoid usage of C++20 ranges to build in clang | ReinUsesLisp | 11 | -39/+47 | |
2021-07-23 | glsl: Clamp shared mem size to GL_MAX_COMPUTE_SHARED_MEMORY_SIZE | ameerj | 3 | -2/+12 | |
2021-07-23 | gl_shader_cache: Properly implement asynchronous shaders | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | shader_recompiler, video_core: Resolve clang errors | lat9nq | 14 | -44/+40 | |
Silences the following warnings-turned-errors: -Wsign-conversion -Wunused-private-field -Wbraced-scalar-init -Wunused-variable And some other errors | |||||
2021-07-23 | main: Update Shader Cache menu options | ameerj | 4 | -16/+64 | |
This change adds two new context menu items to remove either the OpenGL or the Vulkan shader caches individually, and the provides the option to remove all caches for the selected title. This also changes the behavior of the open shader cache option. Now it creates the shader cache directory for the title if it does not yet exist. | |||||
2021-07-23 | renderers: Fix clang formatting | ameerj | 4 | -9/+13 | |
2021-07-23 | shader: Manually convert from array<u32> to bitset instead of using bit_cast | ReinUsesLisp | 1 | -2/+3 | |
2021-07-23 | renderers: Disable async shader compilation | ameerj | 2 | -3/+5 | |
The current implementation is prone to causing graphical issues. Disable until a better solution is implemented. | |||||
2021-07-23 | maxwell_to_vk: Add R16_SNORM | ReinUsesLisp | 2 | -1/+2 | |
2021-07-23 | configure_graphics: Mark SPIR-V as Experimental, Mesa only | lat9nq | 1 | -1/+1 | |
2021-07-23 | glsl: Fix tracking of info.uses_shadow_lod | ameerj | 1 | -4/+4 | |
2021-07-23 | shader: Ignore global memory ops on devices lacking int64 support | ameerj | 8 | -30/+79 | |
2021-07-23 | vulkan_device: Add missing include algorithm | lat9nq | 1 | -0/+1 | |
2021-07-23 | vulkan_device: Blacklist ampere devices from float16 math | ameerj | 2 | -12/+23 | |
2021-07-23 | dual_vertex_pass: Clang format | ameerj | 1 | -14/+14 | |
2021-07-23 | gl_shader_cache: Fixes for async shaders | ameerj | 2 | -2/+25 | |
2021-07-23 | vulkan_device: Enable VK_EXT_extended_dynamic_state on RADV 21.2 onward | ReinUsesLisp | 1 | -4/+7 | |
2021-07-23 | emit_spirv: Workaround VK_KHR_shader_float_controls on fp16 Nvidia | ReinUsesLisp | 4 | -5/+12 | |
Fix regression on Fire Emblem: Three Houses when using native fp16. | |||||
2021-07-23 | configure_graphics: Re-order vulkan device populating | lat9nq | 1 | -4/+4 | |
2021-07-23 | shader: GCC fmt 8.0.0 fixes | lat9nq | 7 | -16/+19 | |
2021-07-23 | shader: Account for 33-bit IADD3 scenario | ameerj | 1 | -2/+10 | |
2021-07-23 | shader: Only apply shift on register mode for IADD3 | ReinUsesLisp | 1 | -10/+14 | |
2021-07-23 | vk_rasterizer: Workaround bug in VK_EXT_vertex_input_dynamic_state | ReinUsesLisp | 4 | -19/+20 | |
Workaround potential bug on Nvidia's driver where only updating high attributes leaves low attributes out dated. | |||||
2021-07-23 | shader: Fix disabled and unwritten attributes and varyings | ReinUsesLisp | 3 | -18/+31 | |
2021-07-23 | glsl: Fix shared and local memory declarations | ameerj | 1 | -3/+3 | |
account for the fact that program.*memory_size is in units of bytes. | |||||
2021-07-23 | opengl: Implement LOP.CC | ameerj | 2 | -6/+38 | |
Used by MH:Rise | |||||
2021-07-23 | vk_graphics_pipeline: Implement smooth lines | ReinUsesLisp | 5 | -5/+65 | |
2021-07-23 | vk_graphics_pipeline: Implement line width | ReinUsesLisp | 8 | -8/+36 | |
2021-07-23 | spirv: Fix code emission when descriptor aliasing is unsupported | ReinUsesLisp | 1 | -1/+2 | |
Fixes OpenGL. | |||||
2021-07-23 | video_core: Enable GL SPIR-V shaders | lat9nq | 7 | -38/+105 | |
2021-07-23 | general: Add setting shader_backend | lat9nq | 14 | -87/+182 | |
GLASM is getting good enough that we can move it out of advanced graphics settings. This removes the setting `use_assembly_shaders`, opting for a enum class `shader_backend`. This comes with the benefits that it is extensible for additional shader backends besides GLSL and GLASM, and this will work better with a QComboBox. Qt removes the related assembly shader setting from the Advanced Graphics section and places it as a new QComboBox in the API Settings group. This will replace the Vulkan device selector when OpenGL is selected. Additionally, mark all of the custom anisotropic filtering settings as "WILL BREAK THINGS", as that is the case with a select few games. | |||||
2021-07-23 | glsl: Declare local memory in main | ameerj | 1 | -3/+3 | |
2021-07-23 | glsl: Add passthrough geometry shader support | ameerj | 3 | -7/+27 | |
2021-07-23 | shader: Use std::bit_cast instead of Common::BitCast for passthrough | ReinUsesLisp | 1 | -2/+3 | |
2021-07-23 | glasm: Add passthrough geometry shader support | ReinUsesLisp | 5 | -8/+33 | |
2021-07-23 | shader: Rework varyings and implement passthrough geometry shaders | ReinUsesLisp | 29 | -331/+345 | |
Put all varyings into a single std::bitset with helpers to access it. Implement passthrough geometry shaders using host's. | |||||
2021-07-23 | vk_graphics_pipeline: Implement conservative rendering | ReinUsesLisp | 6 | -10/+44 | |
2021-07-23 | shader: Only verify shader when graphics debugging is enabled | ReinUsesLisp | 1 | -2/+7 | |
2021-07-23 | shader: Unify shader stage types | ReinUsesLisp | 15 | -55/+37 | |
2021-07-23 | lower_int64_to_int32: Add missing include | lat9nq | 1 | -0/+1 | |
2021-07-23 | shader: Emulate 64-bit integers when not supported | ReinUsesLisp | 6 | -2/+16 | |
Useful for mobile and Intel Xe devices. | |||||
2021-07-23 | shader: Add int64 to int32 lowering pass | ReinUsesLisp | 3 | -0/+218 | |
2021-07-23 | shader: Teach global memory base tracker to follow vectors | ReinUsesLisp | 1 | -15/+14 | |
2021-07-23 | shader: Add constant propagation to integer vectors | ReinUsesLisp | 1 | -0/+9 | |
2021-07-23 | glsl: Better IAdd Overflow CC fix | ameerj | 2 | -11/+13 | |
This ensures the original operand values are not overwritten when being used in the overflow detection. | |||||
2021-07-23 | shader: Remove IAbs64 | ReinUsesLisp | 9 | -26/+3 | |
2021-07-23 | glsl: Fix IADD CC | ameerj | 2 | -5/+7 | |
2021-07-23 | shader_recompiler: Fix IADD3 input partitioning | ameerj | 1 | -14/+13 | |
2021-07-23 | shader: Move loop safety tests to code emission | ReinUsesLisp | 16 | -108/+54 | |
2021-07-23 | gl_graphics_pipeline: Fix assembly shaders check for transform feedbacks | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | glsl: Remove frag color initialization | ameerj | 1 | -9/+0 | |
2021-07-23 | glasm: Implement SetAttribute ViewportMask | ameerj | 2 | -1/+10 | |
2021-07-23 | gl_graphics_pipeline: Inline hash and operator== key functions | ReinUsesLisp | 2 | -12/+8 | |
2021-07-23 | gl_shader_cache: Check previous pipeline before checking hash map | ReinUsesLisp | 5 | -29/+41 | |
Port optimization from Vulkan. | |||||
2021-07-23 | gl_graphics_pipeline: Port optimizations from Vulkan pipelines | ReinUsesLisp | 2 | -57/+141 | |
2021-07-23 | emit_glsl_special: Skip initialization of frag_color0 | ameerj | 1 | -1/+1 | |
Fixes rendering in Devil May Cry without regressing Ori and the Blind Forest. | |||||
2021-07-23 | shader: Calibrate loop safety threshold | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | buffer_cache: Fix debugging leftover | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | glsl: Add missing ; in EmitSetSampleMask | Morph | 1 | -1/+1 | |
Fixes shader compilation in Okami HD | |||||
2021-07-23 | buffer_cache: Fix size reductions not having in mind bind sizes | ReinUsesLisp | 1 | -7/+23 | |
A buffer binding can change between shaders without changing the shaders. This lead to outdated bindings on OpenGL. | |||||
2021-07-23 | glsl: Fix output varying initialization when transform feedback is used | ameerj | 1 | -3/+37 | |
2021-07-23 | shaders: Allow shader notify when async shaders is disabled | ameerj | 2 | -11/+9 | |
2021-07-23 | texture_pass: Fix is_read image qualification | ameerj | 1 | -1/+1 | |
Atomic operations are considered to have both read and write access. This was not being accounted for. | |||||
2021-07-23 | shader: Align constant buffer sizes to 16 bytes | ReinUsesLisp | 1 | -1/+2 | |
WAR for AMD reading zeroes on uniform buffers of size 2. | |||||
2021-07-23 | spirv: Properly handle devices without int8 and int16 | ReinUsesLisp | 2 | -39/+67 | |
2021-07-23 | spirv: Handle small storage buffer loads on devices with no support | ReinUsesLisp | 2 | -6/+6 | |
2021-07-23 | vk_graphics_pipeline: Use VK_KHR_push_descriptor when available | ReinUsesLisp | 8 | -36/+88 | |
~51% faster on Nvidia compared to previous method. | |||||
2021-07-23 | glsl: Fix cbuf component indexing bug falback | ameerj | 1 | -7/+6 | |
2021-07-23 | shader: Simplify MergeDualVertexPrograms | ReinUsesLisp | 1 | -6/+4 | |
2021-07-23 | shader: Properly manage attributes not written from previous stages | ReinUsesLisp | 12 | -41/+62 | |
2021-07-23 | glsl: Only declare fragment outputs on fragment shaders | ReinUsesLisp | 1 | -4/+6 | |
2021-07-23 | shader: Split profile and runtime info headers | ReinUsesLisp | 13 | -77/+93 | |
2021-07-23 | shader: Add support for native 16-bit floats | ReinUsesLisp | 9 | -14/+50 | |
2021-07-23 | shader: Rename maxwell/program.h to translate_program.h | ReinUsesLisp | 5 | -11/+6 | |
2021-07-23 | vulkan_device: Blacklist VK_EXT_vertex_input_dynamic_state on Intel | ReinUsesLisp | 1 | -0/+4 | |
2021-07-23 | glsl: Obey need_declared_frag_colors to declare and initialize all frag_color | ameerj | 2 | -1/+10 | |
Fixes Ori and the blind forest title screen | |||||
2021-07-23 | glsl: Address rest of feedback | ameerj | 11 | -38/+86 | |
2021-07-23 | glsl: Move gl_Position/generic attribute initialization to EmitProlgue | ameerj | 2 | -14/+12 | |
2021-07-23 | glsl: Conditionally use fine/coarse derivatives based on device support | ameerj | 4 | -4/+29 | |
2021-07-23 | glsl: Cleanup/Address feedback | ameerj | 10 | -28/+24 | |
2021-07-23 | gl_shader_cache: Implement async shaders | ameerj | 7 | -107/+154 | |
2021-07-23 | glsl: Add Shader_GLSL logging | ameerj | 3 | -28/+32 | |
2021-07-23 | glsl: Add LoopSafety instructions | ameerj | 2 | -0/+10 | |
2021-07-23 | glsl: Conditionally add EXT_texture_shadow_lod | ameerj | 3 | -4/+15 | |
2021-07-23 | glsl: Add stubs for sparse queries and variable aoffi when not supported | ameerj | 7 | -13/+47 | |
2021-07-23 | glsl: Implement legacy varyings | ameerj | 6 | -8/+81 | |
2021-07-23 | gl_shader_cache: Remove const from pipeline source arguments | ameerj | 4 | -6/+6 | |
2021-07-23 | gl_shader_cache: Move OGL shader compilation to the respective Pipeline constructor | ameerj | 5 | -76/+79 | |
2021-07-23 | glsl: Minor cleanup | ameerj | 2 | -19/+15 | |
2021-07-23 | glsl: Fix Cbuf getters for F32 type | ameerj | 1 | -12/+15 | |
2021-07-23 | glsl: Add immediate index oob checking for Cbuf getters | ameerj | 1 | -0/+16 | |
2021-07-23 | glsl: Refactor GetCbuf functions to reduce code duplication | ameerj | 1 | -104/+66 | |
2021-07-23 | glsl: Address more feedback. Implement indexed texture reads | ameerj | 6 | -114/+112 | |
2021-07-23 | glsl: Remove Signed Integer variables | ameerj | 8 | -43/+13 | |
2021-07-23 | glsl: Address Rodrigo's feedback | ameerj | 13 | -75/+87 | |
2021-07-23 | glsl: Reorganize backend code, remove unneeded [[maybe_unused]] | ameerj | 12 | -315/+251 | |
2021-07-23 | glsl: Implement SampleId and SetSampleMask | ameerj | 3 | -30/+35 | |
plus some minor refactoring of implementations | |||||
2021-07-23 | glsl: Add gl_PerVertex in for GS | ameerj | 1 | -1/+2 | |
2021-07-23 | glsl: Use existing tracking for enabling EXT_shader_image_load_formatted | ameerj | 1 | -15/+1 | |
2021-07-23 | glsl: Enable early fragment tests | ameerj | 2 | -4/+7 | |
2021-07-23 | gl_rasterizer: Add texture fetch barrier for fragments | ameerj | 1 | -1/+1 | |
Fixes flicker seen in XC2 | |||||
2021-07-23 | glsl: Implement more attribute getters and setters | ameerj | 2 | -12/+60 | |
2021-07-23 | glsl: Implement fswzadd | ameerj | 5 | -5/+45 | |
and wip nv thread shuffle impl | |||||
2021-07-23 | glsl: Implement indexed attribute loads | ameerj | 5 | -29/+64 | |
2021-07-23 | glsl: Conditionally add GL_ARB_sparse_texture2 | ameerj | 1 | -2/+3 | |
2021-07-23 | glsl: Rebase fixes | ameerj | 2 | -3/+5 | |
2021-07-23 | glsl: Conditionally use GL_EXT_shader_image_load_formatted | ameerj | 1 | -2/+18 | |
Fix for SULD.D | |||||
2021-07-23 | glsl: Remove output generic indexing for geometry stage | ameerj | 1 | -5/+3 | |
2021-07-23 | glsl: Allow dynamic tracking of variable allocation | ameerj | 3 | -21/+35 | |
2021-07-23 | glsl: Implement barriers | ameerj | 3 | -13/+21 | |
2021-07-23 | glsl: Implement image atomics and set layer | ameerj | 5 | -153/+202 | |
along with some more cleanup/oversight fixes | |||||
2021-07-23 | glsl: Fix image gather logic | ameerj | 1 | -0/+4 | |
2021-07-23 | glsl: Add cbuf access workaround for devices with component indexing bug | ameerj | 2 | -51/+112 | |
2021-07-23 | glsl: Use textureGrad fallback when EXT_texture_shadow_lod is unsupported | ameerj | 4 | -8/+42 | |
2021-07-23 | emit_glsl_image: Use immediate offsets when possible | ameerj | 1 | -12/+33 | |
2021-07-23 | glsl: Fix <32-bit SSBO writes | ameerj | 4 | -50/+43 | |
and more cleanup | |||||
2021-07-23 | glsl: Cleanup and address feedback | ameerj | 10 | -86/+69 | |
2021-07-23 | glsl: Refactor Global memory functions | ameerj | 2 | -71/+73 | |
2021-07-23 | glsl: Increase NUM_VARS that can be allocated | ameerj | 1 | -1/+1 | |
needed for HW:AoC. | |||||
2021-07-23 | glsl: Implement Load/WriteGlobal | ameerj | 9 | -98/+185 | |
along with some other misc changes and fixes | |||||
2021-07-23 | glsl: Implement Images | ameerj | 2 | -9/+74 | |
2021-07-23 | glsl: skip gl_ViewportIndex write if device does not support it | ameerj | 5 | -8/+18 | |
2021-07-23 | glsl: Implement transform feedback | ameerj | 4 | -18/+76 | |
2021-07-23 | glsl: Yet another gl_ViewportIndex fix attempt | ameerj | 1 | -3/+19 | |
2021-07-23 | glsl: Add gl_ViewportIndex out attribute | ameerj | 1 | -1/+3 | |
2021-07-23 | emit_glsl_context_get_set: Remove unused function | lat9nq | 1 | -4/+0 | |
2021-07-23 | glsl: Fix precise variable declaration | ameerj | 3 | -24/+25 | |
and add some more separation in the shader for better debugability when dumped | |||||
2021-07-23 | glsl: Implement tessellation shaders | ameerj | 5 | -27/+146 | |
2021-07-23 | glsl: Implement ImageGradient and other texture function variants | ameerj | 2 | -32/+73 | |
2021-07-23 | glsl: Fix atomic SSBO offsets | ameerj | 4 | -67/+74 | |
and implement misc getters | |||||
2021-07-23 | glsl: Implement geometry shaders | ameerj | 4 | -9/+62 | |
2021-07-23 | glsl: Use NotImplemented macro with function name output | ameerj | 10 | -104/+103 | |
2021-07-23 | glsl: Implement gl_ViewportIndex | ameerj | 3 | -5/+14 | |
SSBU now working | |||||
2021-07-23 | glsl: SHFL fix and prefer shift operations over divide in glsl shader | ameerj | 5 | -63/+64 | |
2021-07-23 | glsl: Implement precise fp variable allocation | ameerj | 4 | -8/+67 | |
2021-07-23 | HACK glsl: Write defaults to unused generic attributes | ameerj | 2 | -2/+11 | |
2021-07-23 | glsl: Fix ssbo indexing and name shadowing between shader stages | ameerj | 3 | -77/+101 | |
2021-07-23 | glsl: implement set clip distance | ameerj | 2 | -0/+15 | |
and missed a diff in emit_glsl relating to var alloc ref counting | |||||
2021-07-23 | glsl: Rework var alloc to not assign unused results | ameerj | 9 | -49/+91 | |
2021-07-23 | glsl: Rework variable allocator to allow for variable reuse | ameerj | 14 | -353/+482 | |
2021-07-23 | glsl: Fix ATOM and implement ATOMS | ameerj | 5 | -114/+136 | |
2021-07-23 | glsl: Use gl_SubGroupInvocationARB | ameerj | 2 | -8/+7 | |
2021-07-23 | glsl: Implement VOTE for subgroup size potentially larger | ameerj | 5 | -20/+43 | |
2021-07-23 | glsl: Implement VOTE | ameerj | 4 | -50/+64 | |
2021-07-23 | glsl: Implement ST{LS} | ameerj | 6 | -69/+106 | |
2021-07-23 | glsl: Implement more instructions used by SMO | ameerj | 1 | -3/+3 | |
2021-07-23 | glsl: Implement more instructions used by SMO | ameerj | 5 | -10/+16 | |
2021-07-23 | glsl: Fix GetAttribute return values | ameerj | 2 | -7/+9 | |
fixes font rendering issues as these were used to index into the ssbos | |||||
2021-07-23 | glsl: minor cleanup | ameerj | 4 | -20/+19 | |
2021-07-23 | glsl: Fix and implement rest of cbuf access | ameerj | 1 | -7/+43 | |
2021-07-23 | glsl: Implement TXQ and other misc changes | ameerj | 5 | -6/+36 | |
2021-07-23 | glsl: TLD4 implementation | ameerj | 1 | -2/+89 | |
2021-07-23 | glsl: Implement TLD instruction | ameerj | 1 | -1/+55 | |
2021-07-23 | glsl: Implement TEXS | ameerj | 1 | -1/+29 | |
2021-07-23 | glsl: Cleanup texture functions | ameerj | 1 | -13/+11 | |
2021-07-23 | shader_recompiler: GCC fixes | lat9nq | 14 | -3/+13 | |
2021-07-23 | glsl: Implement TEX depth functions | ameerj | 2 | -4/+46 | |
2021-07-23 | glsl: Implement TEX ImageSample functions | ameerj | 3 | -11/+71 | |
2021-07-23 | glsl: Rework Shuffle emit instructions to align with SPIR-V | ameerj | 1 | -19/+40 | |
2021-07-23 | glsl: Better Storage access and wip warps | ameerj | 8 | -62/+133 | |
2021-07-23 | glsl: Fix integer conversions, implement clamp CC | ameerj | 2 | -27/+36 | |
2021-07-23 | glsl: Implement IADD CC | ameerj | 2 | -2/+17 | |
2021-07-23 | glsl: SSBO access fixes and wip SampleExplicitLod implementation. | ameerj | 2 | -4/+19 | |
2021-07-23 | glsl: WIP var forward declaration | ameerj | 6 | -49/+60 | |
to fix Loop control flow. | |||||
2021-07-23 | glsl: Fix bindings, add some CC ops | ameerj | 8 | -57/+91 | |
2021-07-23 | glsl: remove unused headers | ameerj | 14 | -34/+10 | |
2021-07-23 | glsl: Implement derivatives and YDirection | ameerj | 8 | -81/+87 | |
plus some other misc additions/changed | |||||
2021-07-23 | glsl: Fix non-immediate buffer access | ameerj | 12 | -72/+133 | |
and many other misc implementations | |||||
2021-07-23 | glsl: textures wip | ameerj | 9 | -75/+139 | |
2021-07-23 | glsl: Implement some attribute getters and setters | ameerj | 10 | -192/+337 | |
2021-07-23 | glsl: Track S32 atomics | ameerj | 3 | -6/+16 | |
2021-07-23 | glsl: Update phi node management | ameerj | 4 | -21/+53 | |
2021-07-23 | glsl: Fix floating point compare ops | ameerj | 1 | -28/+28 | |
Logic for ordered/unordered ops was wrong. | |||||
2021-07-23 | glsl: Query GL Device for FP16 extension support | ameerj | 5 | -2/+23 | |
2021-07-23 | glsl: Simply FP storage atomics | ameerj | 2 | -48/+28 | |
2021-07-23 | glsl: F16x2 storage atomics | ameerj | 7 | -58/+64 | |
2021-07-23 | glsl: Revert ssbo aliasing. Storage Atomics impl | ameerj | 5 | -75/+134 | |
2021-07-23 | glsl: implement phi nodes | ameerj | 4 | -20/+54 | |
2021-07-23 | glsl: Wip storage atomic ops | ameerj | 10 | -327/+414 | |
2021-07-23 | glsl: Implement FCMP | ameerj | 3 | -242/+185 | |
2021-07-23 | glsl: Add a more robust fp formatter | ameerj | 4 | -9/+14 | |
2021-07-23 | glsl: More FP fixes | ameerj | 2 | -9/+16 | |
2021-07-23 | glsl: FP function fixes | ameerj | 7 | -17/+25 | |
2021-07-23 | glsl: More FP instructions/fixes | ameerj | 5 | -28/+41 | |
2021-07-23 | glsl: Add many FP32/64 instructions | ameerj | 12 | -765/+1011 | |
2021-07-23 | glsl: Fixup build issues | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | glsl: Implement more Integer ops | ameerj | 3 | -119/+72 | |
2021-07-23 | glsl: Implement BF* | ameerj | 3 | -9/+10 | |
2021-07-23 | glsl: Implement a few Integer instructions | ameerj | 10 | -260/+398 | |
2021-07-23 | glsl: Use std::string_view for Emit function args. | ameerj | 6 | -760/+838 | |
2021-07-23 | glsl: Pass IR::Inst& to Emit functions | ameerj | 6 | -171/+169 | |
2021-07-23 | glsl: INeg and IAdd negate tests | ameerj | 3 | -94/+106 | |
2021-07-23 | glsl: Reusable typed variables. IADD32 | ameerj | 6 | -203/+311 | |
2021-07-23 | glsl: Fix program linking and cbuf | ameerj | 2 | -3/+5 | |
2021-07-23 | glsl: Fix "reg" allocing | ameerj | 10 | -898/+938 | |
based on glasm with some tweaks | |||||
2021-07-23 | glsl: Initial backend | ameerj | 28 | -2/+3297 | |
2021-07-23 | spirv: Reduce log severity of mismatching denorm rules | ReinUsesLisp | 1 | -2/+2 | |
2021-07-23 | shader: Fix loop safety to SSA pass | ReinUsesLisp | 2 | -2/+4 | |
2021-07-23 | vk_rasterizer: Exit render passes on fragment barriers | ReinUsesLisp | 1 | -0/+1 | |
2021-07-23 | vk_graphics_pipeline: Fix path with no VK_EXT_extended_dynamic_state | Rodrigo Locatti | 1 | -1/+1 | |
2021-07-23 | buffer_cache: Invalidate fast buffers on compute | ReinUsesLisp | 1 | -0/+1 | |
2021-07-23 | shader: Add logging | ReinUsesLisp | 15 | -28/+38 | |
2021-07-23 | shader: Add shader loop safety check settings | lat9nq | 16 | -35/+183 | |
Also add a setting for enable Nsight Aftermath. | |||||
2021-07-23 | shader: Comment why the array component is not read in TMML | ReinUsesLisp | 1 | -0/+2 | |
2021-07-23 | vulkan_device: Enable VK_EXT_vertex_input_dynamic_state | ReinUsesLisp | 1 | -0/+28 | |
2021-07-23 | vk_pipeline_cache: Skip cached pipelines with different dynamic state | ReinUsesLisp | 1 | -0/+6 | |
2021-07-23 | main: Fix Open Transferable Shader Cache context item | ameerj | 1 | -25/+5 | |
Opens the new shader cache directory location for the specified title, if it exists. | |||||
2021-07-23 | tmml: Remove index component from coords vec | ameerj | 1 | -4/+3 | |
The lod query functions exposed by the rendering API's do not make use of the texturearray layer indexing. | |||||
2021-07-23 | vulkan: Add VK_EXT_vertex_input_dynamic_state support | ReinUsesLisp | 11 | -116/+291 | |
Reduces the number of total pipelines generated on Vulkan. Tested on Super Smash Bros. Ultimate. | |||||
2021-07-23 | shader: Reorder shader cache directories | ReinUsesLisp | 2 | -18/+12 | |
2021-07-23 | vk_rasterizer: Implement first index | ReinUsesLisp | 1 | -2/+5 | |
2021-07-23 | vulkan: Use VK_EXT_provoking_vertex when available | ReinUsesLisp | 6 | -4/+52 | |
2021-07-23 | spirv/convert: Catch more signed operations oversights | ameerj | 1 | -5/+5 | |
The sign bit on integers of size < 32 was not properly preserved in casts | |||||
2021-07-23 | spirv/convert: Catch more broken signed operations on Nvidia OpenGL | ReinUsesLisp | 1 | -0/+6 | |
BitCast U32 to S32 before converting to float on drivers with broken signed operations. | |||||
2021-07-23 | gl_buffer_cache: Use unorm internal formats for snorm texture buffer views | ameerj | 1 | -1/+24 | |
Fixes black textures in UE4 games | |||||
2021-07-23 | shader_environment: Fix local memory size calculations | ReinUsesLisp | 1 | -3/+3 | |
2021-07-23 | buffer_cache: Fix copy based uniform bindings tracking | ReinUsesLisp | 2 | -9/+22 | |
2021-07-23 | shader_environment: Add shader_local_memory_crs_size to local memory size | ameerj | 2 | -3/+3 | |
Fixes DOOM 2016 missing local memory | |||||
2021-07-23 | gl_texture_cache: Create image storage views | ReinUsesLisp | 4 | -38/+126 | |
Fixes SULD.D tests. | |||||
2021-07-23 | gl_shader_util: Move shader utility code to a separate file | ReinUsesLisp | 7 | -245/+106 | |
2021-07-23 | gl_shader_cache: Store workers in shader cache object | ReinUsesLisp | 2 | -58/+78 | |
2021-07-23 | vk_pipeline_cache,shader_notify: Add shader notifications | ReinUsesLisp | 10 | -96/+127 | |
2021-07-23 | vk_pipeline_cache: Add asynchronous shaders | ReinUsesLisp | 3 | -3/+33 | |
2021-07-23 | vk_rasterizer: Flush work on clear and dispatches | ReinUsesLisp | 1 | -0/+3 | |
2021-07-23 | DMA: Restrict optimised path for BlockToLinear further. | FernandoS27 | 1 | -1/+2 | |
2021-07-23 | vk_swapchain: Handle outdated swapchains | ReinUsesLisp | 3 | -17/+34 | |
Fixes pixelated presentation on Intel devices. | |||||
2021-07-23 | shader: Fix VertexA Shaders. | FernandoS27 | 4 | -19/+51 | |
2021-07-23 | shader: Add 2D and 3D variants to SUATOM and SURED | ReinUsesLisp | 1 | -0/+4 | |
Used by Claybook. | |||||
2021-07-23 | vk_buffer_cache: Handle null texture buffers | ReinUsesLisp | 1 | -0/+4 | |
Fixes a crash on Age of Calamity cutscenes. | |||||
2021-07-23 | nsight_aftermath_tracker: Fix SPIR-V module writes | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | vk_pipeline_cache: Set support_derivative_control to true | ReinUsesLisp | 1 | -0/+1 | |
2021-07-23 | shader: Avoid CPU side undefined behavior on I2F | ReinUsesLisp | 1 | -0/+2 | |
2021-07-23 | glasm: Use ARB_derivative_control conditionally | ReinUsesLisp | 6 | -7/+37 | |
2021-07-23 | buffer_cache: Reduce uniform buffer size from shader usage | ReinUsesLisp | 11 | -38/+78 | |
Increases performance significantly on certain titles. | |||||
2021-07-23 | transform_feedback: Read buffer stride from index instead of layout | ReinUsesLisp | 1 | -1/+2 | |
2021-07-23 | fixed_pipeline_state: Use regular for loop instead of ranges for perf | ReinUsesLisp | 1 | -2/+3 | |
MSVC generates better code for it. | |||||
2021-07-23 | vk_swapchain: Avoid recreating the swapchain on each frame | ReinUsesLisp | 2 | -15/+9 | |
Recreate only when requested (or sRGB is changed) instead of tracking the frontend's size. That size is still used as a hint. | |||||
2021-07-23 | emit_glasm_context_get_set: Remove unused variable | lat9nq | 1 | -1/+0 | |
2021-07-23 | shader,glasm: Implement legacy texcoord loads | ReinUsesLisp | 3 | -54/+29 | |
2021-07-23 | glasm: Implement legacy varyings | ReinUsesLisp | 1 | -17/+56 | |
2021-07-23 | shader: Track legacy varyings | ReinUsesLisp | 2 | -17/+105 | |
2021-07-23 | shader: Add support for "negative" and unaligned offsets | ReinUsesLisp | 3 | -8/+13 | |
"Negative" offsets don't exist. They are shown as such due to a bug in nvdisasm. Unaligned offsets have been proved to read the aligned offset. For example, when reading an U32, if the offset is 6, the offset read will be 4. | |||||
2021-07-23 | shader: Implement ISCADD32I | ReinUsesLisp | 1 | -17/+31 | |
2021-07-23 | spirv: Fix output generics with components | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | vulkan: Conditionally use shaderInt16 | ReinUsesLisp | 3 | -2/+9 | |
Add support for Polaris AMD devices. | |||||
2021-07-23 | vulkan: Enable depth bounds and use it conditionally | ReinUsesLisp | 4 | -2/+17 | |
Intel devices pre-Xe don't support this. | |||||
2021-07-23 | vk_buffer_cache: Add transform feedback usage to buffers | ReinUsesLisp | 1 | -15/+22 | |
2021-07-23 | opengl: Declare fragment outputs even if they are not used | ReinUsesLisp | 6 | -10/+18 | |
Fixes Ori and the Blind Forest's menu on GLASM. For some reason (probably high level optimizations) it is not sanitized on SPIR-V for OpenGL. Vulkan is unaffected by this change. | |||||
2021-07-23 | buffer_cache: Mark uniform buffers as dirty if any enable bit changes | ReinUsesLisp | 5 | -7/+17 | |
2021-07-23 | shader: Always initialize up reference in structure control flow | ReinUsesLisp | 1 | -31/+36 | |
Fixes ubsan issue. | |||||
2021-07-23 | vulkan_device: Enable float64 and int64 conditionally | ReinUsesLisp | 2 | -2/+6 | |
Add Intel Xe support. | |||||
2021-07-23 | shader: Fix ImageWrite indexing | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | spirv: Fix image and image buffer descriptor index usage | ReinUsesLisp | 1 | -5/+7 | |
2021-07-23 | glasm: Fix immediate texture coordinate | ReinUsesLisp | 1 | -0/+1 | |
2021-07-23 | shader: Clang-format secondary textures | ReinUsesLisp | 1 | -2/+2 | |
2021-07-23 | shader: Fix secondary textures | ReinUsesLisp | 1 | -2/+2 | |
2021-07-23 | shader: Adhere to disk shader cache setting | ameerj | 2 | -9/+12 | |
2021-07-23 | shader: Fix TMML queries | ReinUsesLisp | 1 | -5/+9 | |
2021-07-23 | shader: Fix FSwizzleAdd folding when going through phi nodes | ReinUsesLisp | 1 | -2/+2 | |
2021-07-23 | shader/exception: Fix compilation errors on gcc | ReinUsesLisp | 1 | -6/+6 | |
2021-07-23 | glasm: Reduce reg allocation leaks from an exception to a log | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | texture_cache: Reduce invalid image/sampler error severity | ReinUsesLisp | 1 | -7/+7 | |
2021-07-23 | shader: Handle host exceptions | ReinUsesLisp | 8 | -45/+98 | |
2021-07-23 | glasm: Use integer lod for TXQ | ReinUsesLisp | 2 | -2/+2 | |
2021-07-23 | glasm: Prepare XFB from state instead of global registers | ReinUsesLisp | 1 | -4/+2 | |
2021-07-23 | glasm: Fix global memory fallbacks | ReinUsesLisp | 1 | -9/+10 | |
2021-07-23 | Revert "glasm: Skip phi moves on undefined instructions" | ReinUsesLisp | 2 | -16/+1 | |
Causes regressions on Bowser's Fury. | |||||
2021-07-23 | glasm: Remove unintentional '\n' on Undef32 | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | glasm: Use storage buffers instead of global memory when possible | ReinUsesLisp | 17 | -437/+503 | |
2021-07-23 | glasm: Implement Y direction | ReinUsesLisp | 4 | -3/+9 | |
2021-07-23 | glasm: Skip phi moves on undefined instructions | ReinUsesLisp | 2 | -1/+16 | |
2021-07-23 | glasm: Implement undef instructions | ReinUsesLisp | 2 | -15/+15 | |
2021-07-23 | glasm: Fix global memory callbacks | ReinUsesLisp | 1 | -5/+6 | |
2021-07-23 | gl_shader_cache: Add disk shader cache | ReinUsesLisp | 3 | -11/+116 | |
2021-07-23 | video_core,shader: Clang-format fixes | ReinUsesLisp | 4 | -7/+12 | |
2021-07-23 | gl_shader_cache: Rename Program abstractions into Pipeline | ReinUsesLisp | 10 | -104/+104 | |
2021-07-23 | glasm: Release phi node registers after they are no longer needed | ReinUsesLisp | 2 | -38/+54 | |
2021-07-23 | glasm: Remove unintentionally committed fmt::prints | ReinUsesLisp | 1 | -2/+0 | |
2021-07-23 | glasm: Fix INeg32 on negative immediates | ReinUsesLisp | 1 | -1/+5 | |
2021-07-23 | glasm: Remove unnecessary value types | ReinUsesLisp | 3 | -47/+6 | |
2021-07-23 | glasm: Throw when there are register leaks | ReinUsesLisp | 2 | -0/+7 | |
2021-07-23 | glasm: Catch more register leaks | ReinUsesLisp | 8 | -41/+114 | |
Add support for null registers. These are used when an instruction has no usages. This comes handy when an instruction is only used for its CC value, with the caveat of having to invalidate all pseudo-instructions before defining the instruction itself in the register allocator. This commits changes this. Workaround a bug on Nvidia's condition codes conditional execution using branches. | |||||
2021-07-23 | glasm: Fix usage counting on phi nodes | ReinUsesLisp | 3 | -8/+22 | |
2021-07-23 | gl_shader_cache: Do not flip tessellation on OpenGL | ReinUsesLisp | 1 | -2/+1 | |
2021-07-23 | gl_graphics_program: Fix texture buffer bindings | ReinUsesLisp | 1 | -24/+35 | |
2021-07-23 | glasm: Implement global memory fallbacks | ReinUsesLisp | 2 | -50/+89 | |
2021-07-23 | glasm: Implement int64 add and subtract | ReinUsesLisp | 2 | -8/+6 | |
2021-07-23 | emit_glasm_context_get_set: Remove unused variable | lat9nq | 1 | -1/+0 | |
2021-07-23 | glasm: Implement indirect attribute loads | ReinUsesLisp | 4 | -6/+65 | |
2021-07-23 | glasm: Implement image atomics | ReinUsesLisp | 3 | -166/+153 | |
2021-07-23 | glasm: Reorder unreachable image atomic insts | ReinUsesLisp | 1 | -66/+66 | |
Reorder them to the bottom of the file for readability. | |||||
2021-07-23 | glasm: Implement gl_Layer stores | ReinUsesLisp | 1 | -0/+7 | |
2021-07-23 | glasm: Implement SampleId | ReinUsesLisp | 2 | -3/+3 | |
2021-07-23 | glasm: Implement IsHelperInvocation | ReinUsesLisp | 2 | -3/+3 | |
2021-07-23 | glasm: Fix EmitVertex's optimization | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | gl_shader_cache: Conditionally use viewport mask | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | gl_shader_cache,glasm: Conditionally use typeless image reads extension | ReinUsesLisp | 3 | -39/+43 | |
2021-07-23 | gl_shader_cache: Improve GLASM error print logic | ReinUsesLisp | 1 | -7/+10 | |
2021-07-23 | glasm: Implement forced early Z | ReinUsesLisp | 2 | -4/+8 | |
2021-07-23 | glasm: Set transform feedback state | ReinUsesLisp | 5 | -113/+132 | |
2021-07-23 | video_core: Abstract transform feedback translation utility | ReinUsesLisp | 6 | -111/+145 | |
2021-07-23 | glasm: Simplify patch reads | ReinUsesLisp | 1 | -5/+2 | |
2021-07-23 | glasm: Fix output patch reads | ReinUsesLisp | 2 | -13/+22 | |
With this, Luigi's Mansion's sand renders properly. | |||||
2021-07-23 | gl_shader_cache: Pass shader runtime information | ReinUsesLisp | 1 | -2/+74 | |
2021-07-23 | shader: Split profile and runtime information in separate structs | ReinUsesLisp | 14 | -308/+300 | |
2021-07-23 | emit_glasm_context_get_and_set.cpp: Add missing semicolons | ameerj | 1 | -2/+2 | |
2021-07-23 | glasm: Fix patch attribute declarations | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | glasm: Implement FSWZADD | ameerj | 3 | -4/+28 | |
2021-07-23 | glasm: Implement PrimitiveId attribute read | ReinUsesLisp | 1 | -0/+3 | |
2021-07-23 | glasm: Implement clip distance stores | ReinUsesLisp | 2 | -0/+15 | |
2021-07-23 | glasm: Fix tessellation input attributes | ReinUsesLisp | 1 | -2/+5 | |
2021-07-23 | glasm: Add missing semicolon on tesscoord reading | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | glasm: Fix tessellation headers | ReinUsesLisp | 1 | -2/+2 | |
2021-07-23 | glasm: Add tessellation shader declarations | ReinUsesLisp | 1 | -0/+35 | |
2021-07-23 | glasm: Implement TessellationEvaluationPoint | ReinUsesLisp | 1 | -0/+4 | |
2021-07-23 | gl_shader_manager: Zero initialize current assembly programs | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | gl_shader_manager: Remove unintentionally committed #pragma | ReinUsesLisp | 1 | -2/+0 | |
2021-07-23 | glasm: Implement patch memory | ReinUsesLisp | 3 | -6/+51 | |
2021-07-23 | glasm: Fix InvocationId declaration | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | glasm: Implement InvocationId | ReinUsesLisp | 2 | -2/+5 | |
2021-07-23 | glasm: Optimize EmitVertex into EMIT | ReinUsesLisp | 1 | -1/+5 | |
2021-07-23 | glasm: Implement geometry shader attribute reads | ReinUsesLisp | 2 | -4/+18 | |
2021-07-23 | glasm: Properly declare attributes on geometry programs | ReinUsesLisp | 3 | -6/+14 | |
2021-07-23 | glasm: Declare geometry program headers | ReinUsesLisp | 1 | -0/+35 | |
2021-07-23 | renderer_opengl: State track compute assembly programs | ReinUsesLisp | 3 | -4/+21 | |
2021-07-23 | renderer_opengl: State track assembly programs | ReinUsesLisp | 3 | -23/+56 | |
2021-07-23 | glasm: Fix potential aliasing bug on cube array samples | ReinUsesLisp | 2 | -35/+44 | |
2021-07-23 | glasm: Implement ImageWrite | ReinUsesLisp | 1 | -4/+7 | |
2021-07-23 | glasm: Implement ImageRead | ReinUsesLisp | 4 | -4/+56 | |
2021-07-23 | glasm: Implement EmitVertex and EndPrimitive | ReinUsesLisp | 2 | -4/+8 | |
2021-07-23 | glasm: Implement ImageGradient | ReinUsesLisp | 2 | -7/+65 | |
2021-07-23 | glasm: Implement 64-bit shifts | ReinUsesLisp | 2 | -12/+14 | |
2021-07-23 | glasm: Implement barriers | ReinUsesLisp | 1 | -3/+3 | |
2021-07-23 | glasm: Fix compute stage name | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | glasm: Fix phi instruction types | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | glasm: Implement PREC on relevant instructions | ReinUsesLisp | 1 | -6/+12 | |
2021-07-23 | glasm: Implement stores to gl_ViewportIndex | ReinUsesLisp | 4 | -7/+29 | |
2021-07-23 | glasm: Implement gl_PointSize stores | ReinUsesLisp | 1 | -0/+3 | |
2021-07-23 | glasm: Implement gl_PointCoord | ReinUsesLisp | 1 | -0/+4 | |
2021-07-23 | glasm: Implement ImageQueryLod | ReinUsesLisp | 1 | -3/+5 | |
2021-07-23 | glasm: Implement ImageFetch | ReinUsesLisp | 4 | -13/+38 | |
2021-07-23 | glasm: Implement IADD.CC | ameerj | 1 | -1/+26 | |
2021-07-23 | glasm: Implement BFE.CC | ReinUsesLisp | 1 | -0/+8 | |
2021-07-23 | glasm: Implement SelectU1 | ReinUsesLisp | 2 | -4/+5 | |
2021-07-23 | HACK: Bind stages before and after bindings | ReinUsesLisp | 1 | -0/+11 | |
Works around a bug where program parameters are only applied to the current stage, and this one wasn't bound at the moment. Affects all SSBO usages on GLASM. | |||||
2021-07-23 | glasm: Implement gl_WorkGroupID | ReinUsesLisp | 2 | -3/+3 | |
2021-07-23 | glasm: Implement TXQ and improve texture info reads | ReinUsesLisp | 2 | -50/+51 | |
2021-07-23 | glasm: Implement gl_FrongFacing attribute | ReinUsesLisp | 1 | -0/+3 | |
2021-07-23 | glasm: Support textures used in more than one stage | ReinUsesLisp | 4 | -5/+25 | |
2021-07-23 | glasm: Implement textureGather instructions | ReinUsesLisp | 2 | -15/+97 | |
2021-07-23 | glasm: Implement gl_FragDepth and gl_SampleMask stores | ReinUsesLisp | 2 | -5/+5 | |
2021-07-23 | glasm: Do not alias ConditionRef for now | ReinUsesLisp | 2 | -3/+2 | |
Immediate condition refs where not handled correctly. Just move the value for now. | |||||
2021-07-23 | shader: Read branch conditions from an instruction | ReinUsesLisp | 12 | -16/+36 | |
Fixes the identity removal pass. | |||||
2021-07-23 | glasm: Implement InstanceId and VertexId | ReinUsesLisp | 1 | -0/+6 | |
2021-07-23 | glasm: Add missing return value on move assignment | ReinUsesLisp | 1 | -0/+1 | |
2021-07-23 | glasm: Fix aliased bitcasts ref counting | ReinUsesLisp | 3 | -13/+42 | |
2021-07-23 | glasm: Remove unintentional comma on vector insert | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | glasm: Implement TEX and TEXS instructions | ReinUsesLisp | 10 | -69/+275 | |
Remove lod clamp from texture instructions with lod, as this is not needed (nor supported). | |||||
2021-07-23 | glasm: Add support for non-2D texture samples | ReinUsesLisp | 1 | -4/+26 | |
2021-07-23 | glasm: Reorder unreachable image instructions to the bottom | ReinUsesLisp | 1 | -97/+97 | |
2021-07-23 | glasm: Add support for texture offsets | ReinUsesLisp | 1 | -11/+15 | |
2021-07-23 | glasm: Improve texture sampling instructions | ReinUsesLisp | 2 | -50/+70 | |
2021-07-23 | emit_glasm: Enable ARB_draw_buffers when needed | ReinUsesLisp | 2 | -1/+5 | |
2021-07-23 | emit_glasm: Add support for reading position attributes | ReinUsesLisp | 1 | -3/+13 | |
2021-07-23 | shader_recompiler: GCC fixes | lat9nq | 7 | -58/+55 | |
Fixes members of unnamed union not being accessible, and one function without a declaration. | |||||
2021-07-23 | glasm: Implement rest of shared mem | ameerj | 2 | -35/+29 | |
2021-07-23 | opengl: Initial (broken) support to GLASM shaders | ReinUsesLisp | 3 | -14/+53 | |
2021-07-23 | shader: Use a non-trivial dummy to construct ASL node union | ReinUsesLisp | 1 | -1/+6 | |
2021-07-23 | emit_spirv: Jump to loop body with local variable | ReinUsesLisp | 1 | -1/+1 | |
Silence unused variable warning | |||||
2021-07-23 | glasm: Implement derivative instructions on GLASM | ReinUsesLisp | 2 | -12/+12 | |
2021-07-23 | glasm: Initial (broken) implementation of TEX on GLASM | ReinUsesLisp | 3 | -299/+386 | |
2021-07-23 | glasm: Implement some graphics instructions on GLASM | ReinUsesLisp | 2 | -6/+5 | |
2021-07-23 | glasm: Add Void type to GLASM values | ReinUsesLisp | 3 | -0/+15 | |
2021-07-23 | glasm: Add graphics specific shader declarations to GLASM | ReinUsesLisp | 2 | -6/+63 | |
2021-07-23 | glasm: Implement local memory for glasm | ameerj | 4 | -9/+12 | |
2021-07-23 | emit_spirv: Add missing block in case | ReinUsesLisp | 1 | -1/+2 | |
2021-07-23 | glasm: Initial implementation of phi nodes on GLASM | ReinUsesLisp | 12 | -25/+117 | |
2021-07-23 | glasm: Write result to scalar on integer comparison instructions | ReinUsesLisp | 1 | -10/+10 | |
2021-07-23 | glasm: Declare NV_shader_thread_group when needed | ReinUsesLisp | 1 | -3/+4 | |
2021-07-23 | vk_update_descriptor: Properly initialize payload on the update descriptor queue | ReinUsesLisp | 1 | -1/+3 | |
2021-07-23 | glasm: Rework control flow introducing a syntax list | ReinUsesLisp | 33 | -505/+437 | |
This commit regresses VertexA shaders, their transformation pass has to be adapted to the new control flow. | |||||
2021-07-23 | glasm: Implement Storage atomics | ameerj | 5 | -109/+156 | |
StorageAtomicExchangeU64 is failing test seemingly due to failure storing 64-bit result into the register | |||||
2021-07-23 | glasm: Ensure reg alloc order across compilers on GLASM | ReinUsesLisp | 1 | -11/+14 | |
Use a struct constructor to serialize register allocation arguments to ensure registers are allocated in the same order regardless of the compiler used. The A and B functions can be called in any order when passed as arguments to "foo": foo(A(), B()) But the order is guaranteed for curly-braced constructor calls in classes: Foo{A(), B()} Use this to get consistent behavior. | |||||
2021-07-23 | glasm: Enable unintentionally disabled register aliasing on GLASM | ReinUsesLisp | 1 | -16/+11 | |
2021-07-23 | glasm: Review all GLASM insts to be aware of register aliasing | ReinUsesLisp | 4 | -20/+51 | |
2021-07-23 | glasm: Implement shuffle and vote instructions on GLASM | ReinUsesLisp | 10 | -100/+166 | |
2021-07-23 | glasm: Add MUFU instructions to GLASM | ReinUsesLisp | 2 | -21/+22 | |
2021-07-23 | glasm: Implement IAbs64 and INeg64 on GLASM | ReinUsesLisp | 2 | -6/+6 | |
2021-07-23 | shader: Add floating-point rounding to I2F | ReinUsesLisp | 3 | -35/+42 | |
2021-07-23 | glasm: Properly clamp Fp64 on GLASM | ReinUsesLisp | 1 | -6/+6 | |
2021-07-23 | glasm: Fix register allocation when moving immediate on GLASM | ReinUsesLisp | 3 | -42/+89 | |
2021-07-23 | glasm: Implement SelectU64 on GLASM | ReinUsesLisp | 2 | -4/+20 | |
2021-07-23 | glasm: Fix clamps so the min value has priority on NAN on GLASM | ReinUsesLisp | 1 | -12/+15 | |
2021-07-23 | glasm: Fix moving U64 immediates to registers in GLASM | ReinUsesLisp | 2 | -3/+4 | |
2021-07-23 | glasm: Implement storage atomic ops | ameerj | 4 | -305/+358 | |
2021-07-23 | glasm: Add conversion instructions to GLASM | ReinUsesLisp | 9 | -282/+351 | |
2021-07-23 | glasm: Add fp min/max insts and fix store for fp64 on GLASM | ReinUsesLisp | 2 | -10/+8 | |
2021-07-23 | glasm: Add logical instructions on GLASM | ReinUsesLisp | 2 | -12/+12 | |
2021-07-23 | glasm: Remove duplicated Fp64 pack instructions on GLASM | ReinUsesLisp | 1 | -8/+0 | |
2021-07-23 | glasm: Remove unnecesary new white space on Clamp GLASM | ReinUsesLisp | 1 | -4/+4 | |
2021-07-23 | glasm: Add floating-point comparisons on GLASM | ReinUsesLisp | 3 | -120/+116 | |
2021-07-23 | emit_glasm: Implement more integer alu ops | ameerj | 2 | -47/+41 | |
2021-07-23 | glasm: Reimplement bitwise ops and BFI/BFE | ameerj | 4 | -88/+108 | |
2021-07-23 | glasm: Initial GLASM fp64 support | ReinUsesLisp | 9 | -55/+152 | |
2021-07-23 | glasm: Implement GLASM fp16 packing and move bitwise insns | ReinUsesLisp | 4 | -66/+77 | |
2021-07-23 | glasm: Remove unused functions left from rebase | ReinUsesLisp | 1 | -12/+0 | |
2021-07-23 | glasm: Specify namespace when using FormatTo | ReinUsesLisp | 1 | -6/+6 | |
2021-07-23 | glasm: Implement more GLASM composite instructions | ReinUsesLisp | 2 | -54/+63 | |
2021-07-23 | vk_pipeline_cache: Enable int8 and int16 types on Vulkan | ReinUsesLisp | 1 | -0/+2 | |
2021-07-23 | glasm: Make GLASM aware of types | ReinUsesLisp | 12 | -1244/+1380 | |
2021-07-23 | glasm: Use CMP.S for Select32 | ameerj | 3 | -12/+8 | |
also fixes ADD and SUB to use U modifier | |||||
2021-07-23 | glasm: Implement more logical ops | ameerj | 2 | -5/+5 | |
2021-07-23 | glasm: Implement BFI, BFE | ameerj | 4 | -138/+164 | |
Along with implementations of common instructions along the way | |||||
2021-07-23 | glasm: Use BitField instead of C bitfields | ReinUsesLisp | 2 | -8/+12 | |
2021-07-23 | glasm: Remove unused argument in identity instructions on GLASM | ReinUsesLisp | 1 | -7/+7 | |
2021-07-23 | gl_rasterizer: Flush L2 caches before glFlush on GLASM | ReinUsesLisp | 1 | -0/+8 | |
2021-07-23 | glasm: Initial GLASM compute implementation for testing | ReinUsesLisp | 3 | -14/+47 | |
2021-07-23 | glasm: Implement basic GLASM instructions | ReinUsesLisp | 10 | -840/+1173 | |
2021-07-23 | glasm: Changes to GLASM register allocator and emit context | ReinUsesLisp | 4 | -26/+64 | |
2021-07-23 | vk_scheduler: Use locks instead of SPSC a queue | ReinUsesLisp | 2 | -32/+42 | |
This tries to fix a data race where we'd wait forever for the GPU. | |||||
2021-07-23 | vk_query_cache: Wait before reading queries | ReinUsesLisp | 1 | -9/+2 | |
2021-07-23 | vk_master_semaphore: Use fetch_add to increase master semaphore tick | ReinUsesLisp | 2 | -6/+4 | |
2021-07-23 | glasm: Add GLASM backend infrastructure | ReinUsesLisp | 28 | -4/+3115 | |
2021-07-23 | shader: ISET.X implementation | ameerj | 1 | -8/+58 | |
2021-07-23 | gl_shader_cache: Remove code unintentionally committed | ReinUsesLisp | 1 | -3/+0 | |
2021-07-23 | shader: Fixup SPIR-V emit header namespaces | ReinUsesLisp | 1 | -2/+2 | |
2021-07-23 | Move SPIR-V emission functions to their own header | ReinUsesLisp | 26 | -579/+637 | |
2021-07-23 | shader: Optimize NVN Fallthrough | FernandoS27 | 4 | -9/+83 | |
2021-07-23 | shader: Stub SR_AFFINITY | FernandoS27 | 1 | -0/+3 | |
2021-07-23 | shader: Implement Int32 SUATOM/SURED | ameerj | 17 | -6/+733 | |
2021-07-23 | shader: Initial OpenGL implementation | ReinUsesLisp | 38 | -705/+1427 | |
2021-07-23 | spirv: Be aware of NAN unaware drivers | ReinUsesLisp | 1 | -18/+40 | |
2021-07-23 | spirv: Add SSBO read fallbacks when no aliasing is available | ReinUsesLisp | 1 | -37/+99 | |
2021-07-23 | spirv: Add OpKill fallback to demote | ReinUsesLisp | 1 | -2/+6 | |
2021-07-23 | spirv: Do not enable ShaderLayer | ReinUsesLisp | 1 | -3/+0 | |
This is enabled by an extension instead of the capability. | |||||
2021-07-23 | spirv: Enable DemoteToHelperInvocationEXT only when supported | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | spirv: Use OriginLowerLeft when requested | ReinUsesLisp | 1 | -1/+5 | |
2021-07-23 | spirv: Only add image operands mask when needed | ReinUsesLisp | 1 | -5/+9 | |
2021-07-23 | spirv: Workaround image unsigned offset bug | ReinUsesLisp | 2 | -9/+26 | |
Workaround bug on Nvidia's OpenGL SPIR-V compiler when using unsigned texture offsets. | |||||
2021-07-23 | spirv: Add int8 and int16 capabilities only when supported | ReinUsesLisp | 1 | -2/+2 | |
2021-07-23 | spirv: Add integer clamping workarounds | ReinUsesLisp | 1 | -4/+34 | |
Workaround more bugs on Nvidia's OpenGL SPIR-V compiler. | |||||
2021-07-23 | spirv: Implement int8 and int16 conversion fallbacks | ReinUsesLisp | 1 | -19/+80 | |
2021-07-23 | spirv: Support OpenGL uniform buffers and change bindings | ReinUsesLisp | 6 | -58/+168 | |
2021-07-23 | spirv: Desambiguate descriptor names | ReinUsesLisp | 1 | -9/+37 | |
Worksaround a bug on Nvidia's OpenGL SPIR-V compiler where names are used for name matching. | |||||
2021-07-23 | shader: Add OpenGL shader profile options | ReinUsesLisp | 1 | -0/+11 | |
2021-07-23 | shader: Remove shader util | ReinUsesLisp | 4 | -176/+0 | |
2021-07-23 | shader: Address feedback | FernandoS27 | 5 | -44/+42 | |
2021-07-23 | shader: Implement VertexA stage | FernandoS27 | 12 | -3/+180 | |
2021-07-23 | shader: Implement delegation of Exit to dispatcher on CFG | FernandoS27 | 2 | -3/+47 | |
2021-07-23 | vk_graphics_pipeline: Fix texture buffer descriptors | ReinUsesLisp | 1 | -7/+8 | |
2021-07-23 | shader: Fix IADD3.CC | ameerj | 1 | -12/+5 | |
2021-07-23 | vk_scheduler: Allow command submission on worker thread | ReinUsesLisp | 8 | -182/+200 | |
This changes how Scheduler::Flush works. It queues the current command buffer to be sent to the GPU but does not do it immediately. The Vulkan worker thread takes care of that. Users will have to use Scheduler::Flush + Scheduler::WaitWorker to get the previous behavior. Scheduler::Finish is unchanged. To avoid waiting on work never queued, Scheduler::Wait sends the current command buffer if that's what the caller wants to wait. | |||||
2021-07-23 | vk_compute_pass: Fix -Wshadow warning | ReinUsesLisp | 1 | -3/+3 | |
2021-07-23 | shader: Move pipeline cache logic to separate files | ReinUsesLisp | 12 | -824/+1095 | |
Move code to separate files to be able to reuse it from OpenGL. This greatly simplifies the pipeline cache logic on Vulkan. Transform feedback state is not yet abstracted and it's still intrusively stored inside vk_pipeline_cache. It will be moved when needed on OpenGL. | |||||
2021-07-23 | vulkan: Defer descriptor set work to the Vulkan thread | ReinUsesLisp | 8 | -79/+69 | |
Move descriptor lookup and update code to a separate thread. Delaying this removes work from the main GPU thread and allows creating descriptor layouts on another thread. This reduces a bit the workload of the main thread when new pipelines are encountered. | |||||
2021-07-23 | vulkan: Rework descriptor allocation algorithm | ReinUsesLisp | 15 | -197/+314 | |
Create multiple descriptor pools on demand. There are some degrees of freedom what is considered a compatible pool to avoid wasting large pools on small descriptors. | |||||
2021-07-23 | vk_graphics_pipeline: Generate specialized pipeline config functions and improve code | ReinUsesLisp | 2 | -31/+230 | |
2021-07-23 | shader: Accelerate pipeline transitions and use dirty flags for shaders | ReinUsesLisp | 9 | -64/+114 | |
2021-07-23 | shader: Fix BFE s32 undefined check | ameerj | 1 | -1/+1 | |
Our unit tests were hitting this exception. | |||||
2021-07-23 | vk_compute_pipeline: Fix index comparison oversight on compute texture buffers | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | shader: Fix error checking in bitfieldExtract and implement bitfieldInsert folding | ReinUsesLisp | 1 | -5/+14 | |
2021-07-23 | vulkan_device: Require shaderClipDistance and shaderCullDistance features | ReinUsesLisp | 1 | -2/+4 | |
2021-07-23 | vk_graphics_pipeline: Guard against non-tessellation pipelines using patches | ReinUsesLisp | 1 | -2/+8 | |
2021-07-23 | shader: Fix storage type when reading patches on tess control | ReinUsesLisp | 1 | -1/+2 | |
2021-07-23 | shader: Fix VMNMX selector B | ReinUsesLisp | 1 | -1/+2 | |
2021-07-23 | shader: Fix bugs and build issues on GCC | Rodrigo Locatti | 3 | -4/+4 | |
2021-07-23 | shader: Fix render targets with null attachments | ReinUsesLisp | 2 | -26/+34 | |
2021-07-23 | shader: Increase the maximum number of storage buffers | ReinUsesLisp | 1 | -1/+1 | |
Compute shaders spill uniform buffers on storage buffers, increasing the expected number. | |||||
2021-07-23 | shader: Remove identity removal pass for better build times | ReinUsesLisp | 1 | -1/+0 | |
2021-07-23 | shader: Add more strict validation the pass | ReinUsesLisp | 1 | -0/+42 | |
2021-07-23 | shader: Fix forward referencing identity instructions when inserting phi | ReinUsesLisp | 1 | -11/+13 | |
2021-07-23 | shader: Remove invalidated blocks in dead code elimination pass | ReinUsesLisp | 1 | -3/+6 | |
2021-07-23 | shader: Add missing UndoUse case for GetSparseFromOp | ReinUsesLisp | 1 | -0/+4 | |
2021-07-23 | shader: Require dual source blending | ReinUsesLisp | 1 | -1/+2 | |
2021-07-23 | shader: Simplify code in opcodes.h to fix Intellisense | ReinUsesLisp | 1 | -8/+6 | |
Avoid using std::array to fix Intellisense not properly compiling this code and disabling itself on all files that include it. While we are at it, change the code to use u8 instead of size_t for the number of instructions in an opcode. | |||||
2021-07-23 | shader: Implement indexed textures | ReinUsesLisp | 10 | -157/+284 | |
2021-07-23 | shader: Refactor atomic_operations_global_memory | ameerj | 1 | -44/+36 | |
2021-07-23 | shader: add missing include guard in half_floating_point_helper.h | ameerj | 1 | -0/+2 | |
2021-07-23 | shader: Fix gcc warnings | ReinUsesLisp | 2 | -2/+2 | |
2021-07-23 | shader: Inline common Value getters | ReinUsesLisp | 2 | -109/+102 | |
2021-07-23 | shader: Intrusively store in a block if it's sealed or not | ReinUsesLisp | 2 | -3/+11 | |
2021-07-23 | cmake: Link to common in shader_recompiler | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | shader: Improve goto removal algorithm complexity | ReinUsesLisp | 1 | -49/+28 | |
Find sibling node containing a nephew searching from the nephew itself instead of the uncle. | |||||
2021-07-23 | shader: Use memset to reset instruction arguments | ReinUsesLisp | 2 | -4/+7 | |
2021-07-23 | shader: Inline common Value functions into the header | ReinUsesLisp | 2 | -19/+23 | |
2021-07-23 | shader: Move microinstruction header to the value header | ReinUsesLisp | 20 | -181/+162 | |
2021-07-23 | shader: Move siblings check to a separate function and comment them out | ReinUsesLisp | 1 | -16/+21 | |
2021-07-23 | shader: Intrusively store register values in block for SSA pass | ReinUsesLisp | 2 | -21/+53 | |
2021-07-23 | shader: Inline common Opcode and Inst functions | ReinUsesLisp | 4 | -112/+83 | |
2021-07-23 | shader: Inline common IR::Block methods | ReinUsesLisp | 2 | -17/+12 | |
2021-07-23 | shader: Use a small_vector for phi blocks | ReinUsesLisp | 1 | -1/+2 | |
2021-07-23 | shader: Calculate number of arguments in an opcode at compile time | ReinUsesLisp | 1 | -3/+12 | |
2021-07-23 | shader: Implement D3D samplers | ReinUsesLisp | 6 | -49/+127 | |
2021-07-23 | shader: Add constant propagation for arithmetic right shifts | ReinUsesLisp | 1 | -0/+3 | |
2021-07-23 | shader: Simplify code for local memory | ReinUsesLisp | 1 | -6/+11 | |
2021-07-23 | shader: Add NVN storage buffer fallbacks | ReinUsesLisp | 9 | -62/+214 | |
When we can't track the SSBO origin of a global memory instruction, leave it as a global memory operation and assume these pointers are in the NVN storage buffer slots, then apply a linear search in the shader's runtime. | |||||
2021-07-23 | spirv: Fix ViewportMask | ReinUsesLisp | 1 | -1/+2 | |
2021-07-23 | spirv: Replace Constant/ConstantComposite with Const helper | ameerj | 12 | -112/+101 | |
2021-07-23 | shader: Address feedback | FernandoS27 | 2 | -7/+10 | |
2021-07-23 | shader: Implement F2F (Imm) | FernandoS27 | 1 | -2/+28 | |
2021-07-23 | shader: Implement IADD3.CC/.X | FernandoS27 | 1 | -7/+22 | |
2021-07-23 | shader: Address feedback | FernandoS27 | 4 | -7/+4 | |
2021-07-23 | shader: Add coarse derivatives | FernandoS27 | 7 | -8/+28 | |
2021-07-23 | shader: Implement fine derivates constant propagation | FernandoS27 | 9 | -0/+101 | |
2021-07-23 | shader: Implement SR_Y_DIRECTION | FernandoS27 | 10 | -0/+22 | |
2021-07-23 | shader: Fix Phi node types | ReinUsesLisp | 2 | -4/+4 | |
2021-07-23 | shader: Fix memory barriers | ReinUsesLisp | 8 | -62/+30 | |
2021-07-23 | spirv: Fix implicit lod type | ReinUsesLisp | 2 | -1/+5 | |
2021-07-23 | spirv: Use explicit lods outside of fragment shaders | ReinUsesLisp | 1 | -5/+16 | |
2021-07-23 | spirv: Use ConstOffset instead of Offset when possible | ReinUsesLisp | 3 | -21/+67 | |
2021-07-23 | shader: Implement BFE and BFI CC | ameerj | 3 | -14/+17 | |
Fix two bugs in BFI. | |||||
2021-07-23 | shader: Implement SampleMask | ReinUsesLisp | 11 | -2/+22 | |
2021-07-23 | shader: Implement PIXLD.MY_INDEX | ReinUsesLisp | 14 | -5/+71 | |
2021-07-23 | spirv: Bitcast non-F32 output attributes to their type before store | ReinUsesLisp | 1 | -13/+28 | |
2021-07-23 | spirv: Implement ViewportMask with NV_viewport_array2 | ReinUsesLisp | 10 | -0/+32 | |
2021-07-23 | spirv: Bitcast non-F32 attributes to F32 | ReinUsesLisp | 1 | -7/+9 | |
2021-07-23 | shader: Implement PrimitiveId | ReinUsesLisp | 5 | -0/+10 | |
2021-07-23 | shader: Implement tessellation shaders, polygon mode and invocation id | ReinUsesLisp | 28 | -91/+605 | |
2021-07-23 | shader: Mark atomic instructions as writes | ReinUsesLisp | 1 | -0/+27 | |
2021-07-23 | vk_pipeline_cache: Silence GCC warnings | lat9nq | 1 | -0/+2 | |
Silences `-Werror=missing-field-initializers` due to missing initializers. | |||||
2021-07-23 | spirv: Implement image buffers | ReinUsesLisp | 9 | -49/+142 | |
2021-07-23 | spirv: Implement Layer stores | ReinUsesLisp | 6 | -9/+30 | |
2021-07-23 | spirv: Fix alpha test | FernandoS27 | 1 | -0/+5 | |
2021-07-23 | spirv: Fix non-atomic 64-bit store | ameerj | 1 | -1/+1 | |
2021-07-23 | spirv: Implement alpha test | ameerj | 3 | -1/+95 | |
2021-07-23 | shader: Implement transform feedbacks and define file format | ReinUsesLisp | 11 | -23/+272 | |
2021-07-23 | shader: Implement early Z tests | ReinUsesLisp | 3 | -0/+5 | |
2021-07-23 | shader: Document and relax cache control on surface instructions | ReinUsesLisp | 1 | -10/+11 | |
2021-07-23 | spirv: Rework storage buffers and shader memory | ReinUsesLisp | 9 | -500/+581 | |
2021-07-23 | shader: Fix fixed pipeline point size on geometry shaders | ReinUsesLisp | 1 | -10/+18 | |
2021-07-23 | shader: Add constant propagation for *&^| binary operations | ReinUsesLisp | 1 | -0/+12 | |
2021-07-23 | shader: Implement geometry shaders | ReinUsesLisp | 14 | -91/+277 | |
2021-07-23 | shader: Implement OUT | ReinUsesLisp | 10 | -17/+73 | |
2021-07-23 | internal_stage_buffer_entry_read: Remove pragma optimize off | lat9nq | 1 | -2/+0 | |
2021-07-23 | shader: Stub SR_INVOCATION_INFO | ReinUsesLisp | 1 | -2/+5 | |
2021-07-23 | shader: Stub ISBERD | ReinUsesLisp | 3 | -4/+56 | |
2021-07-23 | shader: Fix CC in I2I | ReinUsesLisp | 1 | -0/+2 | |
2021-07-23 | spirv: Define StorageImageWriteWithoutFormat capability when used | ReinUsesLisp | 3 | -0/+9 | |
2021-07-23 | pipeline_helper: Simplify descriptor objects initialization | ReinUsesLisp | 1 | -33/+25 | |
2021-07-23 | shader: Simplify FLO and throw on CC | ReinUsesLisp | 1 | -12/+13 | |
2021-07-23 | shader: Mark blocks with no end branch as unreachable | ReinUsesLisp | 1 | -2/+7 | |
2021-07-23 | shader: Implement LOP CC | ReinUsesLisp | 3 | -12/+29 | |
2021-07-23 | shader: Implement SR_THREAD_KILL | ReinUsesLisp | 10 | -0/+22 | |
2021-07-23 | shader: Apply sign bit in FCMP (imm) | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | shader: Implement ATOM/S and RED | ameerj | 21 | -19/+1745 | |
2021-07-23 | nsight_aftermath_tracker: Report used shaders to Nsight Aftermath | ReinUsesLisp | 6 | -16/+20 | |
2021-07-23 | spirv: Move phi node patching to a separate function | ReinUsesLisp | 1 | -13/+16 | |
2021-07-23 | spirv: Guard against typeless image reads on unsupported devices | ReinUsesLisp | 6 | -1/+17 | |
2021-07-23 | shader: Move LaneId to the warp emission file and fix AMD | ReinUsesLisp | 5 | -7/+11 | |
2021-07-23 | vk_rasterizer: Request outside render pass execution context for compute | ReinUsesLisp | 1 | -0/+1 | |
2021-07-23 | pipeline_helper: Add missing [[maybe_unused]] | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | spirv: Fix forward declarations on phi nodes | ReinUsesLisp | 1 | -47/+25 | |
2021-07-23 | shader: Mark ImageWrite with side effects | ReinUsesLisp | 1 | -0/+3 | |
2021-07-23 | shader: Implement CC for ISET, FSET, PSET, CSET, and DSET | FernandoS27 | 18 | -13/+136 | |
Throw when other instructions are missing CC. | |||||
2021-07-23 | shader: Remove outdated comment in F2I | ReinUsesLisp | 1 | -4/+0 | |
2021-07-23 | shader: Implement SULD and SUST | ReinUsesLisp | 31 | -202/+732 | |
2021-07-23 | shader: Fix Windows build issues | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | shader: Address feedback + clang format | lat9nq | 12 | -24/+22 | |
2021-07-23 | shader_recompiler,video_core: Cleanup some GCC and Clang errors | lat9nq | 66 | -313/+308 | |
Mostly fixing unused *, implicit conversion, braced scalar init, fpermissive, and some others. Some Clang errors likely remain in video_core, and std::ranges is still a pertinent issue in shader_recompiler shader_recompiler: cmake: Force bracket depth to 1024 on Clang Increases the maximum fold expression depth thread_worker: Include condition_variable Don't use list initializers in control flow Co-authored-by: ReinUsesLisp <reinuseslisp@airmail.cc> | |||||
2021-07-23 | shader: Fix FCMP immediate variant | ReinUsesLisp | 1 | -1/+9 | |
2021-07-23 | shader: Fix dangling labels | ReinUsesLisp | 1 | -0/+5 | |
2021-07-23 | shader: Interact texture buffers with buffer cache | ReinUsesLisp | 17 | -148/+333 | |
2021-07-23 | shader: Fix F2I | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | shader: Fix TextureGrad | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | shader: Implement texture buffers | ReinUsesLisp | 10 | -35/+154 | |
2021-07-23 | shader: Address feedback | FernandoS27 | 5 | -53/+54 | |
2021-07-23 | shader: Implement indexed Position and ClipDistances | FernandoS27 | 3 | -11/+100 | |
2021-07-23 | shader: Implement indexed attributes | FernandoS27 | 12 | -35/+279 | |
2021-07-23 | shader: Implement AL2P | FernandoS27 | 3 | -4/+36 | |
2021-07-23 | shader: Fix BRX tracking | FernandoS27 | 2 | -3/+4 | |
2021-07-23 | vk_pipeline_cache: Fix num of pipeline workers on weird platforms | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | shader: Move recursive SSA rewrite to the heap | ReinUsesLisp | 1 | -29/+89 | |
2021-07-23 | shader: Fix ShadowCube declaration type, set number of pipeline threads based on hardware | FernandoS27 | 2 | -2/+4 | |
2021-07-23 | shader: Fix splits on blocks using indirect branches | ReinUsesLisp | 3 | -17/+38 | |
2021-07-23 | shader: Eliminate orphan blocks more efficiently | ReinUsesLisp | 1 | -7/+8 | |
2021-07-23 | shader: Add subgroup masks | ReinUsesLisp | 10 | -45/+169 | |
2021-07-23 | shader: Implement BAR and fix memory barriers | ReinUsesLisp | 7 | -5/+79 | |
2021-07-23 | shader: Abstract breadth searches and use the abstraction | ReinUsesLisp | 4 | -104/+106 | |
2021-07-23 | shader: Reimplement GetCbufU64 as GetCbufU32x2 | ReinUsesLisp | 9 | -22/+21 | |
It may generate better code on some compilers and it's easier to handle. | |||||
2021-07-23 | vk_compute_pass: Fix compute passes | ReinUsesLisp | 3 | -23/+19 | |
2021-07-23 | shader: Remove atomic flags and use mutex + cond variable for pipelines | ReinUsesLisp | 4 | -11/+32 | |
2021-07-23 | shader: Remove unused header in VOTE | ReinUsesLisp | 1 | -2/+0 | |
2021-07-23 | vk_pipeline_cache: Remove unnecesary scope in pipeline cache locking | ReinUsesLisp | 1 | -15/+12 | |
2021-07-23 | shader: Rework global memory tracking to use breadth-first search | ReinUsesLisp | 1 | -69/+80 | |
2021-07-23 | shader: Fix fp16 merge when using native fp16 | ReinUsesLisp | 1 | -3/+3 | |
2021-07-23 | shader: Fix FADD32I | ReinUsesLisp | 1 | -6/+4 | |
2021-07-23 | shader: Fix undetected bug from review | FernandoS27 | 1 | -0/+3 | |
2021-07-23 | shader: Address feedback | FernandoS27 | 3 | -13/+16 | |
2021-07-23 | shader: "Implement" NOP | FernandoS27 | 1 | -1/+1 | |
2021-07-23 | vk_pipeline_cache: Small fixes to the pipeline cache | FernandoS27 | 1 | -10/+14 | |
2021-07-23 | shader: Address Feedback | FernandoS27 | 16 | -211/+60 | |
2021-07-23 | shader: Implement SR_LaneId | FernandoS27 | 7 | -0/+15 | |
2021-07-23 | shader: Fix shared memory on cool drivers | FernandoS27 | 1 | -0/+1 | |
2021-07-23 | shader: Implement MEMBAR | FernandoS27 | 9 | -11/+121 | |
2021-07-23 | shader: Improve VOTE.VTG stub | FernandoS27 | 7 | -4/+147 | |
2021-07-23 | shader: Mark SSBOs as written when they are | FernandoS27 | 4 | -4/+32 | |
2021-07-23 | shader: Implement ViewportIndex | FernandoS27 | 8 | -2/+33 | |
2021-07-23 | shader: Stub TLD4's PTP when it isn't constant | FernandoS27 | 1 | -1/+2 | |
2021-07-23 | shader: Stub VOTE.VTG | FernandoS27 | 4 | -4/+15 | |
2021-07-23 | shader: Fold composite extract | FernandoS27 | 1 | -0/+62 | |
2021-07-23 | shader: Fold comparisons and Pack/Unpack16 | FernandoS27 | 1 | -1/+41 | |
2021-07-23 | shader: Fix branches to visited virtual blocks | ReinUsesLisp | 2 | -0/+12 | |
2021-07-23 | vulkan: Serialize pipelines on a separate thread | ReinUsesLisp | 2 | -67/+64 | |
2021-07-23 | vulkan: Create pipeline layouts in separate threads | ReinUsesLisp | 7 | -63/+65 | |
2021-07-23 | vulkan: Build pipelines in parallel at runtime | ReinUsesLisp | 9 | -165/+197 | |
Wait from the worker thread for a pipeline to build before binding it to the command buffer. This allows queueing pipelines to multiple threads. | |||||
2021-07-23 | shader: Fix dependency on identity removal pass | ReinUsesLisp | 2 | -3/+8 | |
2021-07-23 | shader: Fix constant propagation to use reverse post order | ReinUsesLisp | 1 | -1/+2 | |
2021-07-23 | shader: Implement LDG .U.128 as .128 | ReinUsesLisp | 1 | -3/+2 | |
2021-07-23 | shader: Unroll "using enum" for opcode declarations | ReinUsesLisp | 1 | -1/+27 | |
2021-07-23 | vk_pipeline_cache: Name SPIR-V modules | ReinUsesLisp | 1 | -1/+11 | |
2021-07-23 | spirv: Remove unnecesary variable for clip distances | ReinUsesLisp | 2 | -6/+2 | |
2021-07-23 | shader: Implement ClipDistance | FernandoS27 | 5 | -0/+36 | |
2021-07-23 | shader: Fix TXD | FernandoS27 | 2 | -2/+2 | |
2021-07-23 | shader: Address feedback | FernandoS27 | 5 | -53/+49 | |
2021-07-23 | shader: Always pass a lod for TexelFetch | ReinUsesLisp | 3 | -25/+17 | |
2021-07-23 | shader: Implement TXD | FernandoS27 | 4 | -10/+183 | |
2021-07-23 | shader: Implement ImageGradient | FernandoS27 | 8 | -2/+84 | |
2021-07-23 | shader: Implement TMML partially | FernandoS27 | 6 | -13/+137 | |
2021-07-23 | shader,spirv: Implement ImageQueryLod. | FernandoS27 | 9 | -1/+38 | |
2021-07-23 | shader: Implement TLDS | FernandoS27 | 3 | -4/+253 | |
2021-07-23 | shader: Implement TLD | FernandoS27 | 8 | -16/+174 | |
2021-07-23 | spirv: Add fixed pipeline point size | ReinUsesLisp | 4 | -1/+11 | |
2021-07-23 | shader: Add PointCoord attribute | FernandoS27 | 5 | -0/+16 | |
2021-07-23 | shader: Add PointSize attribute | ameerj | 5 | -0/+13 | |
2021-07-23 | shader: Store type of phi nodes in flags | ReinUsesLisp | 3 | -2/+11 | |
This is needed because pseudo-instructions where invalidated. | |||||
2021-07-23 | shader: Fix indirect branches to scheduler instructions | ReinUsesLisp | 3 | -7/+17 | |
2021-07-23 | spirv: Fix default output attribute initialization | ReinUsesLisp | 1 | -3/+3 | |
2021-07-23 | shader: Add missing new lines | ReinUsesLisp | 1 | -0/+2 | |
2021-07-23 | shader: Implement FSWZADD | ameerj | 14 | -4/+87 | |
2021-07-23 | shader: Implement BRX | FernandoS27 | 21 | -48/+437 | |
2021-07-23 | shader: Fix alignment checks on RZ | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | shader: Implement I2I CC | ameerj | 3 | -24/+45 | |
2021-07-23 | shader: Implement I2I SAT | ameerj | 6 | -10/+52 | |
2021-07-23 | vk_pipeline_cache: Fix size hashing of shaders | ReinUsesLisp | 1 | -8/+7 | |
2021-07-23 | shader: Fix ISCADD logic for PO/CC | ameerj | 1 | -7/+8 | |
2021-07-23 | shader: Implement LDS, STS, LDL, and STS and use SPIR-V 1.4 when available | ReinUsesLisp | 20 | -36/+730 | |
2021-07-23 | shader: Implement ISCADD CC | ameerj | 1 | -1/+4 | |
2021-07-23 | shader: Implement VMAD, VMNMX, VSETP | ameerj | 9 | -23/+319 | |
2021-07-23 | shader: Add missing I2I exception when CC is used | ReinUsesLisp | 1 | -0/+4 | |
2021-07-23 | shader: Better interpolation and disabled attributes support | ReinUsesLisp | 9 | -25/+101 | |
2021-07-23 | spirv: Remove dependencies on Environment when generating SPIR-V | ReinUsesLisp | 5 | -16/+15 | |
2021-07-23 | vk_pipeline_cache: Fix pipeline and shader caches | ReinUsesLisp | 2 | -6/+21 | |
2021-07-23 | shader: Implement front face | ReinUsesLisp | 5 | -0/+12 | |
2021-07-23 | shader: Fix structured control flow on KIL instructions | ReinUsesLisp | 2 | -3/+7 | |
This could potentially leave unvisited blocks, leading to illegal phi nodes. | |||||
2021-07-23 | shader: Fix TXQ | FernandoS27 | 1 | -1/+1 | |
2021-07-23 | shader: Fix rasterizer integration order issues | ReinUsesLisp | 3 | -7/+6 | |
2021-07-23 | shader: Implement TXQ and fix FragDepth | ReinUsesLisp | 15 | -21/+264 | |
2021-07-23 | shader: Refactor PTP and other minor changes | ReinUsesLisp | 14 | -123/+67 | |
2021-07-23 | shader: Add IR opcode for ImageFetch | FernandoS27 | 7 | -5/+55 | |
2021-07-23 | shader: Implement TLD4.PTP | FernandoS27 | 15 | -28/+111 | |
2021-07-23 | shader: Fix Array Indices in TEX/TLD4 | FernandoS27 | 2 | -6/+6 | |
2021-07-23 | shader: Implement FragDepth | FernandoS27 | 2 | -1/+7 | |
2021-07-23 | shader: Implement TLD4S. | FernandoS27 | 3 | -4/+134 | |
2021-07-23 | shader: Implement TLD4 and TLD4_B | FernandoS27 | 13 | -11/+315 | |
2021-07-23 | shader: Implement SHFL | ameerj | 16 | -69/+284 | |
2021-07-23 | shader: Track first bindless argument instead of the instruction itself | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | shader: Properly insert Prologue instruction | ReinUsesLisp | 1 | -1/+2 | |
2021-07-23 | shader: Minor style nits | ReinUsesLisp | 1 | -2/+4 | |
2021-07-23 | shader: Fix F2I | FernandoS27 | 10 | -9/+147 | |
2021-07-23 | shader: Implement NDC [-1, 1], attribute types and default varying initialization | ReinUsesLisp | 15 | -43/+186 | |
2021-07-23 | shader: Fix use-after-free bug in object_pool | ReinUsesLisp | 1 | -3/+3 | |
2021-07-23 | shader: Implement VOTE | ameerj | 18 | -6/+182 | |
2021-07-23 | vk_pipeline_cache: Fix ReleaseContents order | ReinUsesLisp | 1 | -2/+2 | |
2021-07-23 | shader: Fix TEX mask | ReinUsesLisp | 1 | -1/+3 | |
2021-07-23 | vk_pipeline_cache: Add pipeline cache | ReinUsesLisp | 2 | -0/+7 | |
2021-07-23 | vk_pipeline_cache: Add pipeline cache | ReinUsesLisp | 8 | -106/+347 | |
2021-07-23 | shader: Fold interpolation multiplications | ReinUsesLisp | 1 | -0/+34 | |
2021-07-23 | shader: Better but still partial interpolation support | ReinUsesLisp | 1 | -5/+7 | |
2021-07-23 | shader: Implement DMNMX, DSET, DSETP | ameerj | 16 | -59/+210 | |
2021-07-23 | shader: Implement FADD32I | FernandoS27 | 1 | -2/+15 | |
2021-07-23 | shader: Implement F2F | FernandoS27 | 6 | -20/+192 | |
2021-07-23 | shader: Add missing fp64 usage flags | ReinUsesLisp | 1 | -0/+34 | |
2021-07-23 | shader: Implement DMUL and DFMA | ameerj | 8 | -30/+111 | |
Also add a missing const on DADD | |||||
2021-07-23 | shader: Add FP64 register load/store helpers | ameerj | 3 | -21/+24 | |
2021-07-23 | shader: Add support for fp16 comparisons and misc fixes | ReinUsesLisp | 11 | -14/+56 | |
2021-07-23 | shader: Fix floating point comparison for FP16 | FernandoS27 | 5 | -32/+56 | |
2021-07-23 | shader: Implement HSETP2 | FernandoS27 | 3 | -12/+117 | |
2021-07-23 | shader: Implement HSET2 | FernandoS27 | 5 | -14/+119 | |
2021-07-23 | shader: Implement HMUL2 | FernandoS27 | 3 | -16/+144 | |
2021-07-23 | shader: Implement HFMA2 | FernandoS27 | 5 | -20/+192 | |
2021-07-23 | spirv: Implement VertexId and InstanceId, refactor code | ReinUsesLisp | 10 | -144/+244 | |
2021-07-23 | shader: Refactor half floating instructions | FernandoS27 | 4 | -58/+84 | |
2021-07-23 | shader: Implement I2F | ReinUsesLisp | 17 | -70/+429 | |
2021-07-23 | shader: Implement ISCADD (imm) | ReinUsesLisp | 1 | -2/+2 | |
2021-07-23 | shader: Implement LOP32I | ReinUsesLisp | 2 | -18/+45 | |
2021-07-23 | shader: Add partial rasterizer integration | ReinUsesLisp | 54 | -566/+1927 | |
2021-07-23 | shader: Implement DADD | ameerj | 8 | -14/+132 | |
2021-07-23 | shader: Implement CSET and CSETP | ameerj | 6 | -15/+114 | |
2021-07-23 | shader: Reorder phi nodes when redefined as undefined opcodes | ReinUsesLisp | 1 | -1/+9 | |
2021-07-23 | shader: Fix instruction transitions in and out of Phi | ReinUsesLisp | 1 | -9/+11 | |
2021-07-23 | shader: Implement FSET and FSETP | ameerj | 9 | -94/+204 | |
Also fix oversight with adding SignedZeroInfNanPreserve execution mode. | |||||
2021-07-23 | shader: Implement TEXS | ReinUsesLisp | 8 | -7/+287 | |
2021-07-23 | shader: Implement CAL inlining function calls | ReinUsesLisp | 24 | -330/+286 | |
2021-07-23 | spirv: Add SignedZeroInfNanPreserve logic | ameerj | 3 | -0/+12 | |
2021-07-23 | shader: Implement FMNMX | ameerj | 8 | -25/+101 | |
And add a const in FCMP | |||||
2021-07-23 | shader: Fix rebase issue | ReinUsesLisp | 1 | -1/+0 | |
2021-07-23 | shader: Implement FCMP | ameerj | 9 | -50/+203 | |
still need to configure some settings for NV denorm flush and intel NaN | |||||
2021-07-23 | shader: Partial implementation of LDC | ReinUsesLisp | 16 | -50/+405 | |
2021-07-23 | shader: Initial support for textures and TEX | ReinUsesLisp | 33 | -342/+1489 | |
2021-07-23 | shader: Implement R2P | ameerj | 8 | -15/+88 | |
2021-07-23 | shader: Implement SHF | ameerj | 8 | -31/+119 | |
2021-07-23 | shader: Implement LEA | ameerj | 9 | -29/+136 | |
2021-07-23 | shader: Deduplicate HADD2 code | ReinUsesLisp | 1 | -19/+16 | |
2021-07-23 | shader: Implement I2I | ameerj | 3 | -12/+100 | |
2021-07-23 | shader: Implement HADD2 | ReinUsesLisp | 12 | -42/+400 | |
2021-07-23 | shader: Implement LOP and LOP3 | ameerj | 8 | -31/+227 | |
2021-07-23 | shader: Implement IADD3 | ameerj | 3 | -12/+104 | |
2021-07-23 | shader: Implement PSETP | ameerj | 4 | -5/+40 | |
2021-07-23 | Implement PSET, refactor common comparison funcs | ameerj | 9 | -101/+88 | |
2021-07-23 | shader: Implement FLO | ameerj | 8 | -18/+75 | |
2021-07-23 | shader: Implement ISET, add common_funcs | ameerj | 8 | -50/+150 | |
2021-07-23 | shader: Make IMNMX, SHR, SEL stylistically more consistent | ameerj | 3 | -5/+5 | |
2021-07-23 | shader: Implement ICMP | ameerj | 3 | -16/+84 | |
2021-07-23 | shader: Implement IMNMX | ameerj | 8 | -12/+105 | |
2021-07-23 | shader: Implement BFI | ameerj | 3 | -16/+57 | |
2021-07-23 | shader: Implement BFE | ameerj | 3 | -12/+67 | |
2021-07-23 | shader: Implement POPC | ameerj | 8 | -12/+59 | |
2021-07-23 | shader: Implement SHR | ameerj | 8 | -18/+80 | |
2021-07-23 | shader: Implement SEL | ameerj | 4 | -16/+53 | |
2021-07-23 | spirv: Move phi arguments emit to a separate function | ReinUsesLisp | 1 | -27/+27 | |
2021-07-23 | shader: Avoid infinite recursion when tracking global memory | ReinUsesLisp | 1 | -5/+26 | |
2021-07-23 | shader: Fix conditional execution of exit instructions | ReinUsesLisp | 2 | -5/+6 | |
2021-07-23 | spirv: Add support for self-referencing phi nodes | ReinUsesLisp | 1 | -3/+10 | |
2021-07-23 | shader: Fix control flow | ReinUsesLisp | 8 | -20/+39 | |
2021-07-23 | shader: Implement more of XMAD and FFMA32I and fix XMAD.CBCC | ReinUsesLisp | 5 | -28/+76 | |
2021-07-23 | shader: FMUL, select, RRO, and MUFU fixes | ReinUsesLisp | 18 | -119/+507 | |
2021-07-23 | shader: Fix MOV(reg), add SHL variants and emit neg and abs instructions | ReinUsesLisp | 4 | -11/+11 | |
2021-07-23 | spirv: Fixes and Intel specific workarounds | ReinUsesLisp | 11 | -32/+44 | |
2021-07-23 | shader: Rename, implement FADD.SAT and P2R (imm) | ReinUsesLisp | 18 | -127/+213 | |
2021-07-23 | shader: Add denorm flush support | ReinUsesLisp | 20 | -93/+260 | |
2021-07-23 | spirv: Add lower fp16 to fp32 pass | ReinUsesLisp | 32 | -285/+479 | |
2021-07-23 | shader: Primitive Vulkan integration | ReinUsesLisp | 43 | -3036/+1003 | |
2021-07-23 | shader: Remove old shader management | ReinUsesLisp | 80 | -19568/+54 | |
2021-07-23 | shader: Add XMAD multiplication folding optimization | ReinUsesLisp | 1 | -5/+77 | |
2021-07-23 | shader: Simplify ISCADD | ReinUsesLisp | 1 | -6/+1 | |
2021-07-23 | shader: Add utility to resolve identities on a value | ReinUsesLisp | 2 | -0/+8 | |
2021-07-23 | spirv: Implement EmitIdentity | ReinUsesLisp | 2 | -3/+3 | |
2021-07-23 | spirv: Initial bindings support | ReinUsesLisp | 22 | -292/+671 | |
2021-07-23 | shader: Improve object pool | ReinUsesLisp | 3 | -50/+66 | |
2021-07-23 | shader: Fix tracking | ReinUsesLisp | 1 | -50/+72 | |
2021-07-23 | shader: Add support for forward declarations | ReinUsesLisp | 10 | -68/+79 | |
2021-07-23 | shader: Support SSA loops on IR | ReinUsesLisp | 12 | -46/+150 | |
2021-07-23 | shader: Misc fixes | ReinUsesLisp | 10 | -89/+104 | |
2021-07-23 | shader: Initial implementation of an AST | ReinUsesLisp | 32 | -589/+1345 | |
2021-07-23 | spirv: Initial SPIR-V support | ReinUsesLisp | 20 | -3299/+1400 | |
2021-07-23 | shader: Better constant folding | ReinUsesLisp | 2 | -13/+48 | |
2021-07-23 | shader: Properly store phi on Inst | ReinUsesLisp | 6 | -75/+132 | |
2021-07-23 | shader: Add pools and rename files | ReinUsesLisp | 30 | -108/+255 | |
2021-07-23 | shader: Make typed IR | ReinUsesLisp | 19 | -269/+495 | |
2021-07-23 | shader: Remove illegal character in SSA pass | ReinUsesLisp | 1 | -1/+1 | |
2021-07-23 | shader: Constant propagation and global memory to storage buffer | ReinUsesLisp | 17 | -63/+652 | |
2021-07-23 | shader: Initial instruction support | ReinUsesLisp | 28 | -334/+1450 | |
2021-07-23 | shader: SSA and dominance | ReinUsesLisp | 24 | -77/+570 | |
2021-07-23 | shader: Initial recompiler work | ReinUsesLisp | 57 | -0/+7061 | |
2021-07-23 | thread_worker: Fix compile time error | ameerj | 1 | -1/+1 | |
state is unused in the branch where with_state is false | |||||
2021-07-22 | yuzu_cmd: Make use of fullscreen_mode setting | lat9nq | 3 | -15/+34 | |
Reverts 48259de0c1a6a1aca77eec31cb8aca5ca2b680dd to the previous hierarchy and fixes the resolution issue with this fullscreen mode. yuzu-cmd will now read the fullscreen_mode setting and use it appropriately. | |||||
2021-07-21 | yuzu-cmd: Fullscreen Improvements (#6656) | san | 4 | -9/+13 | |
* emu_window_sdl2_vk: Use the generated SDL config On Linux, due to the way we include SDL2 as a submodule, it makes it difficult for us to specify which SDL_config.h we intended to include. Before, CMake would default to the dummy one included with SDL and ignore the generated one. This tells CMake to use the generated one. In addition, we define USING_GENERATED_CONFIG_H to throw an error in case the dummy config is used by accident. Fixes Vulkan not working on Linux yuzu-cmd. * emu_window_sdl2_vk: Specify the window manager if it should be supported The original language "not implemented" is wrong if the implementation exists but is not compiled. This causes a bit of a debugging headache when it goes wrong. Log it if the window manager is known before exiting. * sdl_impl, emu_window: Remove clang ignore Fixed upstream by libsdl-org/SDL@25fc40b0bd44c484051064bc6b945ea9943f88dd * Enable fullscreen support for Vulkan on yuzu-cmd Hooked up the existing SDL2 logic for fullscreen support in the Vulkan window of yuzu-cmd. * Change fullscreen logic to attempt desktop resolution first on yuzu-cmd Changed the order in which we attempt to switch to fullscreen. First try desktop resolution first, if it fails fall back to streched fullscreen using windowed resolution. Co-authored-by: lat9nq <22451773+lat9nq@users.noreply.github.com> Co-authored-by: san <san+gitkraken@smederijmerlijn.nl> | |||||
2021-07-21 | hle: service: kernel_helpers: Remove unnecessary pragma once. | bunnei | 1 | -2/+0 | |
2021-07-21 | hle: kernel: svc: Remove part of ExitProcess. | bunnei | 1 | -5/+0 | |
- ExitProcess is not actually implemented either way, and this needs more work before we implement. | |||||
2021-07-21 | hle: service: nvdrv: Remove unused kernel reference. | bunnei | 1 | -1/+0 | |
2021-07-21 | hle: service: hid: npad: Remove unused kernel reference. | bunnei | 1 | -1/+0 | |
2021-07-21 | hle: kernel: Track and release server sessions, and protect methods with locks. | bunnei | 4 | -13/+82 | |
2021-07-21 | hle: kernel: KProcess: Change process termination assert to a warning. | bunnei | 1 | -1/+1 | |
- Since we do not implement multiprocess right now, this should not be a crashing assert. | |||||
2021-07-21 | hle: kernel: Ensure current running process is closed. | bunnei | 1 | -5/+6 | |
2021-07-21 | hle: kernel: Ensure global handle table is finalized before closing. | bunnei | 1 | -0/+1 | |
2021-07-21 | kernel: svc: ConnectToNamedPort: Close extra reference to port. | bunnei | 1 | -0/+1 | |
2021-07-21 | hle: service: sm: Refactor to better manage ports. | bunnei | 4 | -45/+47 | |
2021-07-21 | hle: kernel: k_process: Close the handle table on shutdown. | bunnei | 1 | -0/+3 | |
2021-07-21 | hle: kernel: k_process: Close main thread reference after it is inserted into handle table. | bunnei | 1 | -0/+3 | |
2021-07-21 | hle: kernel: Ensure global handle table is initialized. | bunnei | 1 | -0/+1 | |
2021-07-21 | hle: service: Add a helper module for managing kernel objects. | bunnei | 10 | -20/+146 | |
2021-07-21 | hle: kernel: Provide methods for tracking dangling kernel objects. | bunnei | 4 | -2/+43 | |
2021-07-20 | gl_buffer_cache: Use glClearNamedBufferSubData:GL_RED instead of GL_RGBA | ReinUsesLisp | 1 | -1/+1 | |
Avoids reading out of bounds from the stack. | |||||
2021-07-20 | buffer_cache: Simplify clear logic | ReinUsesLisp | 1 | -6/+2 | |
Use existing helper functions and avoid looping when only one buffer has to be active. | |||||
2021-07-20 | vk_texture_cache: Use VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL when possible | ReinUsesLisp | 1 | -21/+35 | |
Silences performance warnings generated from validation layers on each frame. | |||||
2021-07-20 | gl_texture_cache: Workaround slow PBO downloads on radeonsi | ReinUsesLisp | 1 | -1/+1 | |
There's an optimization bug on non-git mesa versions where not specifying GL_CLIENT_STORAGE_BIT causes very slow reads on the CPU side. Add this bit for all vendors. | |||||
2021-07-20 | uuid: Directly compare UUID instead of checking per element | Chloe Marcec | 1 | -3/+2 | |
We can now update this for C++20 | |||||
2021-07-20 | vk_buffer_cache: Fix quad index array with 0 vertices (#6627) | Fernando S | 1 | -0/+7 | |
2021-07-20 | input/sdl_impl: fix rumble support on DualSense. (#6683) | Nicolas Jallamion | 1 | -2/+2 | |
- value return can be different 0, is not error is normal, error is only -1. | |||||
2021-07-20 | applet_controller: Add preliminary support for version 8 | Morph | 2 | -3/+33 | |
Version 8 adds support for key remapping introduced in FW 11.0, we will not be implementing this for now. | |||||
2021-07-20 | bootmanager: Create a dummy render widget | Morph | 1 | -0/+6 | |
This ensures that Qt positions the render window at the correct position on initializing the respective render backends. | |||||
2021-07-20 | file_sys: Support load game collection (#6582) | Feng Chen | 17 | -108/+171 | |
Adds support for loading games with multiple programs embedded within such as the Dragon Quest 1+2+3 Collection | |||||
2021-07-19 | Update src/video_core/renderer_vulkan/vk_texture_cache.cpp | yzct12345 | 1 | -1/+1 | |
Co-authored-by: Vitor K <vitor-kiguchi@hotmail.com> | |||||
2021-07-19 | Update src/video_core/renderer_vulkan/vk_texture_cache.cpp | yzct12345 | 1 | -1/+1 | |
Co-authored-by: Vitor K <vitor-kiguchi@hotmail.com> | |||||
2021-07-18 | Ignore wrong blit format | yzct12345 | 1 | -1/+4 | |
2021-07-18 | vk_texture_cache: Finalize renderpass when downloading images | ReinUsesLisp | 1 | -0/+1 | |
2021-07-18 | vk_compute_pass: Fix pipeline barriers on non-initialized ASTC images | ReinUsesLisp | 1 | -2/+3 | |
2021-07-18 | vk_compute_pass: Fix ASTC buffer setup synchronization | ReinUsesLisp | 1 | -14/+14 | |
2021-07-18 | texture_cache/util: Fix size calculations of multisampled images | ReinUsesLisp | 1 | -53/+33 | |
On the texture cache we handle multisampled images by keeping their real size in samples (e.g. 1920x1080 with 4 samples is 3840x2160). This works nicely with size matches and other comparisons, but the calculation for guest sizes was not having this in mind, and the size was being multiplied (again) by the number of samples per dimension. For example a 3840x2160 texture cache image had its width and height multiplied by 2, resulting in a much larger texture. Fix this issue. - Fixes performance regression on cooking related titles when an unrelated bug was fixed. | |||||
2021-07-18 | texture_cache: Always prepare image views on render targets | ReinUsesLisp | 1 | -0/+6 | |
Images used as render targets were not being "prepared", causing desynchronizations on the texture cache. Needs #6669 to avoid performance regressions on certain cooking titles. - Fixes black shadows on Age of Calamity. | |||||
2021-07-17 | configure/ui: Add sliders for trigger buttons | german77 | 2 | -0/+78 | |
2021-07-17 | input_common: Fix mouse panning behaivour | german77 | 3 | -5/+8 | |
2021-07-16 | sdl_impl, emu_window: Remove clang ignore | lat9nq | 4 | -33/+0 | |
Fixed upstream by libsdl-org/SDL@25fc40b0bd44c484051064bc6b945ea9943f88dd | |||||
2021-07-16 | emu_window_sdl2_vk: Specify the window manager if it should be supported | lat9nq | 1 | -0/+15 | |
The original language "not implemented" is wrong if the implementation exists but is not compiled. This causes a bit of a debugging headache when it goes wrong. Log it if the window manager is known before exiting. | |||||
2021-07-16 | emu_window_sdl2_vk: Use the generated SDL config | lat9nq | 2 | -0/+11 | |
On Linux, due to the way we include SDL2 as a submodule, it makes it difficult for us to specify which SDL_config.h we intended to include. Before, CMake would default to the dummy one included with SDL and ignore the generated one. This tells CMake to use the generated one. In addition, we define USING_GENERATED_CONFIG_H to throw an error in case the dummy config is used by accident. Fixes Vulkan not working on Linux yuzu-cmd. | |||||
2021-07-16 | configure_audio: Fix volume clamping to 0 | Morph | 1 | -6/+6 | |
2021-07-16 | yuzu_cmd: Add missing or update current settings | lat9nq | 2 | -4/+112 | |
Many settings in common/settings.h are missing from yuzu-cmd, either they were added to default_ini.h but not read in, or vice versa, or the setting was altogether omitted from yuzu-cmd. Some defaults were reported wrong, so those were fixed where noticed. | |||||
2021-07-16 | input_common: Make button threshold customizable | german77 | 2 | -3/+13 | |
2021-07-16 | default_ini: Remove deprecated settings | lat9nq | 1 | -61/+1 | |
These settings are not being read in config.cpp AND they do not exist in common/settings.h. Remove their references. | |||||
2021-07-15 | input_common: Support SDL toggle buttons | german77 | 2 | -5/+53 | |
2021-07-15 | vic: Fix dimension compuation of YUV frames | ameerj | 1 | -11/+10 | |
Fixes out of bound memory crashes in Mario Golf | |||||
2021-07-15 | applets/web: Resolve Nintendo CDN URLs | Morph | 1 | -0/+13 | |
This fixes the hint videos in New Super Mario Bros. U Deluxe | |||||
2021-07-15 | nvhost_nvdec_common: Read Submit ioctl data from object addr | ameerj | 1 | -8/+2 | |
Fixes Mario Golf intro video decoding. | |||||
2021-07-15 | nvhost_nvdec_common: Fix {Slice/Write}Vectors return | ameerj | 1 | -37/+38 | |
Plus some minor cleanup for consistency. | |||||
2021-07-15 | Buffer cache: Fixes, Clang and Feedback. | Fernando Sahmkow | 3 | -11/+10 | |
2021-07-14 | GPUMemoryManager: Force inmediate invalidation when writting block. | Fernando Sahmkow | 1 | -1/+1 | |
2021-07-14 | Buffer Cache: Fixes to DMA Copy. | Fernando Sahmkow | 1 | -6/+7 | |
2021-07-14 | DMAEngine: Revert flushing from Pitch to BlpockLinear. | Fernando Sahmkow | 1 | -2/+7 | |
2021-07-14 | BufferCache: fix clearing on forced download. | Fernando Sahmkow | 1 | -10/+20 | |
2021-07-14 | service: Append service name prefix to common filenames | Morph | 41 | -56/+56 | |
2021-07-14 | applets: Append applet_ prefix to backend applets | Morph | 19 | -33/+33 | |
2021-07-14 | applets: Append qt_ prefix to Qt frontend applets | Morph | 15 | -25/+26 | |
2021-07-13 | vk_rasterizer: Only clear valid color attachments | ameerj | 1 | -2/+4 | |
2021-07-13 | DMAEngine: Accelerate BufferClear | Fernando Sahmkow | 11 | -6/+115 | |
2021-07-12 | accelerateDMA: Fixes and feedback. | Fernando Sahmkow | 3 | -88/+62 | |
2021-07-12 | content_archive: Remove unnecessary include to <ranges> | ReinUsesLisp | 1 | -1/+0 | |
Fixes build issues on clang. | |||||
2021-07-12 | web_service: Silence -Wmaybe-uninitialized on httplib.h | ReinUsesLisp | 1 | -0/+10 | |
2021-07-12 | boxcat: Silence -Wmaybe-uninitialized in httplib.h | ReinUsesLisp | 1 | -0/+3 | |
2021-07-11 | npad: Disable vibration check if disabled | german77 | 1 | -0/+5 | |
2021-07-11 | input_common: Fix build with sdl disabled | german77 | 1 | -2/+2 | |
2021-07-11 | accelerateDMA: Accelerate Buffer Copies. | Fernando Sahmkow | 9 | -13/+176 | |
2021-07-10 | Buffer Cache: Address Feedback. | Fernando Sahmkow | 3 | -5/+10 | |
2021-07-10 | settings: Disable FPS unlimit setting between title launches | ameerj | 6 | -29/+10 | |
Some titles crash if the FPS limit is disabled when launching. This change ensures that titles launch with the limit in-place to avoid issues. In order to simplify the change, the UI toggle was removed as it will always be overridden at launch to be disabled. The setting can still be toggled during gameplay with the hotkey, and indicated by the fps label in the status bar. | |||||
2021-07-09 | Buffer Cache: Fix GCC copmpile error | Fernando Sahmkow | 1 | -1/+0 | |
2021-07-09 | Fence Manager: remove reference fencing. | Fernando Sahmkow | 3 | -31/+6 | |
2021-07-09 | BufferCache: Additional download fixes. | Fernando Sahmkow | 2 | -23/+107 | |
2021-07-09 | Buffer Cache: Revert unnecessary range reduction. | Fernando Sahmkow | 1 | -29/+13 | |
2021-07-09 | Fence Manager: Force ordering on WFI. | Fernando Sahmkow | 4 | -38/+71 | |
2021-07-09 | Buffer Cache: Eliminate the AC Hack as the base game is fixed in Hades. | Fernando Sahmkow | 1 | -14/+4 | |
2021-07-09 | Fence Manager: Add fences on Reference Count. | Fernando Sahmkow | 8 | -6/+57 | |
2021-07-09 | Videocore: Address Feedback & CLANG Format. | Fernando Sahmkow | 2 | -78/+75 | |
2021-07-09 | Buffer Cache: Fix High Downloads and don't predownload on Extreme. | Fernando Sahmkow | 4 | -92/+123 | |
2021-07-09 | yuzu qt: config: Only save renderer_debug as a global setting | lat9nq | 1 | -2/+8 | |
This is a bug fix. Enabling graphics debug mode, then saving a custom configuration causes graphics debugging to be saved and read from the custom configuration. Isolate it the same way we isolate the CPU settings. | |||||
2021-07-09 | Update src/yuzu/main.cpp | Fernando S | 1 | -2/+2 | |
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com> | |||||
2021-07-09 | vk_buffer_cache: Use emulated null buffers for transform feedback | ReinUsesLisp | 2 | -11/+19 | |
Vulkan does not support null buffers on transform feedback bindings. Emulate these using the same null buffer we were using for index buffers. | |||||
2021-07-09 | configure_input: Use u8 for mouse sensitivity | ameerj | 3 | -11/+8 | |
2021-07-09 | config: Remove float {Read,Write}Setting variants | ameerj | 2 | -29/+2 | |
2021-07-09 | configure_graphics: Use u8 for bg_color values | ameerj | 5 | -19/+20 | |
2021-07-09 | configure_audio: Use u8 for volume value | ameerj | 4 | -10/+9 | |
2021-07-09 | Settings: Eliminate ASYNC & MULTICORE Toggles and add GPU Accuracy Toggle. | Fernando Sahmkow | 2 | -39/+45 | |
2021-07-09 | common/thread_worker: Stop workers on stop_token when waiting | ReinUsesLisp | 1 | -18/+20 | |
2021-07-09 | common/thread_worker: Add support for stateful threads | ReinUsesLisp | 3 | -78/+86 | |
2021-07-09 | common/thread_worker: Simplify logic | FernandoS27 | 1 | -8/+1 | |
2021-07-09 | common/thread_worker: Fix data race | FernandoS27 | 2 | -1/+18 | |
2021-07-09 | common/thread_worker: Use unique function | ReinUsesLisp | 2 | -28/+24 | |
2021-07-09 | common: Add unique function | ReinUsesLisp | 4 | -0/+172 | |
2021-07-09 | common/thread_worker: Add wait for requests method | ReinUsesLisp | 2 | -0/+11 | |
2021-07-08 | settings, arm_dynarmic, yuzu qt: Move CPU debugging option | lat9nq | 18 | -132/+244 | |
Decouples the CPU debugging mode from the enumeration to its own boolean. After this, it moves the CPU Debugging tab over to a sub tab underneath the Debug tab in the configuration UI. | |||||
2021-07-08 | arm_dynarmic_64: Re-add fastmem_address_space_bits to Auto setting | lat9nq | 1 | -0/+1 | |
2021-07-08 | qt/main: Make title string more i18n-friendly | Lioncash | 1 | -2/+4 | |
Currently, whether or not the title is 32-bit or 64-bit was being appended as a suffix to the title, which is fine for left-to-right languages, but may not always fly so smoothly with some right-to-left languages. We also weren't marking that portion of the string as translatable, which prevents translators from translating part of the title string. | |||||
2021-07-08 | settings, yuzu qt: Add migration code for CPU accuracy | lat9nq | 2 | -1/+10 | |
Old CPU Accuracy setting won't translate well into since we're adding one at the beginning of the list. On first boot with the new setting, just use the default setting. | |||||
2021-07-08 | arm_dynarmic{32,64}: Fixes from test build | lat9nq | 2 | -18/+5 | |
Now sets optimizations regardless of the Settings. Drops unsafe fastmem optimization. | |||||
2021-07-08 | core,common,yuzu qt: Add CPU accuracy option 'Auto' | lat9nq | 4 | -16/+50 | |
The current CPU accuracy settings in yuzu are fairly polarized and require more than common knowledge to know what the optimal settings for yuzu would be. This adds a curated option called 'Auto' that applies a few at the moment known-good unsafe optimizations to Dynarmic. | |||||
2021-07-08 | general: Code formatting improvements | lat9nq | 4 | -22/+25 | |
Slight improvements to readability. Dropped suggestions for string_view (settings.h:101), pass by value (settings.h:82), reverting double to a float (config.cpp:316), and other smaller ones, some out of scope. Addresses review feedback. Co-authored-by: Ameer J <52414509+ameerj@users.noreply.github.com> | |||||
2021-07-08 | Out of bound blit (#6531) | Feng Chen | 2 | -58/+35 | |
* Fix out of bound blit error * Fix code read * Fix ci error Co-authored-by: Feng Chen <chen.feng@gloritysolutions.com> | |||||
2021-07-08 | Replace NaN mix volume samples with silence. | Kelebek1 | 1 | -0/+9 | |
Fixes Xenoblade Chronicles 2 blowing out the audio. | |||||
2021-07-08 | audio_core: Preserve front channel volume after 6 to 2 downmix | Kelebek1 | 5 | -75/+81 | |
Many games report 6 channel output while only providing data for 2. We only output 2-channel audio regardless, and in the downmixing, front left/right only provide 36% of their volume. This is done assuming all of the other channels also contain valid data, but in many games they don't. This PR alters the downmixing to preserve front left/right, so volume is not lost. This improves volume in Link's Awakening, New Super Mario Bros U, Disgaea 6, Super Kirby Clash. | |||||
2021-07-07 | util_shaders: Fix BindImageTexture | lat9nq | 1 | -2/+2 | |
According to https://gitlab.freedesktop.org/mesa/mesa/-/issues/3820#note_753371 we need to set these to true for use with 3D textures. Fixes BOTW teleporting on RadeonSI and iris. | |||||
2021-07-06 | Report 2 channels active. Fixes Tales of Vesperia's mono channel audio. | Kelebek1 | 1 | -1/+1 | |
2021-07-06 | Support more PCM formats. Fixes Ys IX audio. | Kelebek1 | 2 | -18/+51 | |
2021-07-06 | CMakeLists: Treat -Wsign-compare as an error on GCC/Clang | Morph | 4 | -8/+1 | |
Treats (un)signed comparison mismatches as errors to be consistent with MSVC | |||||
2021-07-06 | common: logging: backend: Close the file after exceeding the write limit | Morph | 1 | -8/+11 | |
There's no point in keeping the file open after the write limit is exceeded. This allows the file to be committed to the disk shortly after it is closed and avoids redundantly checking whether or not the write limit is exceeded. | |||||
2021-07-06 | common: fs: file: Revert Flush to its previous behavior and add Commit | Morph | 2 | -3/+34 | |
It became apparent that logging can continuously spam errors that trigger file flushing. Since committing the files to disk is an expensive operation, this causes unnecessarily high disk usage. As such, we will revert Flush() to the previous behavior and add a Commit() member function in the event that this behavior is needed. | |||||
2021-07-06 | common: fs: file: Flush the file in GetSize | Morph | 1 | -0/+3 | |
This ensures that GetSize always retrieves the correct file size after a write operation. | |||||
2021-07-05 | input_common: Add missing modifier callback to analog from button | german77 | 1 | -0/+1 | |
2021-07-05 | profiler: Fix deprecated functions | german77 | 1 | -4/+5 | |
2021-07-04 | Texture Cache: Fix collision with multiple overlaps of the same sparse texture. | Fernando Sahmkow | 1 | -1/+6 | |
2021-07-04 | Texture Cache: Fix GCC & Clang. | Fernando Sahmkow | 2 | -11/+11 | |
2021-07-04 | Texture Cache: Address feedback. | Fernando Sahmkow | 5 | -18/+37 | |
2021-07-04 | Texture Cache: Improve accuracy of sparse texture detection. | Fernando Sahmkow | 6 | -131/+342 | |
2021-07-04 | Texture Cache: Initial Implementation of Sparse Textures. | Fernando Sahmkow | 12 | -23/+310 | |
2021-07-04 | service: mii: Retrieve the correct default miis. | Morph | 1 | -2/+3 | |
We were including the first 2 default miis which are not meant to be shown in games. With this change, we properly retrieve the 6 default miis shown in games, with 3 of each gender. | |||||
2021-07-03 | TextureCacheOGL: Implement Image Copies for 1D and 1D Array. | Fernando Sahmkow | 1 | -0/+26 | |
2021-07-03 | TextureCache: Fix 1D to 2D overlapps. | Fernando Sahmkow | 1 | -3/+0 | |
2021-07-03 | CMakeLists: Enforce C4189 | Morph | 1 | -0/+1 | |
This supplements C4101 by detecting initialized but unreferenced local variables | |||||
2021-07-02 | config: Read UISettings as basic settings | lat9nq | 1 | -30/+19 | |
I must have been asleep or something. These need to be read with the new ReadBasicSetting function. | |||||
2021-07-01 | settings: Set resolution_factor default to 1 | lat9nq | 1 | -1/+1 | |
Fixes Disgaea 6 Demo issues. | |||||
2021-07-01 | Slightly refactor NVDEC and codecs for readability and safety | Kelebek1 | 10 | -356/+522 | |
2021-07-01 | Fix XC2/VOEZ crashing, add audio looping and a few misc fixes | Kelebek1 | 7 | -132/+188 | |
2021-07-01 | yuzu_cmd: config: Pass a reference in | lat9nq | 2 | -5/+11 | |
Also adds documentation for the ReadSetting function. Address review comments. Co-authored-by: Mai M. <mathew1800@gmail.com> | |||||
2021-06-29 | core, input_common: Miscellaneous fixes | lat9nq | 3 | -5/+8 | |
bcat: Fix settings access telemetry_session: Fix settings accesses So this is what I get for testing with the web service disabled. touch_from_button: Fix settings access for clang | |||||
2021-06-29 | yuzu qt: Make most UISettings a BasicSetting | lat9nq | 12 | -91/+107 | |
For simple primitive settings, moves their defaults and labels to definition time. Also fixes typo and clang-format yuzu qt: config: Fix rng_seed | |||||
2021-06-28 | general: Make most settings a BasicSetting | lat9nq | 32 | -660/+807 | |
Creates a new BasicSettings class in common/settings, and forces setting a default and label for each setting that uses it in common/settings. Moves defaults and labels from both frontends into common settings. Creates a helper function in each frontend to facillitate reading the settings now with the new default and label properties. Settings::Setting is also now a subclass of Settings::BasicSetting. Also adds documentation for both Setting and BasicSetting. | |||||
2021-06-28 | CMakeLists: Disable all warnings for external headers | Morph | 1 | -0/+5 | |
This lets us avoid needing to wrap external headers with #pragma warning directives for warnings we treat as errors and avoids generating warnings for external code. Thanks to MerryMage for pointing this out. | |||||
2021-06-28 | video_core: Remove #pragma warning directives for external headers | Morph | 2 | -15/+0 | |
2021-06-28 | input_common: Remove #pragma warning directives for external headers | Morph | 2 | -14/+0 | |
2021-06-28 | CMakeLists: Enforce C4018, C4267, C4305, C4389 | Morph | 1 | -3/+7 | |
2021-06-28 | core: Enforce C4242 | Morph | 1 | -6/+3 | |
2021-06-28 | input_common: Enforce C4242 | Morph | 1 | -12/+4 | |
2021-06-28 | video_core: Enforce C4242 | Morph | 1 | -3/+2 | |
2021-06-28 | patch_manager: Do not apply LayeredFS mods when dumping | Morph | 3 | -4/+8 | |
We should not apply any mods when dumping a game's RomFS. | |||||
2021-06-28 | filesystem: Open a read-only directory for SDMC mods | Morph | 3 | -19/+25 | |
This prevents mod files from being locked due to the read-only share flag in Windows. | |||||
2021-06-28 | core: Simplify SDMC mod loading | lat9nq | 3 | -21/+10 | |
If someone else wants to support other mod formats in the SDMC directory, that can be added later. For now, just allow RomFS modding here and force people to do other types of mods the old way. Addresses review comments. Co-authored-by: LC <mathew1800@gmail.com> | |||||
2021-06-28 | core: Support LayeredFS mod from SDMC directory | lat9nq | 5 | -2/+47 | |
Enables loading a mod directly from `[yuzu data directory]/sdmc/atmosphere/contents/[title_id]`. For use with some homebrew mod managers. | |||||
2021-06-28 | yuzu qt: Add option to dump to SDMC directory | lat9nq | 4 | -7/+23 | |
Enables dumping the RomFS to SDMC directory, specifically '[yuzu data directory]/sdmc/atmosphere/contents/[title_id]/romfs'. | |||||
2021-06-28 | video_core: Silence signed/unsigned mismatch warnings | Morph | 4 | -5/+6 | |
2021-06-28 | main: Display the instruction set of the running title in the window name | ameerj | 1 | -0/+3 | |
Displays whether the currently running title uses 64-bit instructions or only 32-bit instructions. | |||||
2021-06-27 | Decouple audio processing and run at variable rate | Kelebek1 | 3 | -79/+115 | |
Currently, processing of audio samples is called from AudioRenderer's Update method, using a fixed 4 buffers to process the given samples. Games call Update at variable rates, depending on framerate and/or sample count, which causes inconsistency in audio processing. From what I've seen, 60 FPS games update every ~0.004s, but 30 FPS/160 sample games update somewhere between 0.02 and 0.04, 5-10x slower. Not enough samples get fed to the backend, leading to a lot of audio skipping. This PR seeks to address this by de-coupling the audio consumption and the audio update. Update remains the same without calling for buffer queuing, and the consume now schedules itself to run based on the sample rate and count. | |||||
2021-06-26 | hle: service: hwopus: OpenHardwareOpusDecoderEx: Remove unused buffer size. | bunnei | 1 | -1/+30 | |
2021-06-26 | configuration: Defer to common/settings for per-game settings defaults | lat9nq | 2 | -127/+100 | |
Avoids double-setting defaults, and avoids potential accidents when inconsistently setting the default on new settings. | |||||
2021-06-26 | common: Force defaults for Settings::Setting's | lat9nq | 1 | -44/+57 | |
Requires a default value when creating each per-game setting. | |||||
2021-06-26 | buffer_cache: Only flush downloaded size | ReinUsesLisp | 1 | -2/+3 | |
Fixes a regression unintentionally introduced by the garbage collector. This makes regular memory downloads only flush the requested sizes. This negatively affected Koei Tecmo games. | |||||
2021-06-26 | video_core: Enforce C4244 | ReinUsesLisp | 1 | -0/+1 | |
Enforce implicit integer casts to a smaller type as errors. | |||||
2021-06-26 | codec,vic: Disable warnings in ffmpeg headers | ReinUsesLisp | 2 | -4/+29 | |
2021-06-26 | vk_buffer_cache: Silence implicit cast warnings | ReinUsesLisp | 1 | -2/+3 | |
2021-06-26 | buffer_cache/texture_cache: Make GC functions private | ReinUsesLisp | 2 | -5/+5 | |
2021-06-26 | buffer_cache: Silence implicit cast warning | ReinUsesLisp | 1 | -1/+1 | |
2021-06-25 | vulkan_device: Make device memory match the rest of the file | ReinUsesLisp | 2 | -19/+18 | |
Match the style in the file. | |||||
2021-06-25 | hle: hle_helpers: Skip data payload offset checks on TIPC requests. | bunnei | 1 | -2/+6 | |
- TIPC does not use this. | |||||
2021-06-25 | hle: service: hwopus: Implement GetWorkBufferSizeEx and OpenHardwareOpusDecoderEx. | bunnei | 2 | -5/+15 | |
- This is used by the latest update of Doom Eternal. | |||||
2021-06-25 | hle: service: aoc: Stub GetAddOnContentListChangedEventWithProcessId. | bunnei | 2 | -1/+10 | |
- This is used by the latest update of Doom Eternal. | |||||
2021-06-25 | audio_core: common: Bump audio revision to 9. | bunnei | 1 | -1/+1 | |
- This is used in fw 12.x.x games. | |||||
2021-06-24 | common: Replace common_sizes into user-literals | Wunkolo | 19 | -126/+152 | |
Removes common_sizes.h in favor of having `_KiB`, `_MiB`, `_GiB`, etc user-literals within literals.h. To keep the global namespace clean, users will have to use: ``` using namespace Common::Literals; ``` to access these literals. | |||||
2021-06-24 | general: Add missing #pragma once directives | Morph | 4 | -0/+8 | |
2021-06-24 | Add missing includes (#6521) | Chloe | 4 | -0/+7 | |
* Add missing includes * Add array | |||||
2021-06-23 | General: Resolve fmt specifiers to adhere to 8.0.0 API where applicable | Lioncash | 9 | -15/+23 | |
Also removes some deprecated API usages. | |||||
2021-06-23 | maxwell3d: Add missing return in default SizeInBytes() case | Lioncash | 1 | -0/+1 | |
We were returning '1' in ComponentCount()'s default case but were neglecting to do the same with SizeInBytes(). | |||||
2021-06-23 | Simple resizing of the Per-Game configuration window and removal of useless Help question mark button in the title bar | OZtistic | 2 | -1/+8 | |
2021-06-22 | Reaper: Set minimum cleaning limit on OGL. | Fernando Sahmkow | 1 | -1/+4 | |
2021-06-22 | common: fs: Add a description of a regular file in IsFile | Morph | 1 | -4/+6 | |
This provides a more concrete example of what a regular file is and isn't. | |||||
2021-06-22 | vfs_real: Fix Mode to FileAccessMode conversion | Morph | 1 | -6/+1 | |
These enforce requiring the file to exist prior to opening. | |||||
2021-06-22 | common: fs: Amend IsFile check in FileOpen / (Write/Append)StringToFile | Morph | 4 | -9/+12 | |
This check was preventing files with the Write or Append file access modes from being created, as per the documented behavior in FileAccessMode. This amends the check to test for the existence of a filesystem object prior to checking whether it is a regular file. Thanks to liushuyu for pointing out that removing the check altogether would not guard against attempting to open non-regular files such as directories, symlinks, FIFO (pipes), sockets, block devices, or character devices. The documentation has also been updated for these functions to clarify that a file refers to a regular file. | |||||
2021-06-22 | common: fs: file: Remove [[nodiscard]] attribute from Flush | Morph | 2 | -3/+3 | |
Similarly, Flush() is typically called to attempt to flush a file into the disk. In the one case where this is used, we do not care whether the flush has succeeded or not, making [[nodiscard]] unnecessary. | |||||
2021-06-22 | common: fs: Remove [[nodiscard]] attribute on Remove* functions | Morph | 6 | -26/+26 | |
There are a lot of scenarios where we don't particularly care whether or not the removal operation and just simply attempt a removal. As such, removing the [[nodiscard]] attribute is best for these functions. | |||||
2021-06-22 | core: Make is_powered_on atomic | Rodrigo Locatti | 1 | -2/+3 | |
Fixes potential data races when shutting down. | |||||
2021-06-22 | common/detached_tasks: Wait for tasks before shutting down | Rodrigo Locatti | 1 | -0/+2 | |
If this is not waited on, the synchronization primitives are destroyed whe main exits and the detached task ends up signalling garbage and not properly finishing. | |||||
2021-06-22 | npad: Fix data race when updating devices | Rodrigo Locatti | 2 | -0/+8 | |
Add a lock to avoid data races. This reduces the number of -fsanitize=thread errors significantly. | |||||
2021-06-22 | input_common/mouse_input: Fix data race | Rodrigo Locatti | 2 | -12/+10 | |
Fix data race using std::jthread and std::stop_token. | |||||
2021-06-22 | Implement audout GetAudioOutPlayedSampleCount | Kelebek1 | 3 | -3/+20 | |
Used in Ninja Gaiden games. | |||||
2021-06-22 | bootmanager: Use std::stop_source for stopping emulation | ReinUsesLisp | 8 | -18/+18 | |
Use its std::stop_token to abort shader cache loading. Using std::stop_token instead of std::atomic_bool allows the usage of other utilities like std::stop_callback. | |||||
2021-06-22 | vk_master_semaphore: Use jthread for debug thread | ReinUsesLisp | 2 | -19/+8 | |
2021-06-21 | gl_device: Expand on Mesa driver names | lat9nq | 1 | -3/+28 | |
Makes this list a bit more capable at identifying Mesa drivers. Tries to deal with two of the overloaded vendor strings in a more generic fashion. | |||||
2021-06-21 | video_core: Add GPU vendor name to window title bar | ameerj | 9 | -10/+75 | |
2021-06-20 | Update dynarmic and add new unsafe CPU option. | Fernando Sahmkow | 7 | -0/+31 | |
2021-06-20 | Reaper: Guarantee correct deletion. | Fernando Sahmkow | 5 | -2/+23 | |
2021-06-20 | Reaper: Upgrade label from unsafe to experimental as no regressions are known now. | Fernando Sahmkow | 1 | -1/+1 | |
2021-06-19 | util_shaders: Specify ASTC decoder memory barrier bits | ameerj | 1 | -1/+6 | |
2021-06-19 | astc_decoder.comp: Remove unnecessary LUT SSBOs | ameerj | 5 | -113/+34 | |
We can move them to instead be compile time constants within the shader. | |||||
2021-06-19 | astc: Various robustness enhancements for the gpu decoder | ameerj | 5 | -47/+16 | |
These changes should help in reducing crashes/drivers panics that may occur due to synchronization issues between the shader completion and later access of the decoded texture. | |||||
2021-06-19 | host_memory: Correct MEM_RESERVE_PLACEHOLDER | lat9nq | 1 | -1/+1 | |
Microsoft defines `MEM_RESERVE_PLACEHOLDER` as `0x00040000`, but our manually imported version of it drops the last zero. | |||||
2021-06-18 | externals: httplib: replace custom httplib header with upstream as submodule. | Vortex | 1 | -1/+2 | |
This also includes a minor change to web_service.cpp - to fix compatibility with upstream changes. | |||||
2021-06-18 | service: time: Use GetFileRelative to get files within subdirectories | Morph | 1 | -1/+1 | |
The timezone info file can be within subdirectories (such as Asia/Tokyo), use GetFileRelative instead of GetFile to get files within subdirectories. | |||||
2021-06-18 | kernel: Fix missing peak set in KResourceLimit::SetLimitValue | Morph | 1 | -0/+1 | |
2021-06-18 | vulkan_debug_callback: Skip logging known false-positive validation errors | ameerj | 1 | -0/+8 | |
Avoids overwhelming the log with validation errors that are not applicable | |||||
2021-06-17 | Reaper: Correct size calculation on Vulkan. | Fernando Sahmkow | 1 | -5/+3 | |
2021-06-17 | config: Add frame limiter toggle hotkey | ameerj | 3 | -3/+8 | |
2021-06-17 | nvflinger: Add toggle to disable buffer swap interval limits | ameerj | 8 | -0/+38 | |
Enabling this setting will allow some titles to present more frames to the screen as they become available in the nvflinger buffer queue. | |||||
2021-06-17 | Reaper: Change memory restrictions on TC depending on host memory on VK. | Fernando Sahmkow | 10 | -41/+90 | |
2021-06-16 | Reaper: Address Feedback. | Fernando Sahmkow | 6 | -20/+43 | |
2021-06-16 | Reaper: Setup settings and final tuning. | Fernando Sahmkow | 10 | -32/+64 | |
2021-06-16 | Reaper: Tune it up to be an smart GC. | Fernando Sahmkow | 5 | -13/+130 | |
2021-06-16 | Initial Reaper Setup | ReinUsesLisp | 6 | -56/+226 | |
WIP | |||||
2021-06-16 | vulkan_memory_allocator: Release allocations with no commits | ReinUsesLisp | 2 | -5/+22 | |
2021-06-16 | spl: Mark the other functions as unimplemented | Morph | 1 | -5/+30 | |
2021-06-16 | spl: Implement spl::GetConfig | Morph | 2 | -1/+90 | |
2021-06-16 | hle: api_version: Add HLE API version constants | Morph | 3 | -33/+54 | |
2021-06-16 | spl: Add the general SPL interface | Morph | 4 | -45/+64 | |
2021-06-16 | spl: Add SPL types | Morph | 2 | -0/+231 | |
2021-06-16 | spl: Add SPL result codes | Morph | 2 | -0/+30 | |
2021-06-16 | common: fs: file: Remove redundant call to WriteStringToFile | Morph | 2 | -6/+1 | |
The Append open mode will create a new file if said file does not exist at a given path, making this call redundant. | |||||
2021-06-16 | fsp_srv: Fix filesystem access logging | Morph | 10 | -38/+63 | |
This introduces a new setting Enable FS Access Log which saves the filesystem access log to sdmc:/FsAccessLog.txt If this setting is not enabled, this will indicate to FS to not call OutputAccessLogToSdCard. Fixes softlocks during loading in Xenoblade Chronicles 2 when certain DLC is enabled. | |||||
2021-06-16 | astc_decoder: Fix LDR CEM1 endpoint calculation | ameerj | 2 | -2/+2 | |
Per the spec, L1 is clamped to the value 0xff if it is greater than 0xff. An oversight caused us to take the maximum of L1 and 0xff, rather than the minimum. Huge thanks to wwylele for finding this. Co-Authored-By: Weiyi Wang <wwylele@gmail.com> | |||||
2021-06-16 | yuzu_cmd/config: Add Accelerate ASTC and missing NVDEC emulation settings | ameerj | 2 | -2/+12 | |
2021-06-16 | configure_graphics: Add Accelerate ASTC decoding setting | ameerj | 9 | -2/+32 | |
2021-06-16 | textures: Reintroduce CPU ASTC decoder | ameerj | 4 | -2/+1592 | |
Users may want to fall back to the CPU ASTC texture decoder due to hangs and crashes that may be caused by keeping the GPU under compute heavy loads for extended periods of time. This is especially the case in games such as Astral Chain which make extensive use of ASTC textures. | |||||
2021-06-15 | lm: Demote guest logs to LOG_DEBUG | ameerj | 1 | -27/+20 | |
Guest logs are not very useful, as they are intended for use by the game developers during development. As such, they provide little meaning to be logged by yuzu and tend to overwhelm the log output at times. | |||||
2021-06-15 | texture_cache/util: Avoid relaxed image views on different bytes per pixel | ReinUsesLisp | 1 | -1/+9 | |
Avoids API usage errors on UE4 titles leading to crashes. | |||||
2021-06-13 | general: Remove extraneous includes | Morph | 3 | -3/+0 | |
2021-06-13 | common: logging: Restructure backend code | Morph | 8 | -278/+288 | |
2021-06-13 | common: logging: backend: Wrap IOFile in a unique_ptr | Morph | 2 | -6/+27 | |
Allows us to forward declare Common::FS::IOFile. | |||||
2021-06-13 | common: fs: file: Flush the file to the disk when Flush() is called | Morph | 1 | -1/+5 | |
std::fflush does not guarantee that file buffers are flushed to the disk. Use _commit on Windows and fsync on all other OSes to ensure that the file is flushed to the disk. | |||||
2021-06-13 | cmake: Fix find_program usage for 3.15 | lat9nq | 1 | -1/+4 | |
yuzu requires CMake 3.15 yet find_program was using REQUIRED, which is only available on 3.18 and later. Instead, we check for "<VAR>-NOTFOUND". In addition, check for additional requirements before building libusb or FFmpeg with autotools. Otherwise, CMake configuration will pass yet compilation will fail. | |||||
2021-06-13 | configure_cpu_debug: Clarify settings behavior | Morph | 1 | -1/+1 | |
This makes it clear that the disabled settings only take effect when CPU Accuracy is set to Debug Mode. | |||||
2021-06-12 | common: fs: Use the normal directory iterator in *Recursively functions | Morph | 1 | -2/+16 | |
MSVC's implementation of recursive_directory_iterator throws an exception on an error despite a std::error_code being passed into its constructor. This is most likely a bug in MSVC's implementation since directory_iterator does not throw an exception on an error. We can replace the usage of recursive_directory_iterator for now until MSVC fixes their implementation of it. | |||||
2021-06-11 | hid: Stub IsFirmwareUpdateAvailableForSixAxisSensor | german77 | 2 | -1/+23 | |
2021-06-11 | yuzu: main: Ensure enough space is available for RomFS dumping | Morph | 1 | -0/+12 | |
This warns the user if there isn't enough free space to dump the entire RomFS to disk. It requires at least the size of the extracted RomFS + 1 GiB as a buffer of free space. | |||||
2021-06-11 | common/host_memory: Implement a fallback if fastmem fails. | Markus Wick | 2 | -14/+49 | |
This falls back to the old approach of using a virtual buffer. Windows is untested, but this build should fix support for Windows < 10 v1803. However without fastmem support at all. | |||||
2021-06-11 | common/host_shader: Load Windows 10 functions dynamically | ReinUsesLisp | 1 | -29/+88 | |
Workaround old headers and libraries shipped on MinGW. | |||||
2021-06-11 | GPUTHread: Remove async reads from Normal Accuracy. | Fernando Sahmkow | 1 | -18/+6 | |
2021-06-11 | rasterizer: Update pages in batches | ReinUsesLisp | 1 | -15/+41 | |
2021-06-11 | host_memory: Support staged VirtualProtect calls | ReinUsesLisp | 1 | -3/+12 | |
2021-06-11 | General: Add settings for fastmem and disabling adress space check. | FernandoS27 | 12 | -6/+83 | |
2021-06-11 | common/host_memory: Optimize for huge tables. | Markus Wick | 2 | -11/+24 | |
In theory, if we have 2 MB continously mapped, this should save one layer of TLB. Let's make it at least more likely by aligning the memory. | |||||
2021-06-11 | core: Make use of fastmem | Markus Wick | 6 | -8/+30 | |
2021-06-11 | tests: Add tests for host memory | ReinUsesLisp | 2 | -0/+184 | |
2021-06-11 | common/host_memory: Add Linux implementation | Markus Wick | 1 | -10/+120 | |
2021-06-11 | common/host_memory: Add interface and Windows implementation | ReinUsesLisp | 3 | -0/+384 | |
2021-06-11 | kernel: Unconditionally set thread state when appropriate | Morph | 2 | -23/+12 | |
2021-06-11 | kernel: KLightConditionVariable: Update implementation to 12.x | Morph | 2 | -14/+31 | |
Updates the implementation of KLightConditionVariable to FW 12.x | |||||
2021-06-10 | Fix GCC undefined behavior sanitizer. | Markus Wick | 3 | -1/+9 | |
* Wrong alignment in u64 LOG_DEBUG -> memcpy. * Huge shift exponent in stride calculation for linear buffer, unused result -> skipped. * Large shift in buffer cache if word = 0, skip checking for set bits. Non of those were critical, so this should not change any behavior. At least with the assumption, that the last one used masking behavior, which always yield continuous_bits = 0. | |||||
2021-06-10 | hle: service: sm: Remove redundant session reservation, etc. | bunnei | 2 | -18/+13 | |
- We were double-reserving, causing us to run out of sessions in Pokemon Sword & Shield. | |||||
2021-06-10 | hle: service: Increase arbitrary max sessions limit. | bunnei | 1 | -4/+1 | |
- Pokemon Sword/Shield are still hitting this for some reason, causing an svcBreak. | |||||
2021-06-10 | hle: kernel: KClientPort: Add an assert for session count. | bunnei | 1 | -0/+3 | |
- Prevents us from over decrementing num_sessions. | |||||
2021-06-10 | hle: service: sm: Fix GetService setup of session & port. | bunnei | 2 | -5/+5 | |
2021-06-10 | hle: service: Use correct size for ServerSessionCountMax. | bunnei | 1 | -4/+6 | |
2021-06-10 | hle: kernel: KServerSession: Fix client disconnected. | bunnei | 3 | -9/+8 | |
- Prevents a cloned session's handler from being overwritten by another disconnected session. - Fixes session handler nullptr asserts with Pokemon Sword & Shield. | |||||
2021-06-10 | kernel: svc: Add missing error check to CancelSynchronization. | bunnei | 1 | -2/+2 | |
- Avoids a potential crash if the handle is invalid, and also makes this code accurate to real kernel behavior. | |||||
2021-06-09 | hle: service: Increase arbitrary max sessions limit. | bunnei | 1 | -1/+1 | |
- Pokemon Sword/Shield are still hitting this for some reason, causing an svcBreak. | |||||
2021-06-09 | src/common/CMakeLists.txt: fix variable escaping | liushuyu | 1 | -8/+9 | |
2021-06-09 | common/fs/path_util: Remove [[nodiscard]] from function with void return | Lioncash | 1 | -1/+1 | |
We can't make use of the return value here, since we don't a return value to work with. | |||||
2021-06-09 | configure_ui: Add translation context for file-scope strings | Lioncash | 1 | -13/+27 | |
Allows for these strings to show up in the translation files. | |||||
2021-06-08 | hle: kernel: KServerSession: Work-around scenario where session is closed too early. | bunnei | 1 | -7/+24 | |
2021-06-08 | hle: kernel: hle_ipc: Ensure SessionRequestHandler is valid. | bunnei | 3 | -5/+26 | |
2021-06-08 | hle: kernel: Remove service thread manager and use weak_ptr. | bunnei | 3 | -18/+8 | |
- We no longer need to queue up service threads to be destroyed. - Fixes a race condition where a thread could be destroyed too early, which caused a crash in Pokemon Sword/Shield. | |||||
2021-06-08 | yuzu qt: Start games from context menu | lat9nq | 4 | -3/+23 | |
This connects the BootGame function to the context menu. In addition, there is an option to boot without using the custom configuration. | |||||
2021-06-07 | Various suggestions by v1993 and lioncash | Clément Gallet | 2 | -11/+9 | |
2021-06-07 | hle: kernel: KServerSession: Use ASSERT_MSG where appropriate. | bunnei | 1 | -1/+1 | |
2021-06-07 | hle: kernel: k_server_session: Return service thread by strong pointer. | bunnei | 2 | -4/+4 | |
2021-06-07 | hle: kernel: k_server_session: Ensure service thread is valid before dereference. | bunnei | 1 | -1/+3 | |
2021-06-07 | hle: kernel: hle_ipc: Use default destructor for SessionRequestManager. | bunnei | 1 | -1/+1 | |
2021-06-07 | hle: kernel: KAutoObjectWithListContainer: Use boost::instrusive::rbtree. | bunnei | 11 | -22/+26 | |
- Fixes some crashes introduced by our common intrusive red/black tree impl. | |||||
2021-06-06 | Add sdl2 audio description in the yuzu-cmd config file | Clément Gallet | 1 | -1/+2 | |
2021-06-06 | Add SDL2 audio backend | Clément Gallet | 4 | -0/+211 | |
2021-06-06 | limitable_input_dialog: Implement character limiter | Kewlan | 3 | -5/+48 | |
When using GetText() you can now choose what set of characters the user can't enter. | |||||
2021-06-05 | Avoid -Wshadow warning | Clément Gallet | 1 | -1/+1 | |
Co-authored-by: Mai M. <mathew1800@gmail.com> | |||||
2021-06-05 | result: Add [[nodiscard]] specifiers where applicable | Lioncash | 1 | -20/+20 | |
The result code classes are used quite extensively throughout both the kernel and service HLE code. We can mark these member functions as [[nodiscard]] to prevent a few logic bugs from slipping through. | |||||
2021-06-05 | hle: kernel: Refactor to allocate a ServiceThread per service handler. | bunnei | 13 | -67/+75 | |
- Previously, we would allocate a thread per session, which adds new threads on CloneCurrentObject. - This results in race conditions with N sessions queuing requests to the same service interface. - Fixes Pokken Tournament DX crashes/softlocks, which were regressed by #6347. | |||||
2021-06-04 | yuzu-cmd: Fix OpenGL rendering | Clément Gallet | 2 | -12/+6 | |
2021-06-04 | decoders: Break instead of continue | lat9nq | 1 | -2/+2 | |
continue causes a memory leak in A Hat in Time. | |||||
2021-06-04 | decoders: Avoid out-of-bounds access | lat9nq | 1 | -0/+8 | |
This is not a real fix, so assert here and continue before crashing. | |||||
2021-06-04 | [game_list] Correct light theme loading (#6408) | Maide | 1 | -5/+1 | |
Correct light theme loading The setLayout call in game list instantiation will call resizing signals with default values in light theme, which was then being erroneously saved. setLayout doesn't seem to call resizing for any other theme, so I'm not sure why that happens. | |||||
2021-06-04 | yuzu-cmd: Add touch_from_button in config file | Clément Gallet | 2 | -1/+50 | |
2021-06-03 | cmake: General improvements to libusb linking | lat9nq | 1 | -2/+1 | |
Delegates libusb external communication to externals/CMakeLists.txt Ensures an interface library `usb` for every pathway input_common just links to the `usb` library now externals/libusb/CMakeLists.txt sets variables to override SDL2's libusb finding Other minor cleanup | |||||
2021-06-03 | fsp-srv: Replace one last instance of RESULT_SUCCESS | Morph | 1 | -1/+1 | |
2021-06-03 | fspsrv: Implement DisableAutoSaveDataCreation (#6355) | Chloe | 6 | -2/+25 | |
- Used by Mii Edit | |||||
2021-06-03 | yuzu qt: Revert some usages of string_view | lat9nq | 7 | -18/+27 | |
Causes a heap-use-after free reported by AddressSanitizer. This makes use of std::filesystem::path, but due to that we have to use their string() function which may not work for all characters. | |||||
2021-06-02 | game_list: Minor for loop optimizations | Kewlan | 1 | -9/+6 | |
There's no need to check the first and last rows since they'll always be the Favorites and AddDir rows. Also change the name of the clear_all variable for consistency. | |||||
2021-06-02 | Stop the columns resizing on NAND install | Kelebek1 | 2 | -34/+17 | |
2021-06-02 | general: Replace RESULT_UNKNOWN with ResultUnknown | Morph | 13 | -45/+45 | |
Transition to PascalCase for result names. | |||||
2021-06-02 | general: Replace RESULT_SUCCESS with ResultSuccess | Morph | 113 | -933/+930 | |
Transition to PascalCase for result names. | |||||
2021-06-02 | common: fs: fs_util: Move PathToUTF8String to fs_util | Morph | 4 | -15/+14 | |
2021-06-02 | common: fs: fs_util: Add more string conversion functions | Morph | 2 | -0/+33 | |
2021-06-01 | yuzu qt: Use lambda and std::function for reset callback | lat9nq | 4 | -19/+17 | |
Also makes use of std::move, and performs a clang-format cleanup. This addresses review comments. Co-authored-by: LC <mathew1800@gmail.com> | |||||
2021-06-01 | yuzu: Add settings reset button to general configuration | lat9nq | 8 | -23/+111 | |
Builds on german77's work to reset all settings back to their defaults. This include UISettings and Settings values structs, but does not affect save profiles, input profiles, and game directories. This works from a button input in configure_general. When activated, it calls a callback to close the whole configure dialog, then GMainWindow deletes the old configuration, both on disk and in memory, and reinitalizes a new one. It also resets a portion of the UI and calls the telemetry window prompt. | |||||
2021-06-01 | configuration: Initial work to reset all settings | fearlessTobi | 6 | -0/+33 | |
This commit does not compile. Initial work to add and connect a Reset to Defaults button to the configure_general tab. Co-authored-by: german77 <juangerman-13@hotmail.com> | |||||
2021-06-01 | buffer_cache: Simplify uniform disabling logic | ameerj | 8 | -6/+29 | |
2021-05-31 | common_funcs: Move R_ macros to result.h | Lioncash | 2 | -25/+25 | |
These macros all interact with the result code type, so they should ideally be within this file as well, so all the common_funcs machinery doesn't need to be pulled in just to use them. | |||||
2021-05-30 | settings: Disable controller preview if controller is not active | german77 | 3 | -2/+25 | |
2021-05-30 | input_common: Analog button, use time based position instead of frequent updates | german77 | 3 | -73/+138 | |
2021-05-29 | k_class_token: Use variable templates where applicable | Lioncash | 1 | -43/+36 | |
Same behavior, less code. | |||||
2021-05-29 | video_core: gpu: WaitFence: Do not block threads during shutdown. | bunnei | 2 | -1/+13 | |
- Fixes a hang on shutdown when NVFlinger thread is waiting on a syncpoint that will never occur. - Commonly observed when stopping emulation in Super Mario Odyssey. | |||||
2021-05-29 | core/memory: Check our memory fallbacks for out-of-bound behavior. | Markus Wick | 3 | -4/+46 | |
This makes it by far harder to crash yuzu. Also implement the 48bit masking of AARCH64 while touching this code. | |||||
2021-05-29 | core/arm_interface: Improve the performance of memory fallbacks. | Markus Wick | 2 | -29/+31 | |
We just create one memory subsystem. This is a constant all the time. So there is no need to call the non-inlined parent.Memory() helper on every callback. | |||||
2021-05-29 | kernel: Add missing override specifiers | Lioncash | 15 | -53/+48 | |
Over the course of the kernel refactoring a tiny bit of missing overrides slipped through review, so we can add these. While we're at it, we can remove redundant virtual keywords where applicable as well. | |||||
2021-05-29 | Fix two GCC 11 warnings: Unneeded copies. | Markus Wick | 2 | -3/+3 | |
std::move created an unneeded copy. iterating without reference also created copies. | |||||
2021-05-29 | externals: Update dynarmic. | Markus Wick | 6 | -11/+11 | |
The new version supports fastmem on a64. | |||||
2021-05-29 | k_thread: Move dereference after null check in Initialize() | Lioncash | 1 | -5/+5 | |
Prevents a -Wnonnull warning on GCC. | |||||
2021-05-29 | hle: kernel: KSlabHeap: Allow host or guest allocations. | bunnei | 2 | -11/+191 | |
- Use host allocations for kernel memory, as this is not properly emulated yet. - Use guest allocations for TLS, as this needs to be backed by DeviceMemory. | |||||
2021-05-28 | touchscreen: Make use of common point struct | Lioncash | 2 | -10/+10 | |
2021-05-28 | common: Extract point into a common struct | Lioncash | 3 | -29/+65 | |
This is generic enough that it can be moved into the Common class for reuse. | |||||
2021-05-28 | common/fs/file: Explicitly delete copy constructors | Lioncash | 1 | -1/+4 | |
Relocates them to the same place the move equivalents are at for consistent viewing. | |||||
2021-05-28 | common/fs/file: Devirtualize destructor | Lioncash | 1 | -1/+1 | |
IOFile is a final class, so there's no need for a virtual destructor. | |||||
2021-05-28 | common/fs/file: Default initialize IOFile members | Lioncash | 1 | -2/+2 | |
Prevents a potential uninitialized read vector in the move constructor. | |||||
2021-05-28 | applets/swkbd: Make use of std::move where applicable | Morph | 2 | -22/+19 | |
Avoids redundant string copies | |||||
2021-05-28 | applets/swkbd: Only read the text check message on Failure/Confirm | Morph | 1 | -2/+7 | |
Applications may leave this region of memory uninitialized when the text check result is not either Failure or Confirm. Attempting to read uninitialized memory may cause an exception within the UTF16 to UTF8 string converter. Fix this by only reading the text check message on Failure or Confirm. | |||||
2021-05-27 | video_core: rasterizer_cache: Use u16 for cached page count. | bunnei | 2 | -9/+9 | |
- Greatly reduces the risk of overflow, at the cost of doubling the size of this array. | |||||
2021-05-27 | core/arm_interface: Call SVC after end of dynarmic block. | Markus Wick | 6 | -18/+42 | |
So we can modify all of dynarmic states within SVC without ExceptionalExit. Especially as the ExceptionalExit hack is dropped on upstream dynarmic. | |||||
2021-05-27 | vulkan_memory_allocator: Allow textures to be allocated in host memory | ReinUsesLisp | 2 | -31/+43 | |
Allow Vulkan's allocator to use host memory when there's no more device local memory. This delays OOM, but it will eventually still happen. | |||||
2021-05-26 | cmake: Download Qt binaries on Linux if needed | lat9nq | 1 | -2/+11 | |
If the local version of Qt is older than the minimum version required by yuzu, download a pre-built binary package from yuzu-emu/ext-linux-bin and build yuzu with it, instead. This also requires linking yuzu to the correct libraries after building it, and copying over the required binaries when building yuzu. This sets the Qt requirement to 5.12, which is intentionally behind the versions used by our toolchains since they are not all updated yet to 5.15. | |||||
2021-05-26 | core/arm: Drop ChangeProcessorID. | Markus Wick | 5 | -12/+0 | |
This code was used to switch the CPU ID on thread switches. However since "hle: kernel: multicore: Replace n-JITs impl. with 4 JITs.", the CPU ID is not a constant. This has been dead code since this rewrite, and dropped in dynarmic as well. So there is no need to keep it. | |||||
2021-05-26 | ldn: Add and stub lp2p:sys lp2p:app INetworkServiceMonitor INetworkService | german77 | 1 | -0/+141 | |
2021-05-26 | yuzu qt: Restore const qualifiers | lat9nq | 2 | -23/+12 | |
This addresses review comments. Co-authored-by: LC <mathew1800@gmail.com> | |||||
2021-05-26 | yuzu qt: Handle per-game configs for title id 0 | lat9nq | 8 | -22/+46 | |
Currently with programs that have a 0 title id, yuzu loads the custom configuration 0000000000000000.ini for per-game configs. This is not ideal since many homebrews share this id. Instead for these programs, we load a config that is simply the file name and `.ini` appended to it. | |||||
2021-05-26 | common: fs: Rework the Common Filesystem interface to make use of std::filesystem (#6270) | Morph | 74 | -2173/+3789 | |
* common: fs: fs_types: Create filesystem types Contains various filesystem types used by the Common::FS library * common: fs: fs_util: Add std::string to std::u8string conversion utility * common: fs: path_util: Add utlity functions for paths Contains various utility functions for getting or manipulating filesystem paths used by the Common::FS library * common: fs: file: Rewrite the IOFile implementation * common: fs: Reimplement Common::FS library using std::filesystem * common: fs: fs_paths: Add fs_paths to replace common_paths * common: fs: path_util: Add the rest of the path functions * common: Remove the previous Common::FS implementation * general: Remove unused fs includes * string_util: Remove unused function and include * nvidia_flags: Migrate to the new Common::FS library * settings: Migrate to the new Common::FS library * logging: backend: Migrate to the new Common::FS library * core: Migrate to the new Common::FS library * perf_stats: Migrate to the new Common::FS library * reporter: Migrate to the new Common::FS library * telemetry_session: Migrate to the new Common::FS library * key_manager: Migrate to the new Common::FS library * bis_factory: Migrate to the new Common::FS library * registered_cache: Migrate to the new Common::FS library * xts_archive: Migrate to the new Common::FS library * service: acc: Migrate to the new Common::FS library * applets/profile: Migrate to the new Common::FS library * applets/web: Migrate to the new Common::FS library * service: filesystem: Migrate to the new Common::FS library * loader: Migrate to the new Common::FS library * gl_shader_disk_cache: Migrate to the new Common::FS library * nsight_aftermath_tracker: Migrate to the new Common::FS library * vulkan_library: Migrate to the new Common::FS library * configure_debug: Migrate to the new Common::FS library * game_list_worker: Migrate to the new Common::FS library * config: Migrate to the new Common::FS library * configure_filesystem: Migrate to the new Common::FS library * configure_per_game_addons: Migrate to the new Common::FS library * configure_profile_manager: Migrate to the new Common::FS library * configure_ui: Migrate to the new Common::FS library * input_profiles: Migrate to the new Common::FS library * yuzu_cmd: config: Migrate to the new Common::FS library * yuzu_cmd: Migrate to the new Common::FS library * vfs_real: Migrate to the new Common::FS library * vfs: Migrate to the new Common::FS library * vfs_libzip: Migrate to the new Common::FS library * service: bcat: Migrate to the new Common::FS library * yuzu: main: Migrate to the new Common::FS library * vfs_real: Delete the contents of an existing file in CreateFile Current usages of CreateFile expect to delete the contents of an existing file, retain this behavior for now. * input_profiles: Don't iterate the input profile dir if it does not exist Silences an error produced in the log if the directory does not exist. * game_list_worker: Skip parsing file if the returned VfsFile is nullptr Prevents crashes in GetLoader when the virtual file is nullptr * common: fs: Validate paths for path length * service: filesystem: Open the mod load directory as read only | |||||
2021-05-25 | yuzu qt: Add an Apply button to configuration dialogs | lat9nq | 6 | -18/+57 | |
Most of the code already exists to do this, but the Apply button itself was never added. This adds a button and boolean that tells yuzu to save the configuration after applying settings, even if close/Cancel is pressed on the dialog. Changes after applying will not be saved when Cancel is pressed, though. | |||||
2021-05-25 | kernel: process_capability: Add MapRegion capability | Morph | 2 | -0/+12 | |
- Used by nx-hbloader | |||||
2021-05-24 | zstd_compression: Make use of std::span | Lioncash | 2 | -3/+4 | |
Allows for the incoming data stream to be non-allocating. | |||||
2021-05-24 | lz4_compression: Make use of std::span | Lioncash | 2 | -4/+4 | |
Allows making the incoming data stream non-allocating. | |||||
2021-05-24 | hid: ApplyNpadSystemCommonPolicy | Chloe Marcec | 1 | -1/+10 | |
We already do this specifically for homebrew, so we can keep it stubbed out for the time being | |||||
2021-05-24 | settings: Forbid docked mode on handheld | german77 | 3 | -4/+24 | |
2021-05-23 | input_common: Add dual joycon support | german77 | 2 | -60/+258 | |
2021-05-23 | settings: Suppress duplicate label name warning | german77 | 1 | -3/+3 | |
2021-05-22 | applets/swkbd: Make use of QueuedConnection in returnPressed signal | Morph | 1 | -15/+3 | |
Some users have reported rare crashes when pressing the Enter key on the keyboard to confirm input in the normal software keyboard, particularly in Super Smash Bros. Ultimate while entering the name of a ruleset or controller layout. It is suspected that the QLineEdit::returnPressed signal is causing a race condition as confirming input through other means does not produce the crash. Since Qt::QueuedConnection posts an event to the event queue of the callee's thread instead of executing it directly on the caller's thread, this eliminates any potential race conditions from occurring in this scenario. | |||||
2021-05-21 | hle: kernel: service_thread: Take reference to KServerSession on service request. | bunnei | 1 | -9/+5 | |
2021-05-21 | hle: kernel: k_port: Use AcceptSession to ensure SessionList state is correct. | bunnei | 1 | -1/+1 | |
- Fixes a use-after-free, work-around until we fixup session/port management. | |||||
2021-05-21 | hle: kernel: Use host memory allocations for KSlabMemory. | bunnei | 4 | -174/+20 | |
- There are some issues with the current workaround, we will just use host memory until we have a complete kernel memory implementation. | |||||
2021-05-21 | Revert "WORKAROUND: Do not use slab heap while we track down issues with resource management." | bunnei | 1 | -2/+2 | |
This reverts commit f2c26443f85a3c3fd43137509368ba5c7ab80ee7. | |||||
2021-05-21 | hle: kernel: hle_ipc: Simplify incoming/outgoing move/copy/domain objects. | bunnei | 3 | -62/+17 | |
2021-05-21 | common: tree: Avoid a crash on nullptr dereference. | bunnei | 1 | -0/+11 | |
2021-05-21 | hle: kernel: Implement CloneCurrentObject and improve session management. | bunnei | 13 | -99/+184 | |
2021-05-21 | Revert "WORKAROUND: temp. disable session resource limits while we work out issues" | bunnei | 4 | -11/+11 | |
This reverts commit fc086f93b2165b5c210cb7dcd6c18ebe17f1fd7b. | |||||
2021-05-20 | configure_cpu: Simplify UpdateGroup | lat9nq | 1 | -7/+4 | |
Co-authored-by: Ameer J <52414509+ameerj@users.noreply.github.com> | |||||
2021-05-19 | configuration_shared: Drop unused function and template another | lat9nq | 2 | -52/+7 | |
Drops an unused variant of ApplyPerGameSetting, and turns the QComboBox variants of SetPerGameSetting into a template. Co-authored-by: Ameer J <52414509+ameerj@users.noreply.github.com> | |||||
2021-05-19 | applets/swkbd: Send the correct text string on TextCheck::Confirm | Morph | 1 | -8/+8 | |
Previously the text string for the inline software keyboard was being sent instead of the normal software keyboard, leading to empty text being sent all the time. | |||||
2021-05-18 | KTransferMemory: Return size instead of size * PageSize in GetSize() | Morph | 1 | -1/+1 | |
size is already the size in bytes. We do not need to multiply it by the page size | |||||
2021-05-18 | hid/gesture: Factor out last gesture retrieval into its own function | Lioncash | 2 | -14/+23 | |
Deduplicates a commonly repeated expression. | |||||
2021-05-18 | hid/gesture: Ensure all ID arrays are initialized | Lioncash | 1 | -4/+4 | |
Makes for deterministic initial state. | |||||
2021-05-18 | hid/gesture: Make Point a template | Lioncash | 2 | -38/+46 | |
We can now use this in a generic context to reuse it with the finger position. | |||||
2021-05-18 | hid/gesture: Replace x,y members of GestureState with a Point | Lioncash | 2 | -6/+4 | |
Simplifies assignments. | |||||
2021-05-18 | hid/gesture: Add default comparators to Point | Lioncash | 2 | -10/+7 | |
Simplifies some comparisons. | |||||
2021-05-18 | hid/gesture: Rename Points to Point | Lioncash | 1 | -5/+5 | |
This only represents a single point | |||||
2021-05-17 | general: Demote custom_rtc to regular setting | lat9nq | 6 | -58/+30 | |
2021-05-17 | CMakeLists: Enforce C4715 on MSVC | Morph | 1 | -0/+1 | |
This is similar to -Werror=return-type | |||||
2021-05-17 | configure_debug: FIx duplicate labels | Morph | 1 | -5/+5 | |
Duplicate labels were unintentionally introduced due to copy-paste. This silences the compilation warning produced by the presence of these duplicates. | |||||
2021-05-17 | yuzu/main: Fix version info in logging and about dialog | Morph | 3 | -14/+17 | |
2021-05-16 | buffer_cache: Ensure null buffers cannot take the fast uniform bind path | ameerj | 1 | -1/+4 | |
Fixes a crash in New Pokemon Snap | |||||
2021-05-16 | main: Prevent installing base titles into NAND | Morph | 4 | -3/+28 | |
Many users have been installing their base titles into NAND instead of adding them into the games list. This prevents users from installing any base titles and warns the user about the action. | |||||
2021-05-16 | hle_ipc: unsigned -> u32 | Morph | 1 | -7/+7 | |
This is more concise and consistent with the rest of the codebase. | |||||
2021-05-16 | hle_ipc: Add a getter for PID | Morph | 2 | -2/+7 | |
2021-05-16 | core: Make variable shadowing a compile-time error | Lioncash | 99 | -279/+304 | |
Now that we have most of core free of shadowing, we can enable the warning as an error to catch anything that may be remaining and also eliminate this class of logic bug entirely. | |||||
2021-05-16 | configuration: Add CPU tab to game properties | lat9nq | 13 | -88/+181 | |
Allows setting CPU accuracy to Accurate or Unsafe per-game, as well as the accuracy options for Unsafe. Debug is not allowed here as a per-game CPU accuracy. | |||||
2021-05-16 | nifm, ssl: Fix incorrect response sizes | Morph | 2 | -2/+2 | |
2021-05-16 | configuration: Simplify applying per-game settings | lat9nq | 6 | -112/+69 | |
Originally, every time we add a per-game setting, we'd have to guard for it when setting it on the global config, and use a specific function to do it for the per-game config. This moves the global check into the ApplyPerGameSetting function so that we can use it for changing both the global and per-game states. Less work for the programmer. | |||||
2021-05-16 | configuration_shared: Add some comments | lat9nq | 1 | -6/+14 | |
Monke brain can't remember what all of these does a year later. | |||||
2021-05-16 | general: Make CPU accuracy and related a Settings::Setting | lat9nq | 7 | -41/+47 | |
Required to make CPU accuracy and unsafe settings available to use as a per-game setting. | |||||
2021-05-16 | perf_stats: Rework FPS counter to be more accurate | ameerj | 10 | -14/+26 | |
The FPS counter was based on metrics in the nvdisp swapbuffers call. This metric would be accurate if the gpu thread/renderer were synchronous with the nvdisp service, but that's no longer the case. This commit moves the frame counting responsibility onto the concrete renderers after their frame draw calls. Resulting in more meaningful metrics. The displayed FPS is now made up of the average framerate between the previous and most recent update, in order to avoid distracting FPS counter updates when framerate is oscillating between close values. The status bar update frequency was also changed from 2 seconds to 500ms. | |||||
2021-05-15 | main: Add title's version to window name on EA/mainline | ameerj | 1 | -11/+6 | |
Fixes the missing title version number on EA/mainline builds which override the title bar string. | |||||
2021-05-15 | input_common: Implement SDL motion | german77 | 5 | -3/+167 | |
2021-05-15 | input_common: Fix crash when controller disconnects | german77 | 1 | -1/+3 | |
2021-05-15 | input_common: Rewrite sdl analog mapping | german77 | 1 | -25/+25 | |
2021-05-13 | input_common: Sanitize motion data | german77 | 1 | -0/+23 | |
2021-05-13 | ssl: Stub Import(Client/Server)Pki | Morph | 1 | -2/+40 | |
- Used in JUMP FORCE Deluxe Edition | |||||
2021-05-12 | common: tree: Avoid a nullptr dereference. | bunnei | 1 | -1/+1 | |
2021-05-11 | hle: kernel: hle_ipc: Fix outgoing IPC response size calculation. | bunnei | 3 | -1/+15 | |
2021-05-11 | WORKAROUND: temp. disable session resource limits while we work out issues | bunnei | 4 | -11/+11 | |
2021-05-11 | WORKAROUND: Do not use slab heap while we track down issues with resource management. | bunnei | 1 | -2/+2 | |
2021-05-11 | audren | bunnei | 2 | -25/+16 | |
2021-05-11 | core: hle: ipc_helpers: Fix cast on raw_data_size calculation. | bunnei | 1 | -1/+1 | |
2021-05-11 | hle: service: sm: Add TIPC support. | bunnei | 2 | -41/+66 | |
- Fixes our error checking of names as well. | |||||
2021-05-11 | hle: kernel: hle_ipc: Improve IPC code and add initial support for TIPC. | bunnei | 2 | -81/+57 | |
- Fixes our move handles implementation to actually move objects. - Simplifies the traditional IPC path. | |||||
2021-05-11 | hle: service: sm: GetService: Reserve session resource when we create a KSession. | bunnei | 1 | -0/+7 | |
2021-05-11 | hle: service: Add support for dispatching TIPC requests. | bunnei | 2 | -1/+52 | |
2021-05-11 | hle: service: Implement IPC::CommandType::Close. | bunnei | 3 | -11/+15 | |
- This was not actually closing sessions before. | |||||
2021-05-11 | hle: service: sm: Use RegisterNamedService to register the service. | bunnei | 1 | -1/+1 | |
2021-05-11 | hle: service: sm: Improve Initialize implementation. | bunnei | 2 | -0/+3 | |
2021-05-11 | hle: kernel: svc: Update ConnectToNamedPort to use new CreateNamedServicePort interface. | bunnei | 1 | -4/+3 | |
2021-05-11 | hle: kernel: Implement named service ports using service interface factory. | bunnei | 4 | -22/+30 | |
- This allows us to create a new interface each time ConnectToNamedPort is called, removing the assumption that these are static. | |||||
2021-05-11 | hle: kernel: KSession: Improve implementation of CloneCurrentObject. | bunnei | 1 | -2/+10 | |
2021-05-11 | hle: service: sm: Increase point buffer size. | bunnei | 1 | -1/+1 | |
2021-05-11 | hle: ipc_helpers: Reserve session resource when we create a KSession. | bunnei | 1 | -0/+5 | |
2021-05-11 | hle: kernel: KClientPort: Cleanup comment format. | bunnei | 1 | -1/+1 | |
2021-05-11 | hle: ipc: Add declarations for TIPC. | bunnei | 1 | -1/+16 | |
2021-05-11 | hle: kernel: Further cleanup and add TIPC helpers. | bunnei | 2 | -4/+12 | |
2021-05-11 | hle: ipc_helpers: Update IPC response generation for TIPC. | bunnei | 2 | -19/+39 | |
2021-05-10 | configure_ui: Call RequestGameListUpdate when toggling "Show Add-Ons Column" | Kewlan | 1 | -0/+1 | |
2021-05-10 | parent_of_member: Make sign conversion explicit in OffsetOfImpl() | Lioncash | 1 | -1/+2 | |
Previously these conversions were implicit and causing quite a few warnings on clang. | |||||
2021-05-09 | kernel: Delete unused files | german77 | 2 | -151/+0 | |
2021-05-08 | kernel: Eliminate variable shadowing | Lioncash | 40 | -140/+138 | |
Now that the large kernel refactor is merged, we can eliminate the remaining variable shadowing cases. | |||||
2021-05-08 | texture_cache: Handle out of bound texture blits | ameerj | 8 | -61/+99 | |
Some games interleave a texture blit using regions which are out-of-bounds. This addresses the interleaving to avoid oob reads from the src texture. | |||||
2021-05-07 | ldr: Simplify memory copy within LoadNro() | Lioncash | 1 | -5/+3 | |
We can use the dedicated memory function for performing copies instead of reading into a temporary buffer and then immediately writing it back out to memory. Eliminates a bit of heap memory churn. | |||||
2021-05-06 | nvflinger: Create layers when they are queried but not found | ameerj | 2 | -5/+35 | |
Fixes Shantae softlock on boot. | |||||
2021-05-06 | hle: kernel: KPageTable: CanContain should not be constexpr. | bunnei | 2 | -2/+2 | |
2021-05-06 | hle: kernel: Move slab resource counts to Kernel. | bunnei | 4 | -33/+52 | |
2021-05-06 | fixup! hle: kernel: Migrate KSharedMemory to KAutoObject. | bunnei | 1 | -2/+2 | |
2021-05-06 | fixup! hle: kernel: Migrate more of KThread to KAutoObject. | bunnei | 1 | -1/+1 | |
2021-05-06 | fixup! common: bit_util: Add BIT macro. | bunnei | 1 | -2/+0 | |
2021-05-06 | fixup! hle: kernel: Ensure all kernel objects with KAutoObject are properly created. | bunnei | 1 | -2/+0 | |
2021-05-06 | fixup! hle: kernel: Ensure all kernel objects with KAutoObject are properly created. | bunnei | 1 | -2/+0 | |
2021-05-06 | kernel: svc: Remove unused RetrieveResourceLimitValue function. | bunnei | 1 | -32/+0 | |
2021-05-06 | hle: kernel: Fix un/sign mismatch errors with NUM_CPU_CORES. | bunnei | 1 | -3/+3 | |
2021-05-06 | fixup! hle: kernel: Add initial impl. of slab setup. | bunnei | 1 | -6/+2 | |
2021-05-06 | fixup! hle: kernel: Migrate to KHandleTable. | bunnei | 1 | -0/+3 | |
2021-05-06 | fixup! hle: kernel: Migrate more of KThread to KAutoObject. | bunnei | 1 | -7/+0 | |
2021-05-06 | common: parent_of_member: Fix build for OffsetOf(). | bunnei | 1 | -4/+4 | |
2021-05-06 | fixup! common: intrusive_red_black_tree: Disable static_assert that will not evaluate as constant on MSVC. | bunnei | 1 | -5/+0 | |
2021-05-06 | fixup! hle: kernel: Migrate KReadableEvent and KWritableEvent to KAutoObject. | bunnei | 2 | -2/+2 | |
2021-05-06 | fixup! hle: kernel: Migrate to KHandleTable. | bunnei | 1 | -1/+1 | |
2021-05-06 | fixup! hle: kernel: Add initial impl. of KLinkedList. | bunnei | 1 | -12/+12 | |
2021-05-06 | fixup! hle: kernel: Migrate to KHandleTable. | bunnei | 1 | -1/+1 | |
2021-05-06 | fixup! hle: kernel: Migrate KPort, KClientPort, and KServerPort to KAutoObject. | bunnei | 1 | -1/+1 | |
2021-05-06 | fixup! hle: kernel: Migrate KSession, KClientSession, and KServerSession to KAutoObject. | bunnei | 3 | -22/+28 | |
2021-05-06 | fixup! hle: kernel: Migrate KSession, KClientSession, and KServerSession to KAutoObject. | bunnei | 1 | -1/+1 | |
2021-05-06 | fixup! hle: kernel: Migrate KPort, KClientPort, and KServerPort to KAutoObject. | bunnei | 1 | -1/+1 | |
2021-05-06 | fixup! hle: kernel: Migrate to KHandleTable. | bunnei | 1 | -60/+58 | |
2021-05-06 | fixup! hle: kernel: Add initial impl. of KAutoObjectWithListContainer. | bunnei | 1 | -11/+9 | |
2021-05-06 | fixup! hle: kernel: Add initial impl. of KAutoObjectWithListContainer. | bunnei | 1 | -9/+2 | |
2021-05-06 | fixup! hle: kernel: Add initial impl. of KAutoObject. | bunnei | 1 | -46/+46 | |
2021-05-06 | fixup! hle: kernel: Add initial impl. of KAutoObject. | bunnei | 1 | -1/+1 | |
2021-05-06 | fixup! hle: kernel: Add initial impl. of slab setup. | bunnei | 1 | -8/+8 | |
2021-05-06 | common: Rename NON_COPYABLE/NON_MOVABLE with YUZU_ prefix. | bunnei | 5 | -11/+11 | |
2021-05-06 | fixup! hle: kernel: Rename Process to KProcess. | bunnei | 1 | -1/+1 | |
2021-05-06 | fixup! hle: kernel: Migrate to KHandleTable. | bunnei | 1 | -1/+1 | |
2021-05-06 | fixup! hle: kernel: Improve MapSharedMemory and implement UnmapSharedMemory. | bunnei | 1 | -3/+3 | |
2021-05-06 | hle: kernel: svc: ConnectToNamedPort: Use KHandleTable::Reserve. | bunnei | 1 | -3/+8 | |
2021-05-06 | hle: kernel: Migrate to KHandleTable. | bunnei | 22 | -381/+503 | |
2021-05-06 | hle: kernel: KClassToken: Ensure class tokens are correct. | bunnei | 1 | -1/+127 | |
2021-05-06 | hle: kernel: Improve MapSharedMemory and implement UnmapSharedMemory. | bunnei | 10 | -95/+210 | |
2021-05-06 | hle: kernel: Rename Process to KProcess. | bunnei | 83 | -247/+249 | |
2021-05-06 | hle: kernel: Remove deprecated Object class. | bunnei | 39 | -423/+34 | |
2021-05-06 | hle: kernel: Do not shutdown twice on emulator close. | bunnei | 1 | -3/+1 | |
2021-05-06 | hle: kernel: Cleanup shutdown of persistent kernel objects. | bunnei | 1 | -14/+12 | |
2021-05-06 | hle: kernel: Migrate KPort, KClientPort, and KServerPort to KAutoObject. | bunnei | 22 | -166/+444 | |
2021-05-06 | hle: kernel: Migrate KServerPort to KAutoObject. | bunnei | 8 | -52/+67 | |
2021-05-06 | hle: kernel: Migrate KClientPort to KAutoObject. | bunnei | 18 | -63/+92 | |
2021-05-06 | hle: kernel: HandleTable: Remove deprecated APIs. | bunnei | 7 | -111/+28 | |
2021-05-06 | hle: kernel: Migrate KResourceLimit to KAutoObject. | bunnei | 13 | -122/+197 | |
2021-05-06 | hle: kernel: svc: Migrate WaitSynchronization. | bunnei | 2 | -47/+78 | |
2021-05-06 | hle: kernel: svc: Use new handle table API for Process. | bunnei | 2 | -16/+17 | |
2021-05-06 | hle: kernel: Migrate KTransferMemory to KAutoObject. | bunnei | 12 | -68/+209 | |
2021-05-06 | hle: kernel: Migrate KSession, KClientSession, and KServerSession to KAutoObject. | bunnei | 31 | -356/+412 | |
2021-05-06 | hle: kernel: svc: Migrate GetThreadContext, GetThreadCoreMask. | bunnei | 1 | -2/+59 | |
2021-05-06 | hle: kernel: svc: Migrate GetProcessId, CancelSynchronization, SetThreadActivity. | bunnei | 1 | -13/+67 | |
2021-05-06 | hle: kernel: KThread: Remove incorrect resource release. | bunnei | 1 | -2/+1 | |
2021-05-06 | hle: kernel: svc_results: Update naming.. | bunnei | 8 | -42/+43 | |
2021-05-06 | hle: kernel: KThread: Add missing resource hint release. | bunnei | 1 | -1/+1 | |
2021-05-06 | hle: kernel: Migrate KReadableEvent and KWritableEvent to KAutoObject. | bunnei | 35 | -200/+215 | |
2021-05-06 | hle: ipc_helpers: Add methods for copy/move references. | bunnei | 1 | -2/+24 | |
2021-05-06 | hle: kernel: Move slab heaps to their own container. | bunnei | 2 | -10/+16 | |
2021-05-06 | hle: kernel: Refactor several threads/events/sharedmemory to use slab heaps. | bunnei | 11 | -59/+53 | |
2021-05-06 | hle: kernel: Move slab heap management to KernelCore. | bunnei | 7 | -64/+106 | |
2021-05-06 | hle: kernel: Ensure all kernel objects with KAutoObject are properly created. | bunnei | 20 | -0/+55 | |
2021-05-06 | hle: kernel: Use unique_ptr for suspend and dummy threads. | bunnei | 1 | -8/+8 | |
2021-05-06 | hle: kernel: Migrate KEvent to KAutoObject. | bunnei | 37 | -266/+269 | |
2021-05-06 | hle: kernel: Migrate KSharedMemory to KAutoObject. | bunnei | 16 | -114/+128 | |
2021-05-06 | hle: kernel: Migrate KProcess to KAutoObject. | bunnei | 14 | -58/+80 | |
2021-05-06 | hle: kernel: Refactor IPC interfaces to not use std::shared_ptr. | bunnei | 28 | -59/+65 | |
2021-05-06 | hle: kernel: Migrate more of KThread to KAutoObject. | bunnei | 18 | -294/+451 | |
2021-05-06 | hle: kernel: svc: Migrate GetThreadPriority, StartThread, and ExitThread. | bunnei | 1 | -21/+12 | |
2021-05-06 | hle: kernel: svc: Migrate CreateThread. | bunnei | 1 | -14/+21 | |
2021-05-06 | hle: kernel: Migrate idle threads. | bunnei | 2 | -13/+9 | |
2021-05-06 | hle: kernel: Migrate KThread to KAutoObject. | bunnei | 2 | -109/+91 | |
2021-05-06 | hle: kernel: Add initial impl. of slab setup. | bunnei | 3 | -0/+227 | |
2021-05-06 | hle: kernel: Refactor out various KThread std::shared_ptr usage. | bunnei | 10 | -58/+30 | |
2021-05-06 | core: Defer CoreTiming initialization. | bunnei | 1 | -1/+1 | |
2021-05-06 | core: memory: Add a work-around to allocate and access kernel memory regions by vaddr. | bunnei | 3 | -1/+46 | |
2021-05-06 | common: common_funcs: Add Size helper function. | bunnei | 1 | -0/+15 | |
2021-05-06 | hle: kernel: Add initial impl. of KLinkedList. | bunnei | 2 | -0/+234 | |
2021-05-06 | common: bit_util: Add BIT macro. | bunnei | 1 | -0/+2 | |
2021-05-06 | hle: kernel: Add initial impl. of KSlabAllocated. | bunnei | 2 | -0/+153 | |
2021-05-06 | hle: kernel: Add initial impl. of KAutoObjectWithListContainer. | bunnei | 3 | -0/+109 | |
2021-05-06 | hle: kernel: Add initial impl. of KAutoObject. | bunnei | 3 | -0/+306 | |
2021-05-06 | common: intrusive_red_black_tree: Disable static_assert that will not evaluate as constant on MSVC. | bunnei | 1 | -0/+4 | |
2021-05-06 | common: common_funcs: Add helper macros for non-copyable and non-moveable. | bunnei | 1 | -0/+8 | |
- Useful for scenarios where we do not want to inherit from NonCopyable. | |||||
2021-05-06 | Update src/core/hle/service/nvdrv/interface.cpp | bunnei | 1 | -1/+1 | |
Co-authored-by: Ameer J <52414509+ameerj@users.noreply.github.com> | |||||
2021-05-05 | hid: Improve hardware accuracy of gestures | german77 | 2 | -76/+340 | |
2021-05-05 | service: Remove unused class variables | Lioncash | 3 | -7/+4 | |
Prevents some warnings from occurring. | |||||
2021-05-04 | service: Resolve cases of member field shadowing | Lioncash | 60 | -117/+119 | |
Now all that remains is for kernel code to be 'shadow-free' and then -Wshadow can be turned into an error. | |||||
2021-05-03 | core: Resolve misc cases of variable shadowing | Lioncash | 10 | -25/+27 | |
Resolves shadowing warnings that aren't in a particularly large subsection of core. Brings us closer to turning -Wshadow into an error. All that remains now is for cases in the kernel (left untouched for now since a big change by bunnei is pending), and a few left over in the service code (will be tackled next). | |||||
2021-05-03 | nvdrv: /dev/nvhost-prof-gpu for production | Chloe Marcec | 1 | -3/+14 | |
While we're at it, we can fix the is_initialized error code. This fixes the crashes on Shante | |||||
2021-05-03 | hid: Fix touch not initializing properly if disabled | german77 | 2 | -2/+10 | |
2021-05-03 | input_common: Release mouse buttons on out of focus | german77 | 3 | -1/+18 | |
2021-05-02 | file_sys: Resolve cases of variable shadowing | Lioncash | 21 | -114/+132 | |
Brings us closer to enabling -Wshadow as an error in the core code. | |||||
2021-05-01 | service: filesystem: Return proper error codes for CreateFile | Morph | 2 | -2/+8 | |
This improves the accuracy of CreateFile by returning the correct error codes on certain conditions (parent directory does not exist, path already exists). This fixes saving and the loading of existing saves in New Pokemon Snap | |||||
2021-05-01 | Disable touch if setting is not enabled | german77 | 2 | -2/+2 | |
2021-04-30 | game_list: Fix dir move up/down expand state | Kewlan | 1 | -2/+4 | |
2021-04-30 | game_list: Update filter results when removing directories | Kewlan | 2 | -5/+6 | |
2021-04-29 | yuzu: config: Silence narrowing conversion warning on MSVC | Morph | 1 | -2/+1 | |
2021-04-28 | applets/web: Fix a use-after-free when passing in the URL string | Morph | 6 | -25/+28 | |
The URL string was being deleted before being used, leading to a use-after-free occurring when it is used afterwards. Fix this by taking the string by const ref to extend its lifetime, ensuring it doesn't get deleted before use. | |||||
2021-04-28 | yuzu: main: Silence type conversion warning on MSVC | Morph | 1 | -1/+1 | |
2021-04-27 | loader: Resolve instances of variable shadowing | Lioncash | 19 | -169/+257 | |
Eliminates variable shadowing cases across all the loaders to bring us closer to enabling variable shadowing as an error in core. | |||||
2021-04-27 | address comments | german77 | 2 | -5/+5 | |
2021-04-27 | input_common: Reset GC sticks center by measuring multiple packets | german77 | 2 | -2/+7 | |
2021-04-26 | gl_device: Intel: Disable texture view formats workaround on mesa | A-w-x | 1 | -1/+1 | |
2021-04-26 | service: Eliminate cases of member shadowing | Lioncash | 15 | -76/+81 | |
Resolves a few localized instances of member variable shadowing. Brings us a little closer to turning shadowing warnings into errors. | |||||
2021-04-25 | config: Add new keyboard bindings | Morph | 1 | -9/+10 | |
Changes the keyboard bindings to be based on RPCS3's tried and true keyboard bindings. | |||||
2021-04-25 | vk_texture_cache: Swap R and B channels of color flipped format | ameerj | 1 | -1/+24 | |
Swaps the Red and Blue channels of the A1B5G5R5_UNORM texture format, which was being incorrectly rendered. | |||||
2021-04-25 | nvhost_vic: Fix device closure | ameerj | 4 | -15/+11 | |
Implements the OnClose method of the nvhost_vic device, and removes the remnants of an older implementation. Also cleans up some of the surrounding code. | |||||
2021-04-24 | applets/swkbd: Fix software keyboard button hint scaling | Its-Rei | 1 | -12/+6 | |
Fixes the scaling of the button hints using background images. Now they scale like the rest of the elements. | |||||
2021-04-24 | glue: Add ectx:aw placeholder | german77 | 4 | -0/+49 | |
2021-04-24 | hid: Implement SevenSixAxis and ConsoleSixAxisSensor | german77 | 10 | -17/+220 | |
2021-04-24 | ICommonStateGetter: Stub SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled | Morph | 2 | -1/+10 | |
- Used by Pixel Game Maker Series Werewolf Princess Kaguya | |||||
2021-04-23 | program_metadata: Set a default resource size when a NPDM is not present | Morph | 3 | -4/+8 | |
Sets a default size of 0x1FE00000 bytes (510 MiB) for the system_resource_size when a NPDM is not present. | |||||
2021-04-23 | emu_window: Return pair from ClipToTouchScreen() instead of tuple | Lioncash | 2 | -5/+8 | |
This is only a 2-tuple, so it can be converted over to the std::pair class. | |||||
2021-04-23 | emu_window: unsigned -> u32 | Lioncash | 4 | -23/+23 | |
This is more concise and consistent with the rest of the codebase. | |||||
2021-04-23 | aes_util: Make use of std::span | Lioncash | 2 | -9/+5 | |
Allows us to simplify the interface quite a bit as it will handle contiguous sequences for us. | |||||
2021-04-23 | acc/lbl: Remove unused variables | Lioncash | 2 | -6/+0 | |
2021-04-23 | lm: Make use of insert_or_assign() in Log() | Lioncash | 1 | -1/+1 | |
Avoids unnecessary default construction of an entry in cases where no entry exists before overwriting the created entry. | |||||
2021-04-23 | lm: Prevent redundant map lookups in Log() | Lioncash | 1 | -4/+5 | |
We can perform the lookup and then do the contains check by checking the end iterator. The benefit of this is that if we *do* find an entry, then we aren't hashing into the map again to find it. We can also get rid of an unused std::vector temporary while we're at it. | |||||
2021-04-23 | lm: Resolve -Wextra-semi warning | Lioncash | 1 | -1/+1 | |
Resolves a trivial warning with clang. | |||||
2021-04-23 | program_metadata: Explicitly specify copy/move functions | Lioncash | 1 | -0/+6 | |
The generation of the copy assignment operators are deprecated on being generated when a user-provided destructor is present. We can explicitly specify that we desire this behavior to keep the class forward compatible with future standards. | |||||
2021-04-23 | yuzu_cmd: Remove unused resource.h | ameerj | 2 | -17/+0 | |
2021-04-22 | service: hid: Get transfer memory for InitializeSevenSixAxisSensor | Morph | 1 | -1/+38 | |
2021-04-20 | log/backend: Use in-class initializer for FileBackend | Lioncash | 2 | -6/+8 | |
We can also avoid redundant constructions of the same string repeatedly. | |||||
2021-04-20 | log/backend: Make use of erase_if | Lioncash | 1 | -4/+4 | |
Same behavior, but less verbose. | |||||
2021-04-19 | texture_cache/util: Fix src being used instead of dst within DeduceBlitImages | Lioncash | 1 | -1/+1 | |
This line can only ever be reached if src is null, so dereferencing it here is a logic bug that slipped through. Instead, we dereference dst instead which is guaranteed to be valid. | |||||
2021-04-19 | general: Write buffers before pushing raw arguments | Morph | 3 | -5/+12 | |
For consistency with the rest of the service implementations | |||||
2021-04-19 | arp: Use type alias for issue function | Lioncash | 1 | -4/+4 | |
Reduces some verbosity and centralizes the function details in one spot. | |||||
2021-04-19 | arp: Prevent uninitialized read of launch member variable | Lioncash | 1 | -1/+1 | |
If anything happened to call arp functions in the wrong order and called IRegistrar's Issue function before SetApplicationLaunchProperty, we'd read from an uninitialized ApplicationLaunchProperty instance. Instead, we can always initialize it so if this does happen, then the outcome of doing such a thing is at least consistently reproducible. | |||||
2021-04-19 | npad: Remove duplicated class member variable | Lioncash | 2 | -2/+1 | |
ControllerBase already has a System reference that can be accessed from this class, so we can get rid of this to make the class layout a little more straightforward. | |||||
2021-04-19 | time: Write buffer before pushing RESULT_SUCCESS in GetClockSnapshot | Morph | 1 | -1/+2 | |
2021-04-19 | time: Fix GetClockSnapshotFromSystemClockContext | Morph | 1 | -2/+3 | |
This removes an incorrect alignment usage and corrects the positions of the popped parameters. - Fixes Super Kirby Clash crashing on boot | |||||
2021-04-18 | general: Ignore implicit-fallthrough for SDL.h | lat9nq | 5 | -0/+47 | |
SDL 2.0.14 introduces an incompatibility with Clang, causing it to trigger -Wimplicit-fallthrough even though it is marked. Ignore it for now, with a comment mentioning why this is needed. | |||||
2021-04-18 | cmake: Use SDL 2.0.14 and fix CMake scope issue | lat9nq | 1 | -1/+1 | |
Forces using SDL 2.0.14. Upgrades the SDL external to that version. Adds a message when switching to the external. Fixes an error where input_common only links to SDL when SDL2_FOUND is set, but externals/CMakeLists cannot set that variable to the required scope. Switch to using ENABLE_SDL2, which we can use since we now include the SDL source. | |||||
2021-04-17 | applets: Send focus state change message on applet state change | Morph | 10 | -22/+56 | |
Fixes the softlock after the controller applet exits in Mario Kart 8 Deluxe. | |||||
2021-04-17 | applets: Make the applet mode a protected property of Applet | Morph | 14 | -22/+20 | |
2021-04-16 | Address issues | Chloe Marcec | 1 | -3/+2 | |
2021-04-15 | applets/swkbd: Implement the Qt Software Keyboard frontend | Morph | 6 | -14/+5518 | |
The Qt Software Keyboard frontend attempts to mimic the software keyboard rendered by the Nintendo Switch. This frontend implements multiple keyboard types, such as the normal software keyboard, the numeric pad software keyboard and the inline software keyboard. Keyboard and controller input is also supported in this frontend. Keyboard input is handled as native keyboard input, and so the on-screen keyboard cannot be navigated with the keyboard arrow keys as the arrow keys are used to move the text cursor. Controller input is translated into mouse hover movements on the onscreen keyboard or their respective button actions (B for backspace, A for entering the selected button, L/R for moving the text cursor, etc). The text check dialogs can also be confirmed with controller input through the use of the OverlayDialog Massive thanks to Rei for creating all the UI for the various keyboards and OverlayDialog. This would not have been possible without his excellent work. Co-authored-by: Its-Rei <kupfel@gmail.com> | |||||
2021-04-15 | error: Make the error code as the title text of the OverlayDialog | Morph | 4 | -15/+17 | |
Co-authored-by: Its-Rei <kupfel@gmail.com> | |||||
2021-04-15 | overlay_dialog: Add an overlay text dialog that accepts controller input | Morph | 5 | -1/+768 | |
An OverlayDialog is an interactive dialog that accepts controller input (while a game is running) This dialog attempts to replicate the look and feel of the Nintendo Switch's overlay dialogs and provide some extra features such as embedding HTML/Rich Text content in a QTextBrowser. The OverlayDialog provides 2 modes: one to embed regular text into a QLabel and another to embed HTML/Rich Text content into a QTextBrowser. Co-authored-by: Its-Rei <kupfel@gmail.com> | |||||
2021-04-15 | main: Move meta type registration into its own function | Morph | 2 | -9/+65 | |
Moves the existing meta type registration into its own function and adds registration of common integral, floating point and string types. This function is also now called in the constructor of the GMainWindow instead of on starting a game. | |||||
2021-04-15 | input_interpreter: Fix button hold being interpreted incorrectly on init | Morph | 2 | -1/+17 | |
We reset all the button states to 0 except the first index (which has all the buttons as pressed) to prevent a button hold being interpreted as a button that was pressed once on the first poll. | |||||
2021-04-15 | applets/swkbd: Implement the Default Software Keyboard frontend | Morph | 2 | -2/+236 | |
2021-04-15 | applets/swkbd: Implement the Normal and Inline Software Keyboard Applet | Morph | 4 | -13/+1488 | |
2021-04-15 | ILibraryAppletCreator: Implement CreateHandleStorage | Morph | 2 | -6/+64 | |
Used by Monster Hunter Generations Ultimate | |||||
2021-04-15 | hle_ipc: Add helper functions to get copy/move handles | Morph | 2 | -2/+16 | |
2021-04-15 | ILibraryAppletAccessor: Demote from ERROR to DEBUG for null storage logs | Morph | 1 | -2/+2 | |
Avoids unnecessary console spam when the inline software keyboard is used. | |||||
2021-04-15 | applets: Pass in the LibraryAppletMode each applet's constructor | Morph | 13 | -33/+58 | |
2021-04-15 | applets: Remove the previous software keyboard applet implementation | Morph | 8 | -492/+14 | |
2021-04-15 | game_list: Mark games as favorite to make them appear at the top. | Kewlan | 5 | -5/+144 | |
Icons are from Icons8. | |||||
2021-04-15 | log/backend: Correct order of const in copy constructor | Lioncash | 1 | -2/+5 | |
Follows our predominant coding style. Also explicitly specifies the move constructor/assignment operator as well. | |||||
2021-04-15 | common/log: Move Log namespace into the Common namespace | Lioncash | 11 | -43/+53 | |
Forgot to move this over when I moved the rest of the source files with lacking namespaces over. | |||||
2021-04-15 | common: Move settings to common from core. | bunnei | 116 | -146/+144 | |
- Removes a dependency on core and input_common from common. | |||||
2021-04-15 | core: settings: Add setting for debug assertions and disable by default. | bunnei | 7 | -2/+28 | |
- This is a developer-only setting and no longer needs to be enabled by default. - Also adds "use_auto_stub" setting to SDL frontend while we are here. - Supersedes #1340. | |||||
2021-04-14 | k_resource_limit: Minor cleanup of member variables/headers | ameerj | 4 | -21/+13 | |
2021-04-13 | applets/controller: Hook up the "Motion" button functionality | Morph | 2 | -0/+19 | |
I forgot to hook this up during the development of the controller applet, this PR amends that. | |||||
2021-04-13 | nvidia_flags: Add missing header guard | Lioncash | 1 | -0/+2 | |
Prevents potential inclusion compilation errors. | |||||
2021-04-12 | kernel/process: Replace process resource limit instance with the kernel's resource limit | ameerj | 2 | -38/+27 | |
This commit addresses the inaccurate behavior of kernel processes creating their own resource limit, rather than utilizing the kernel's system-wide resource limit instance. | |||||
2021-04-12 | k_thread: Remove [[nodiscard]] attribute from ClearWaitCancelled() | Lioncash | 1 | -1/+1 | |
This function has a void return value, so this attribute doesn't apply to it. | |||||
2021-04-12 | engine_interface: Add missing virtual destructor | Lioncash | 4 | -4/+5 | |
Eliminates a potential bug vector related to inheritance. Plus, we should generally be specifying the destructor as virtual within purely virtual interfaces to begin with. | |||||
2021-04-12 | vk_master_semaphore: Deduplicate atomic access within IsFree() | Lioncash | 1 | -1/+1 | |
We can just reuse the already existing KnownGpuTick() to deduplicate the access. | |||||
2021-04-12 | vk_master_semaphore: Add missing const qualifier for IsFree() | Lioncash | 1 | -1/+1 | |
This member function doesn't modify class state. | |||||
2021-04-12 | vk_texture_cache: Make use of Common::BitCast where applicable | Lioncash | 1 | -5/+6 | |
Also clarify the TODO comment a little more on the lacking implementations for std::bit_cast. | |||||
2021-04-12 | texure_cache/util: Resolve implicit sign conversions with std::reduce | Lioncash | 2 | -11/+15 | |
Amends implicit sign conversions occurring with usages of std::reduce and also relocates it to its own utility function to reduce verbosity a little bit. | |||||
2021-04-12 | query_cache: Make use of std::erase_if | Lioncash | 1 | -5/+4 | |
Same behavior, but much more straightforward to read. | |||||
2021-04-11 | vk_buffer_cache: Fix offset for NULL vertex buffers | Joshua Ashton | 1 | -1/+1 | |
The Vulkan spec states: If an element of pBuffers is VK_NULL_HANDLE, then the corresponding element of pOffsets must be zero. https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCmdBindVertexBuffers2EXT.html#VUID-vkCmdBindVertexBuffers2EXT-pBuffers-04112 | |||||
2021-04-11 | vulkan_device: Enable EXT_robustness2 features | Joshua Ashton | 1 | -0/+9 | |
When this was being made mandatory, these enablement of these features was removed, but this is still needed. Fixes: 757fd1e91716 ("vulkan_device: Require VK_EXT_robustness2") | |||||
2021-04-11 | renderer_vulkan: Check return value of AcquireNextImage | Joshua Ashton | 3 | -5/+10 | |
We can get into a really bad state by ignoring this leading to device loss and using incorrect resources. | |||||
2021-04-09 | ns: Update to 12.x | Morph | 1 | -3/+38 | |
2021-04-09 | aoc_u: Update to 12.x | Morph | 1 | -0/+2 | |
2021-04-09 | nim: Update to 12.x | Morph | 1 | -44/+55 | |
2021-04-09 | npns: Update to 12.x | Morph | 1 | -0/+3 | |
2021-04-09 | bgtc: Update to 12.x and implement OpenTaskService | Morph | 4 | -1/+36 | |
2021-04-09 | vi: Update to 12.x | Morph | 1 | -0/+8 | |
2021-04-09 | erpt: Update to 12.x | Morph | 1 | -1/+6 | |
2021-04-09 | btm: Update to 12.x | Morph | 1 | -0/+1 | |
2021-04-09 | btdrv: Update to 12.x | Morph | 1 | -0/+19 | |
2021-04-09 | wlan: Update to 12.x | german77 | 1 | -0/+7 | |
2021-04-09 | usb: Use proper names | german77 | 1 | -21/+21 | |
2021-04-09 | ITimeZoneService: Update to 12.x | german77 | 1 | -0/+1 | |
2021-04-09 | spl: Update to 12.x | german77 | 1 | -0/+3 | |
2021-04-09 | sfdnsres: Use proper names | german77 | 1 | -2/+2 | |
2021-04-09 | nsd: Update to 12.x | german77 | 1 | -0/+1 | |
2021-04-09 | ethc: Update to 12.x | german77 | 1 | -0/+1 | |
2021-04-09 | sm: Use proper names, update to 12.x | german77 | 1 | -4/+5 | |
2021-04-09 | set_sys: Update to 12.x | german77 | 1 | -0/+6 | |
2021-04-09 | pctl_module: Update to 12.x | german77 | 1 | -0/+3 | |
2021-04-09 | pcie: Use proper names | german77 | 1 | -1/+1 | |
2021-04-09 | olsc: Update to 12.x | german77 | 1 | -0/+1 | |
2021-04-09 | pl_u: Update to 12.x | german77 | 1 | -0/+4 | |
2021-04-09 | ldr: Use proper names | german77 | 1 | -16/+16 | |
2021-04-09 | arp: Use proper names, update to 12.x | german77 | 2 | -3/+10 | |
2021-04-09 | caps_u: Update to 12.x | german77 | 1 | -0/+1 | |
2021-04-09 | caps_a: Update to 12.x | german77 | 1 | -0/+1 | |
2021-04-09 | bpc: Use proper names | german77 | 1 | -2/+2 | |
2021-04-09 | bcat_module: Update to 12.x | german77 | 1 | -0/+2 | |
2021-04-09 | codecctl: Use proper names | german77 | 1 | -13/+13 | |
2021-04-09 | audren_u: Use proper names | german77 | 2 | -4/+4 | |
2021-04-09 | audren_a: Use proper names | german77 | 1 | -6/+6 | |
2021-04-09 | audrec_u: Use proper names, update to 12.x | german77 | 1 | -3/+4 | |
2021-04-09 | audrec_a: Use proper names | german77 | 1 | -2/+2 | |
2021-04-09 | audout_u: Use proper names | german77 | 1 | -3/+3 | |
2021-04-09 | audout_a: Use proper names | german77 | 1 | -6/+6 | |
2021-04-09 | audin_u: Use proper names | german77 | 1 | -7/+7 | |
2021-04-09 | audin_a: Use proper names | german77 | 1 | -4/+4 | |
2021-04-08 | externals: Search for shared opus installation. | Markus Wick | 1 | -1/+1 | |
We had used conan for opus before, but there was a bug in the AVX detection. However we still had the Findopus.cmake file within the repository, but not used. This patch reenables the Findopus helper and prefer the system wide installation of opus. | |||||
2021-04-08 | service: time: Setup the network clock with the local clock context | Morph | 6 | -21/+38 | |
Setting the network time allows some time based events using the network clock to not reset. | |||||
2021-04-08 | service: hid: Stub SetAnalogStickUseCenterClamp | Morph | 4 | -1/+29 | |
- Used by eBASEBALLパワフルプロ野球2020 | |||||
2021-04-08 | service: time: Fix CalculateStandardUserSystemClockDifferenceByUser | Morph | 1 | -3/+8 | |
CalculateStandardUserSystemClockDifferenceByUser passes in the ClockSnapshots through 2 input buffers and not as raw arguments. Fix this by reading the 2 input buffers instead of popping raw arguments. | |||||
2021-04-07 | video_core: Use a CV for blocking commands. | Markus Wick | 2 | -23/+31 | |
There is no need for a busy loop here. Let's just use a condition variable to save some power. | |||||
2021-04-07 | video_core/gpu_thread: Keep the write lock for allocating the fence. | Markus Wick | 2 | -1/+4 | |
Else the fence might get submited out-of-order into the queue, which makes testing them pointless. Overhead should be tiny as the mutex is just moved from the queue to the writing code. | |||||
2021-04-07 | video_core/gpu_thread: Implement a ShutDown method. | Markus Wick | 5 | -15/+28 | |
This was implicitly done by `is_powered_on = false`, however the explicit method allows us to block until the GPU is actually gone. This should fix a race condition while removing the other subsystems while the GPU is still active. | |||||
2021-04-07 | common/threadsafe_queue: Provide Wait() method. | Markus Wick | 2 | -3/+10 | |
It shall block until there is something to consume in the queue. And use it for the GPU emulation instead of the spin loop. This is only in booting the emulator, however in BOTW this is the case for about 1 second. | |||||
2021-04-07 | hwopus: Update to 12.x | Morph | 1 | -0/+4 | |
2021-04-07 | IFile: Update to 12.x | Morph | 1 | -3/+7 | |
2021-04-07 | fsp-srv: Update to 12.x | Morph | 2 | -3/+8 | |
2021-04-07 | dauth_o: Update to 11.x | Morph | 1 | -6/+11 | |
2021-04-07 | acc_u1: Update to 12.x | Morph | 1 | -13/+15 | |
2021-04-07 | acc_su: Update to 12.x | Morph | 1 | -17/+19 | |
2021-04-07 | hid: Update service function tables | german77 | 2 | -0/+85 | |
2021-04-07 | ISelfController: Update to 11.x | Morph | 1 | -0/+1 | |
2021-04-07 | IApplicationFunctions: Update to 11.x | Morph | 1 | -0/+6 | |
2021-04-07 | IDebugFunctions: Update to 12.x | Morph | 1 | -0/+2 | |
2021-04-07 | ICommonStateGetter: Update to 12.x | Morph | 1 | -0/+9 | |
2021-04-07 | IGlobalStateController: Update to 12.x | Morph | 1 | -0/+1 | |
2021-04-07 | IHomeMenuFunctions: Update to 12.x | Morph | 1 | -0/+3 | |
2021-04-07 | Amend bizarre clang-format suggestions | Lioncash | 3 | -5/+5 | |
2021-04-07 | k_scoped_scheduler_lock_and_sleep: Mark class as [[nodiscard]] | Lioncash | 1 | -1/+1 | |
Prevents logic bugs from slipping through. | |||||
2021-04-07 | k_scoped_lock: delete copy and move assignment operators | Lioncash | 1 | -2/+5 | |
If we delete the copy and move constructor, we should also be deleting the copy and move assignment operators (and even if this were intended, it would be pretty odd to not document why it's done this way). | |||||
2021-04-07 | k_scoped_lock: Mark class as [[nodiscard]] | Lioncash | 1 | -1/+1 | |
Prevents logic bugs of the kind described in the previous commit from slipping through. | |||||
2021-04-07 | k_scheduler: Mark KScopedSchedulerLock as [[nodiscard]] | Lioncash | 1 | -1/+1 | |
Prevents logic bugs like: KScopedSchedulerLock{kernel}; instead of: KScopedSchedulerLock lk{kernel}; from slipping through. | |||||
2021-04-07 | kernel: Increase event and session counts | ameerj | 1 | -2/+2 | |
12.x increased the number of available sessions and event resource counts | |||||
2021-04-07 | svc: Expand SVC tables | Lioncash | 1 | -0/+132 | |
12.x expanded the range of SVC entries from 0x7F to 0xBF (with all new entries being unused), so we can expand it to also match. | |||||
2021-04-07 | process_capability: Handle extended SVC range | Lioncash | 2 | -6/+1 | |
12.x extended the range of SVC IDs, so we need to expand the range of bits that need to be tested. The upside of this is that we can eliminate a range check, given the whole range is used. | |||||
2021-04-06 | config: Default to exclusive fullscreen mode on platforms other than Windows | Morph | 1 | -0/+12 | |
Several issues have been reported with the borderless windowed fullscreen mode on *nix platforms. Default to exclusive fullscreen mode on these platforms for now. | |||||
2021-04-06 | configure_graphics: Add Borderless Windowed fullscreen mode | Morph | 5 | -9/+108 | |
The borderless windowed fullscreen mode solves several issues with the presentation of the overlay dialogs and on-screen keyboard in exclusive fullscreen mode, and also has other benefits such as smoother gameplay, lower latency and a significant reduction in screen tearing. Co-authored-by: Its-Rei <kupfel@gmail.com> | |||||
2021-04-05 | nvhost_nvdec_common: Avoid memcpy with null pointers | lat9nq | 1 | -6/+11 | |
Avoid sending null pointer to memcpy as reported by Undefined Behavious Sanitizer. Co-authored-by: LC <mathew1800@gmail.com> | |||||
2021-04-05 | nvhost_ctrl_gpu: Avoid sending null pointer to memcpy | lat9nq | 1 | -1/+7 | |
Undefined Behaviour Sanitizer reports a null pointer is being sent to memcpy, thought it's "guaranteed to never be null". Guard it with an if statement, and log when the action has been averted. | |||||
2021-04-05 | vp9: Avoid memcpy with null pointers | lat9nq | 1 | -7/+9 | |
Avoid sending null pointer to memcpy as reported by Undefined Behaviour Sanitizer. Replaces the std::memcpy calls in SpliceVectors with std::copy calls. Opting to replace all the memcpy's with copy's. Co-authored-by: LC <mathew1800@gmail.com> | |||||
2021-04-04 | common: Move assert failure handling into a cpp file. | Markus Wick | 3 | -6/+20 | |
Advantage: Altering the handler does not need a full recompilation. Disadvantage: noreturn is droped, so the caller is a bit slower. We quite often run yuzu with a YOLO assertion handler. In fact, only very few games run at all with asserts. This patch allows developers to patch the handler without recompiling everything. The overhead of the missing "noreturn" attribute shoul be negletable. | |||||
2021-04-04 | configure_graphics: Prevent stack-use-after-scope | lat9nq | 1 | -1/+1 | |
Address Sanitizer reports stack-use-after-scope on line 231 `vulkan_devices.push_back(QString::fromStdString(name));`. Instead of using a pointer, copy the string into a std::string and use that, instead. | |||||
2021-04-02 | arm_dynarmic: Increase size of code cache | MerryMage | 2 | -0/+8 | |
2021-04-02 | HID: Fix SL and SR buttons for right joycon | german77 | 1 | -2/+6 | |
2021-03-31 | Use a single connection for UDP server, make connection test longer and check all pads instead of only the first one | german77 | 4 | -102/+101 | |
2021-03-31 | InputCommon: Name properly xbox 360 and one controllers, Fix mappings for Nintendo Pro controllers | german77 | 2 | -6/+24 | |
2021-03-30 | ISelfController: Stub SetAlbumImageTakenNotificationEnabled | Morph | 2 | -1/+17 | |
This service call sets an internal flag whether a notification is shown when an image is captured. Currently we do not support capturing images via the capture button, so this can be stubbed for now. | |||||
2021-03-30 | configuration: Add auto stub toggle that resets on boot | ameerj | 5 | -4/+32 | |
Auto-stub is an experimental debugging feature that may cause unforseen bugs. This adds a toggle to only allow auto-stubbing unimplemented functions when explicitly enabled when yuzu is launched. | |||||
2021-03-30 | service: Auto stub fallback | ameerj | 1 | -0/+4 | |
For simple services we can implement an automatic stub fallback to help with compatibility until a proper implementation is done. Co-Authored-By: Chloe <25727384+ognik5377@users.noreply.github.com> | |||||
2021-03-30 | nvdrv: Cleanup CDMA Processor on device closure | Chloe Marcec | 3 | -11/+15 | |
Brings us a step closer to unifying all channels to share a common interface. | |||||
2021-03-30 | Addressed issues | Chloe Marcec | 2 | -21/+22 | |
2021-03-30 | vulkan_common: enable OpenGL interop on other Unices | Jan Beich | 2 | -5/+5 | |
2021-03-27 | yuzu/main: Add user command line argument | german77 | 1 | -0/+28 | |
2021-03-27 | hle: kernel: Initialize preemption task after schedulers. | bunnei | 1 | -1/+1 | |
- Fixes a startup crash that occurs if CoreTiming tries to preempt before kernel initialization completes. | |||||
2021-03-27 | service: friend: Change logging class from ACC to Friend | Morph | 1 | -11/+12 | |
2021-03-27 | Friend: Stub GetPlayHistoryRegistrationKey | german77 | 1 | -1/+13 | |
2021-03-26 | HID: Initialize correctly the gesture finger_id and filter invalid results | Narr the Reg | 2 | -3/+13 | |
2021-03-26 | pctl: Rework how pctl works to be more accurate | Chloe Marcec | 6 | -31/+253 | |
Introduces the usage of compatibilities to allow it the module to be closer to how it works on hardware. | |||||
2021-03-25 | astc_decoder: Refactor for style and more efficient memory use | ameerj | 9 | -2256/+502 | |
2021-03-25 | nvdrv: Pass device fd and handle device create methods for device opening and closing | Chloe Marcec | 20 | -78/+161 | |
We pass the fd to the ioctl as well as alert the device when it's opened or closed to allow for fd unique actions to take place | |||||
2021-03-24 | gl_device: unblock async shaders on other Unix systems | Jan Beich | 1 | -1/+1 | |
Mesa is the primary OpenGL provider on all FreeDesktop systems. For example, iris is used on Intel GPU + FreeBSD by default. | |||||
2021-03-24 | arm_dynarmic: Always have a 'valid' jit instance | MerryMage | 4 | -53/+26 | |
2021-03-24 | hle: kernel: Breakup InitializeMemoryLayout. | bunnei | 1 | -3/+7 | |
2021-03-24 | hle: kernel: k_memory_region_type: Minor code cleanup. | bunnei | 1 | -13/+12 | |
2021-03-24 | hle: kernel: k_memory_region: Minor code cleanup. | bunnei | 1 | -7/+5 | |
2021-03-24 | hle: kernel: k_memory_layout: Use pair instead of tuple. | bunnei | 1 | -2/+4 | |
2021-03-24 | hle: kernel: k_system_control: Remove unnecessary inline. | bunnei | 1 | -4/+4 | |
2021-03-24 | common: common_sizes: Move sizes to the Common namespace. | bunnei | 5 | -45/+50 | |
2021-03-22 | nvdrv: Change InitializeEx to AllocAsEx | Chloe Marcec | 2 | -27/+49 | |
Wee also report the correct "big page size" now in GetVARegions & fix up the struct for IoctlAllocAsEx | |||||
2021-03-21 | hle: kernel: Merge KMemoryRegionAttr and KMemoryRegionType. | bunnei | 2 | -11/+9 | |
- Fixes clang errors with mixed enum arithmetic. | |||||
2021-03-21 | hle: kernel: Remove unused variable. | bunnei | 1 | -1/+0 | |
2021-03-21 | hle: kernel: k_memory_region_type: Remove extra ". | bunnei | 1 | -1/+1 | |
2021-03-21 | core: arm_dynarmic: Ensure JIT state is saved/restored on page table changes. | bunnei | 2 | -0/+10 | |
- We re-create the JIT here without preserving any state. | |||||
2021-03-21 | hle: kernel: k_memory_layout: Move KMemoryRegionAllocator out of global. | bunnei | 3 | -35/+47 | |
2021-03-21 | hle: kernel: k_memory_layout: Derive memory regions based on board layout. | bunnei | 6 | -56/+1033 | |
2021-03-21 | common: common_sizes: Move Invalid to Size_* prefix and add missing values. | bunnei | 2 | -15/+21 | |
2021-03-21 | hle: kernel: k_memory_region: Refactor to simplify code. | bunnei | 2 | -83/+89 | |
2021-03-21 | hle: kernel: board: k_system_control: Extend to include memory region sizes. | bunnei | 3 | -1/+135 | |
2021-03-21 | hle: kernel: board: Add secure_monitor module. | bunnei | 2 | -0/+27 | |
2021-03-21 | common: Move common sizes to their own header for code reuse. | bunnei | 3 | -13/+25 | |
2021-03-21 | hle: kernel: k_address_space_info: Cleanup. | bunnei | 1 | -9/+9 | |
2021-03-21 | hle: kernel: Add k_trace module. | bunnei | 2 | -0/+13 | |
2021-03-21 | hle: kernel: KSystemControl: Update to reflect board-specific behavior. | bunnei | 4 | -10/+41 | |
2021-03-21 | hle: kernel: KMemoryManager: Add CalculateManagementOverheadSize. | bunnei | 2 | -0/+26 | |
2021-03-21 | hle: kernel: KMemoryManager: Add aliases. | bunnei | 1 | -0/+4 | |
2021-03-21 | hle: kernel: Add architecture and board specific memory regions. | bunnei | 2 | -0/+72 | |
2021-03-21 | hle: kernel: KMemoryRegion: Derive region values. | bunnei | 1 | -0/+327 | |
2021-03-21 | hle: kernel: Migrate some code from Common::SpinLock to KSpinLock. | bunnei | 5 | -25/+25 | |
2021-03-21 | hle: kernel: Add initial KMemoryRegionType module. | bunnei | 3 | -18/+41 | |
2021-03-21 | hle: kernel: Move KMemoryRegion to its own module and update. | bunnei | 4 | -31/+322 | |
2021-03-21 | gl_device: Block async shaders on AMD and Intel | lat9nq | 1 | -1/+13 | |
Currently, the Windows versions of the Intel OpenGL driver and the AMD proprietary OpenGL driver do not properly support (or in fact degrade) when asynchronous shader compilation is enabled. This blocks specifically those drivers from using this feature. This affects AMDGPU-PRO on Linux, and AMD's and Intel's OpenGL drivers on Windows. | |||||
2021-03-20 | Fix cancelation of choose directory dialog | ivan-boikov | 1 | -1/+4 | |
2021-03-17 | IApplicationDisplayService: Stub GetIndirectLayerImageMap | Morph | 1 | -1/+27 | |
Used by games invoking the inline software keyboard such as GNOSIA | |||||
2021-03-16 | bsd: Avoid writing empty buffers | Morph | 1 | -2/+6 | |
Silences log spam on empty buffer writes | |||||
2021-03-14 | system_version: Update to 11.0.1 | Morph | 1 | -5/+5 | |
2021-03-14 | system_archive: Update NgWord archive version | Morph | 1 | -2/+2 | |
2021-03-13 | astc_decoder: Reimplement Layers | Rodrigo Locatti | 5 | -142/+161 | |
Reimplements the approach to decoding layers in the compute shader. Fixes multilayer astc decoding when using Vulkan. | |||||
2021-03-13 | astc_decoder: Fix out of bounds memory access | ameerj | 1 | -2/+10 | |
resolves a crash with some anamolous textures found in Astral Chain. | |||||
2021-03-13 | renderer_vulkan: Accelerate ASTC decoding | ameerj | 11 | -57/+426 | |
Co-Authored-By: Rodrigo Locatti <reinuseslisp@airmail.cc> | |||||
2021-03-13 | host_shaders: Modify shader cmake integration to allow for larger shaders | ameerj | 4 | -8/+27 | |
using a raw string to encapsulate the entire shader code limits us to shaders of size less than 2KB. This change overcomes this limitation. | |||||
2021-03-13 | renderer_opengl: Accelerate ASTC texture decoding with a compute shader | ameerj | 6 | -2/+1598 | |
ASTC texture decoding is currently handled by a CPU decoder for GPU's without native ASTC decoding support (most desktop GPUs). This is the cause for noticeable performance degradation in titles which use the format extensively. This commit adds support to accelerate ASTC decoding using a compute shader on OpenGL for GPUs without native support. | |||||
2021-03-13 | video_core: rasterizer_accelerated: Fix un/signed mismatch. | bunnei | 1 | -1/+2 | |
2021-03-11 | Fix casing on DeallocateAesKeySlot | zkitx | 1 | -3/+3 | |
2021-03-11 | Update SPL to fit N's service refactor (4.0.0+) which split into new services. | zkitx | 3 | -9/+178 | |
2021-03-10 | fiber: Double default stack size | MerryMage | 1 | -1/+1 | |
Stack overflow occurs with some guest applications | |||||
2021-03-10 | time: Fix CalculateSpanBetween implementation | Morph | 1 | -3/+9 | |
CalculateSpanBetween passes in the ClockSnapshots through 2 input buffers and not as raw arguments. Fix this by reading the 2 input buffers instead of popping raw arguments. Partially fixes Super Smash Bros. Ultimate's Spirit Board | |||||
2021-03-10 | time: Assign the current time point to the ClockSnapshot | Morph | 1 | -0/+2 | |
Fixes the timer in Super Smash Bros Ultimate's Spirit Board. | |||||
2021-03-07 | common: Fiber: use a reference for YieldTo. | bunnei | 5 | -34/+27 | |
- Fixes another small leak. | |||||
2021-03-07 | qt: Set DISPLAY env var when not present | Ani | 1 | -0/+9 | |
Fixes web browser opening (Help > Open Mods Page, Help > Open Quickstart Guide) | |||||
2021-03-06 | Enable mouse toggle buttons | german77 | 5 | -11/+65 | |
2021-03-06 | Add toggle button option for normal buttons | german | 1 | -0/+5 | |
2021-03-06 | common: fiber: Use weak_ptr when yielding. | bunnei | 2 | -8/+13 | |
- Avoids a memory leak, as taking a strong reference of the fiber here causes a circular reference. - Supersedes #6006 with a more narrow fix. | |||||
2021-03-06 | Enable button toggle for keyboard in the modifier button | german | 3 | -6/+44 | |
2021-03-06 | hle: kernel: KThread: Rework dummy threads & fix memory leak. | bunnei | 6 | -36/+65 | |
- Dummy threads are created on thread local storage for all host threads. - Fixes a leak by removing creation of fibers, which are not applicable here. | |||||
2021-03-06 | Revert "core: Switch to unique_ptr for usage of Common::Fiber." | bunnei | 10 | -58/+59 | |
2021-03-05 | aes_util: Remove malformed mbedtls_cipher_finish function call | Morph | 1 | -2/+0 | |
2021-03-05 | CMakeLists: Add /utf-8 compile option for MSVC | Morph | 1 | -0/+2 | |
Ensures that the source and execution character sets are in UTF-8 | |||||
2021-03-04 | texture_cache: Blacklist BGRA8 copies and views on OpenGL | ameerj | 9 | -28/+80 | |
In order to force the BGRA8 conversion on Nvidia using OpenGL, we need to forbid texture copies and views with other formats. This commit also adds a boolean relating to this, as this needs to be done only for the OpenGL api, Vulkan must remain unchanged. | |||||
2021-03-04 | renderer_opengl: Swizzle BGR textures on copy | ameerj | 5 | -2/+132 | |
OpenGL does not natively support BGR internal formats, which causes many BGR textures to render incorrectly, with Red and Blue channels swapped. This commit aims to address this by swizzling the blue and red channels on texture copies when a BGR format is encountered. | |||||
2021-03-03 | video_core: rasterizer_accelerated: Fix delta check ordering. | bunnei | 1 | -3/+3 | |
2021-03-03 | video_core: rasterizer_accelerated: Improve error handling & fix implicit conversion. | bunnei | 1 | -4/+8 | |
2021-03-03 | video_core: rasterizer_accelerated: Use a flat array instead of interval_map for cached pages. | bunnei | 2 | -44/+32 | |
- Uses a fixed 64MB for the cache instead of an ever growing map. - Slightly faster by using atomics instead of a single mutex for access. - Thanks for Rodrigo for the idea. | |||||
2021-03-02 | buffer_cache: Heuristically decide to skip cache on uniform buffers | ReinUsesLisp | 2 | -11/+37 | |
Some games benefit from skipping caches (Pokémon Sword), and others don't (Animal Crossing: New Horizons). Add an heuristic to decide this at runtime. The cache hit ratio has to be ~98% or better to not skip the cache. There are 16 frames of buffer. | |||||
2021-03-02 | core: Shutdown: Move kernel cleanup to later in shutdown. | bunnei | 1 | -12/+1 | |
- Fixes a shutdown crash due to a race condition with GPU still accessing memory. | |||||
2021-03-02 | Fix default bcat_backend init | Kelebek1 | 2 | -3/+3 | |
2021-03-01 | inputCommon: Use an unique client id for each socket instance | german | 4 | -19/+23 | |
2021-03-01 | gpu_thread: Remove Async NVDEC placeholders | ameerj | 3 | -26/+8 | |
This commit removes early placeholders for an implementation of async nvdec. With recent changes to the source code, the placeholders are no longer accurate, and can cause a nullptr dereference due to the nature of the cdma_pusher lifetime. | |||||
2021-02-28 | [network] Error handling reform | comex | 6 | -111/+147 | |
`network.cpp` has several error paths which either: - report "Unhandled host socket error=n" and return `SUCCESS`, or - switch on a few possible errors, log them, and translate them to Errno; the same switch statement is copied and pasted in multiple places in the code Convert these paths to use a helper function `GetAndLogLastError`, which is roughly the equivalent of one of the switch statements, but: - handling more cases (both ones that were already in `Errno`, and a few more I added), and - using OS functions to convert the error to a string when logging, so it'll describe the error even if it's not one of the ones in the switch statement. - To handle this, refactor the logic in `GetLastErrorMsg` to expose a new function `NativeErrorToString` which takes the error number explicitly as an argument. And improve the Windows version a bit. Also, add a test which exercises two random error paths. | |||||
2021-02-28 | Implements touch, pan, pinch and rotation gestures | german | 2 | -11/+240 | |
2021-02-28 | inputCommon: Mouse fixes | german77 | 9 | -25/+89 | |
2021-02-27 | core: hle: ldn: Error out on call to Initialization. | bunnei | 1 | -1/+1 | |
- Since we do not emulate LDN, returning an error here makes more sense. | |||||
2021-02-27 | core: Switch to unique_ptr for usage of Common::Fiber. | bunnei | 10 | -59/+58 | |
- With using unique_ptr instead of shared_ptr, we have more explicit ownership of the context. - Fixes a memory leak due to circular reference of the shared pointer. | |||||
2021-02-24 | Implement glDepthRangeIndexeddNV | Kelebek1 | 3 | -1/+12 | |
2021-02-23 | vk_command_pool: Reduce the command pool size from 4096 to 4 | ReinUsesLisp | 1 | -1/+1 | |
This allows drivers to reuse memory more easily and preallocate less. The optimal number has been measured booting Pokémon Sword. | |||||
2021-02-23 | video_core: add missing header after 468bd9c1b0f9 | Jan Beich | 1 | -0/+1 | |
src/video_core/shader_notify.cpp: In member function 'void VideoCore::ShaderNotify::MarkShaderComplete()': src/video_core/shader_notify.cpp:33:10: error: 'unique_lock' is not a member of 'std' 33 | std::unique_lock lock{mutex}; | ^~~~~~~~~~~ src/video_core/shader_notify.cpp:6:1: note: 'std::unique_lock' is defined in header '<mutex>'; did you forget to '#include <mutex>'? 5 | #include "video_core/shader_notify.h" +++ |+#include <mutex> 6 | src/video_core/shader_notify.cpp: In member function 'void VideoCore::ShaderNotify::MarkSharderBuilding()': src/video_core/shader_notify.cpp:38:10: error: 'unique_lock' is not a member of 'std' 38 | std::unique_lock lock{mutex}; | ^~~~~~~~~~~ src/video_core/shader_notify.cpp:38:10: note: 'std::unique_lock' is defined in header '<mutex>'; did you forget to '#include <mutex>'? | |||||
2021-02-23 | common: add missing header after f3805376f726 | Jan Beich | 1 | -0/+1 | |
In file included from src/video_core/dma_pusher.cpp:5: src/./common/cityhash.h:69:47: error: 'size_t' has not been declared 69 | [[nodiscard]] u64 CityHash64(const char* buf, size_t len); | ^~~~~~ src/./common/cityhash.h:73:55: error: 'size_t' has not been declared 73 | [[nodiscard]] u64 CityHash64WithSeed(const char* buf, size_t len, u64 seed); | ^~~~~~ src/./common/cityhash.h:77:56: error: 'size_t' has not been declared 77 | [[nodiscard]] u64 CityHash64WithSeeds(const char* buf, size_t len, u64 seed0, u64 seed1); | ^~~~~~ src/./common/cityhash.h:80:47: error: 'size_t' has not been declared 80 | [[nodiscard]] u128 CityHash128(const char* s, size_t len); | ^~~~~~ src/./common/cityhash.h:84:55: error: 'size_t' has not been declared 84 | [[nodiscard]] u128 CityHash128WithSeed(const char* s, size_t len, u128 seed); | ^~~~~~ | |||||
2021-02-21 | hid: Implement GameCube Controller Vibrations | Morph | 2 | -3/+130 | |
Implements both SendVibrationGcErmCommand and GetActualVibrationGcErmCommand, and modifies GetVibrationDeviceInfo to account for additional controllers. | |||||
2021-02-21 | acc: Stub GetNintendoAccountUserResourceCacheForApplication | Morph | 1 | -1/+17 | |
This command returns a Nintendo Account ID and writes 2 output buffers. The first output buffer is a NasUserBaseForApplication and the second output buffer is currently empty. Used by: - Pokken Tournament DX - Super Smash Bros. Ultimate - Super Nintendo Entertainment System - Nintendo Switch Online - Mario Kart 8 Deluxe | |||||
2021-02-21 | kernel: Fix resource release exception on exit | ameerj | 4 | -2/+16 | |
After rewriting the resource limit, objects releasing reserved resources require a live kernel instance. This commit fixes exceptions that occur due to the kernel being destroyed before some objects released their resources, allowing for a graceful exit. | |||||
2021-02-20 | gl_disk_shader_cache: Log total shader entries count on game load | Morph | 1 | -0/+4 | |
2021-02-20 | common: wall_clock: Fix integer overflow with StandardWallClock. | bunnei | 2 | -7/+28 | |
- Previous optimized impl. resulted in an integer overflow, so revert. - This is our slow/fallback path that should never be really be used, so the optimization in unimportant. | |||||
2021-02-19 | hle: kernel: Migrate PageHeap/PageTable to KPageHeap/KPageTable. | bunnei | 24 | -147/+131 | |
2021-02-19 | hle: kernel: Migrate MemoryManager to KMemoryManager. | bunnei | 8 | -47/+48 | |
2021-02-19 | hle: kernel: Migrate PageLinkedList to KPageLinkedList. | bunnei | 8 | -38/+41 | |
2021-02-19 | hle: kernel: Migrate to KMemoryBlock, KMemoryBlockManager, and others. | bunnei | 18 | -476/+479 | |
2021-02-19 | hle: kernel: Migrate SlabHeap to KSlabHeap. | bunnei | 4 | -22/+21 | |
2021-02-19 | hle: kernel: Migrate MemoryLayout to KMemoryLayout. | bunnei | 5 | -31/+30 | |
2021-02-19 | hle: kernel: Migrate AddressSpaceInfo to KAddressSpaceInfo. | bunnei | 4 | -59/+54 | |
2021-02-19 | hle: kernel: memory_manager: Rename AllocateContinuous to AllocateContinuous. | bunnei | 2 | -4/+28 | |
2021-02-19 | hle: kernel: KSystemControl does not belong in Memory namespace. | bunnei | 7 | -31/+38 | |
2021-02-19 | hle: kernel: memory: PageHeap: Migrate to KPageBitmap class. | bunnei | 4 | -197/+23 | |
2021-02-19 | hle: kernel: Add KPageBitmap class. | bunnei | 2 | -0/+280 | |
2021-02-19 | hle: kernel: system_control: Add function GenerateRandomU64. | bunnei | 2 | -3/+5 | |
2021-02-19 | common: Add implementation of TinyMT (Mersenne Twister RNG). | bunnei | 2 | -0/+251 | |
2021-02-19 | hle: kernel: Add KSpinLock implementation. | bunnei | 3 | -0/+89 | |
2021-02-19 | core: memory: Add templated GetPointer methods. | bunnei | 1 | -0/+10 | |
2021-02-19 | common: alignment: Add DivideUp utility method. | bunnei | 1 | -0/+5 | |
2021-02-19 | hle: kernel: Rename SharedMemory to KSharedMemory. | bunnei | 13 | -54/+54 | |
2021-02-18 | Revert "Port citra-emu/citra#5123: "SDL: Disable hidapi drivers due to compatibility problems with certain controllers"" | Morph | 1 | -7/+0 | |
2021-02-18 | common/cityhash: Use common types | ReinUsesLisp | 3 | -116/+100 | |
Allow sharing return types with the rest of the code base. For example, we use 'u128 = std::array<u64, 2>', meanwhile Google's code uses 'uint128 = std::pair<u64, u64>'. While we are at it, use size_t instead of std::size_t. | |||||
2021-02-18 | tests: Add tests for CityHash | ReinUsesLisp | 2 | -0/+23 | |
2021-02-16 | vk_rasterizer: Fix loading shader addresses twice | ReinUsesLisp | 1 | -1/+0 | |
This was recently introduced on a wrongly rebased commit. | |||||
2021-02-15 | core: core_timing_util: Optimize core timing math. | bunnei | 3 | -98/+48 | |
- Avoids a lot of unnecessary 128-bit math for imperceptible accuracy. | |||||
2021-02-15 | common: wall_clock: Optimize GetClockCycles/GetCPUCycles to use a single MUL instruction. | bunnei | 1 | -8/+9 | |
2021-02-15 | common: Merge uint128 to a single header file with inlines. | bunnei | 4 | -135/+84 | |
2021-02-15 | core/CMakeLists: Add web_types.h | Morph | 1 | -0/+1 | |
2021-02-15 | Review 1 | Kelebek1 | 2 | -3/+3 | |
2021-02-15 | Implement texture offset support for TexelFetch and TextureGather and add offsets for Tlds | Kelebek1 | 3 | -9/+34 | |
Formatting | |||||
2021-02-14 | debugger: controller: Add access key | lat9nq | 1 | -1/+1 | |
Adds the access key to the Controller P1 selection at View -> Debugger -> Controller P1. Avoids using the windowTitle as that would add a literal & to the beginning of the window title. | |||||
2021-02-14 | yuzu: Various frontend improvements to avoid crashes and improve experience on Linux. | bunnei | 10 | -10/+52 | |
2021-02-14 | hle: service: ldn: IUserLocalCommunicationService: Improve the stub. | bunnei | 1 | -5/+29 | |
2021-02-14 | Improve mouse panning | german | 1 | -5/+21 | |
2021-02-14 | hle: service: ldn: IUserLocalCommunicationService: Indicate that LDN is disabled. | bunnei | 3 | -3/+19 | |
- Fixes crash on Pokemon Sword/Shield when pressing 'Y'. | |||||
2021-02-14 | hle: service: am: IStorageAccessor: Fix out of bounds error handling. | bunnei | 1 | -6/+7 | |
2021-02-13 | vk_resource_pool: Load GPU tick once and compare with it | ReinUsesLisp | 2 | -8/+8 | |
Other minor style improvements. Rename free_iterator to hint_iterator, to describe better what it does. | |||||
2021-02-13 | vk_update_descriptor: Inline and improve code for binding buffers | ReinUsesLisp | 4 | -24/+24 | |
Allow compilers with our settings inline hot code. | |||||
2021-02-13 | fixed_pipeline_cache: Use dirty flags to lazily update key | ReinUsesLisp | 7 | -56/+103 | |
Use dirty flags to avoid building pipeline key from scratch on each draw call. This saves a bit of unnecesary work on each draw call. | |||||
2021-02-13 | gl_texture_cache: Lazily create non-sRGB texture views for sRGB formats | ameerj | 3 | -7/+41 | |
This creates non-sRGB texture views for sRGB texture formats to allow for interfacing with these views in compute shaders using imageLoad and imageStore. Co-Authored-By: Rodrigo Locatti <reinuseslisp@airmail.cc> | |||||
2021-02-13 | rebase, fix name shadowing, more const | ameerj | 4 | -11/+10 | |
2021-02-13 | Address PR feedback | ameerj | 4 | -12/+7 | |
Co-Authored-By: LC <712067+lioncash@users.noreply.github.com> | |||||
2021-02-13 | streamline cdma_pusher/command_classes | ameerj | 1 | -13/+5 | |
2021-02-13 | streamline cdma_pusher/command_classes | ameerj | 5 | -85/+34 | |
2021-02-13 | nvdec cleanup | ameerj | 8 | -43/+38 | |
2021-02-13 | vk_master_semaphore: Mark gpu_tick atomic operations with relaxed order | ReinUsesLisp | 1 | -4/+4 | |
2021-02-13 | vk_staging_buffer_pool: Inline tick tests | ReinUsesLisp | 2 | -1/+7 | |
Load the current tick to a local variable, moving it out of an atomic and allowing us to compare the value without going through a pointer each time. This should make the loop more optimizable. | |||||
2021-02-13 | gl_stream_buffer/vk_staging_buffer_pool: Fix size check | ReinUsesLisp | 2 | -2/+2 | |
Fix a tragic off-by-one condition that causes Vulkan's stream buffer to think it's always full, using fallback memory. The OpenGL was also affected by this bug to a lesser extent. | |||||
2021-02-13 | vulkan_device: Require VK_EXT_robustness2 | ReinUsesLisp | 2 | -37/+14 | |
We are already using robustness2 features without requiring it explicitly, causing potential crashes on drivers without the extension. Requiring this at boot allows better diagnostics for it and formalizes our usage on the extension. | |||||
2021-02-13 | config: Make high GPU accuracy the default | ReinUsesLisp | 2 | -3/+3 | |
This is a better default for most games, yielding better performance and less graphical issues. | |||||
2021-02-13 | video_core: Fix clang build issues | ReinUsesLisp | 2 | -8/+5 | |
2021-02-13 | vk_staging_buffer_pool: Fix softlock when stream buffer overflows | ReinUsesLisp | 2 | -19/+20 | |
There was still a code path that could wait on a timeline semaphore tick that would never be signalled. While we are at it, make use of more STL algorithms. | |||||
2021-02-13 | vk_buffer_cache: Add support for null index buffers | ReinUsesLisp | 2 | -4/+40 | |
Games can bind a null index buffer (size=0) where all indices are evaluated as zero. VK_EXT_robustness2 doesn't support this and all drivers segfault when a null index buffer is passed to vkCmdBindIndexBuffer. Workaround this by creating a 4 byte buffer and filling it with zeroes. If it's read out of bounds, robustness takes care of returning zeroes as indices. | |||||
2021-02-13 | buffer_cache: Add extra bytes to guest SSBOs | ReinUsesLisp | 1 | -1/+7 | |
Bind extra bytes beyond the guest API's bound range. This is due to some games like Astral Chain operating out of bounds. Binding the whole map range would be technically correct, but games have large maps that make this approach unaffordable for now. | |||||
2021-02-13 | Merge branch 'bytes-to-map-end' into new-bufcache-wip | ReinUsesLisp | 1 | -0/+2 | |
2021-02-13 | vk_staging_buffer_pool: Get a staging buffer instead of waiting | ReinUsesLisp | 2 | -9/+18 | |
Avoids waiting idle while the GPU finishes to do work, and fixes an issue where we'd wait forever if a single command buffer (logic tick) all the data. | |||||
2021-02-13 | yuzu/config: Disable assembly shaders by default | ReinUsesLisp | 1 | -2/+2 | |
Due to BindBufferRangeNV limitations and poor quality code emission from our side, assembly shaders are currently slower than GLSL. Their build time and feature advantages are still relevant, but they are outweighted by their runtime performance. | |||||
2021-02-13 | renderer_opengl: Remove interop | ReinUsesLisp | 8 | -122/+10 | |
Remove unused interop code from the OpenGL backend. | |||||
2021-02-13 | gl_buffer_cache: Drop interop based parameter buffer workarounds | ReinUsesLisp | 3 | -65/+45 | |
Sacrify runtime performance to avoid generating kernel exceptions on Windows due to our abusive aliasing of interop buffer objects. | |||||
2021-02-13 | buffer_cache: Heuristically detect stream buffers | ReinUsesLisp | 2 | -6/+33 | |
Detect when a memory region has been joined several times and increase the size of the created buffer on those instances. The buffer is assumed to be a "stream buffer", increasing its size should stop us from constantly recreating it and fragmenting memory. | |||||
2021-02-13 | buffer_cache: Split CreateBuffer in separate functions | ReinUsesLisp | 1 | -29/+52 | |
Allow adding functionality to each function without making CreateBuffer more complex. | |||||
2021-02-13 | buffer_cache: Skip cache on small uploads on Vulkan | ReinUsesLisp | 3 | -9/+18 | |
Ports from OpenGL the optimization to skip small 3D uniform buffer uploads. This will take advantage of the previously introduced stream buffer. Fixes instances where the staging buffer offset was being ignored. | |||||
2021-02-13 | vk_staging_buffer_pool: Add stream buffer for small uploads | ReinUsesLisp | 15 | -127/+298 | |
This uses a ring buffer similar to OpenGL's stream buffer for small uploads. This stops us from allocating several small buffers, reducing memory fragmentation and cache locality. It uses dedicated allocations when possible. | |||||
2021-02-13 | vulkan_device: Enable robustBufferAccess | ReinUsesLisp | 1 | -1/+2 | |
Fix regression on Pascal on Animal Crossing: New Horizons, fixing a validation error. | |||||
2021-02-13 | video_core: Reimplement the buffer cache | ReinUsesLisp | 67 | -2607/+2514 | |
Reimplement the buffer cache using cached bindings and page level granularity for modification tracking. This also drops the usage of shared pointers and virtual functions from the cache. - Bindings are cached, allowing to skip work when the game changes few bits between draws. - OpenGL Assembly shaders no longer copy when a region has been modified from the GPU to emulate constant buffers, instead GL_EXT_memory_object is used to alias sub-buffers within the same allocation. - OpenGL Assembly shaders stream constant buffer data using glProgramBufferParametersIuivNV, from NV_parameter_buffer_object. In theory this should save one hash table resolve inside the driver compared to glBufferSubData. - A new OpenGL stream buffer is implemented based on fences for drivers that are not Nvidia's proprietary, due to their low performance on partial glBufferSubData calls synchronized with 3D rendering (that some games use a lot). - Most optimizations are shared between APIs now, allowing Vulkan to cache more bindings than before, skipping unnecesarry work. This commit adds the necessary infrastructure to use Vulkan object from OpenGL. Overall, it improves performance and fixes some bugs present on the old cache. There are still some edge cases hit by some games that harm performance on some vendors, this are planned to be fixed in later commits. | |||||
2021-02-13 | vulkan_common: Expose interop and headless devices | ReinUsesLisp | 4 | -21/+100 | |
2021-02-13 | vulkan_common: Make interop extensions mandatory | ReinUsesLisp | 1 | -0/+6 | |
2021-02-13 | vulkan_device: Enable robust buffers | ReinUsesLisp | 1 | -2/+4 | |
2021-02-13 | vulkan_device: Use designated initializers for features | ReinUsesLisp | 1 | -60/+59 | |
2021-02-13 | vulkan_wrapper: Add memory barrier pipeline barrier helper | ReinUsesLisp | 1 | -0/+6 | |
2021-02-13 | vulkan_device: Fix formatting of constants | ReinUsesLisp | 1 | -10/+6 | |
2021-02-13 | vulkan_wrapper: Add interop functions | ReinUsesLisp | 2 | -1/+41 | |
2021-02-13 | vulkan_instance: Initialize Vulkan instance in a separate thread | ReinUsesLisp | 1 | -1/+5 | |
Workaround an issue on Nvidia where creating a Vulkan instance from an active OpenGL thread disables threaded optimization on the driver. This optimization is important to have good performance on Nvidia OpenGL. | |||||
2021-02-13 | vulkan_wrapper: Pull Windows symbols | ReinUsesLisp | 2 | -0/+14 | |
2021-02-13 | gpu: Report renderer errors with exceptions | ReinUsesLisp | 27 | -232/+176 | |
Instead of using a two step initialization to report errors, initialize the GPU renderer and rasterizer on the constructor and report errors through std::runtime_error. | |||||
2021-02-13 | tests/buffer_base: Add cached CPU writes tests | ReinUsesLisp | 1 | -0/+76 | |
Ensure the behavior of the previous commit in tests. | |||||
2021-02-13 | buffer_base: Add support for cached CPU writes | ReinUsesLisp | 1 | -61/+145 | |
Some games usually write memory pages currently used by the GPU, causing rendering issues (e.g. flashing geometry and shadows on Link's Awakening). To workaround this issue, Guest CPU writes are delayed until the command buffer finishes processing, but the pages are updated immediately. The overall behavior is: - CPU writes are cached until they are flushed, they update the page state, but don't change the modification state. Cached writes stop pages from being flushed, in case games have meaningful data in it. - Command processing writes (e.g. push constants) update the page state and are marked to the command processor as dirty. They don't remove the state of cached writes. | |||||
2021-02-13 | maxwell_to_gl: Remove unused code | ameerj | 2 | -36/+3 | |
Removes unused declarations in maxwell_to_gl.h | |||||
2021-02-13 | revert to std::sin and std::cos | Chloe Marcec | 3 | -6/+6 | |
2021-02-13 | address issues | Chloe Marcec | 3 | -22/+25 | |
2021-02-13 | audren: Implement I3dl2Reverb | Chloe Marcec | 8 | -18/+569 | |
Most notable fix is the voices in Fire Emblem Three Houses | |||||
2021-02-13 | kernel: More accurately reserve and release resources | ameerj | 6 | -14/+42 | |
2021-02-13 | kernel: KScopedReservation implementation | ameerj | 6 | -26/+152 | |
This implements KScopedReservation, allowing resource limit reservations to be more HW accurate, and release upon failure without requiring too many conditionals. | |||||
2021-02-13 | kernel: Unify result codes (#5890) | Chloe | 21 | -256/+223 | |
* kernel: Unify result codes Drop the usage of ERR_NAME convention in kernel for ResultName. Removed seperation between svc_results.h & errors.h as we mainly include both most of the time anyways. * oops * rename errors to svc_results | |||||
2021-02-12 | yuzu: Create screenshot path before capture | lat9nq | 1 | -0/+5 | |
Allows screenshots in cases where the screenshots path doesn't already exist. | |||||
2021-02-11 | software_keyboard: Implement Finalize request command | Morph | 1 | -0/+4 | |
2021-02-10 | configure_input_player_widget: Silence unused variable warnings | lat9nq | 1 | -7/+0 | |
Prevents clang 11 from throwing an error since these variables are unused. | |||||
2021-02-10 | common: Add -fsized-deallocation as a Clang flag | lat9nq | 1 | -0/+2 | |
Prevents an operator delete error when compiling with Clang 11. | |||||
2021-02-10 | core: Add -fsized-dealloction as a Clang flag | lat9nq | 1 | -0/+2 | |
Prevents a operator delete error when compiling with Clang 11. | |||||
2021-02-09 | bsd: Remove usage of optional emplace() with no arguments | Lioncash | 1 | -2/+4 | |
Clang 12 currently falls over in the face of this. | |||||
2021-02-09 | am/controller: Remove [[fallthrough]] from unreachable path | Lioncash | 1 | -1/+2 | |
Prevents warnings on clang 12. This path is reachable on other variations of the build that disable the unreachable macro. | |||||
2021-02-09 | nfp: Correct uninitialized size being used within GetTagInfo() | Lioncash | 1 | -1/+1 | |
We were previously the name of the object being initialized within its own initializer, which results in uninitialized data being read. | |||||
2021-02-09 | udp: Silence unused member variable warnings | Lioncash | 1 | -2/+2 | |
Simply mark them as unused for now. | |||||
2021-02-09 | udp/client: Define ClientData constructor/destructor in cpp file | Lioncash | 2 | -0/+7 | |
Prevents compilation errors on clang 12 due to incomplete types within a unique_ptr member. | |||||
2021-02-09 | gl_rasterizer: Remove unused variables | Lioncash | 1 | -3/+0 | |
Resolves warnings on clang 12 | |||||
2021-02-09 | texture_cache/util: Remove unused functions | Lioncash | 1 | -34/+0 | |
Silences a few warnings on clang 12. | |||||
2021-02-09 | configure_input_player_widget: Reduce duplication of array accessors where applicable | Lioncash | 1 | -108/+125 | |
Reduces the amount of code to read in expressions a little bit by separating constituents out a little. | |||||
2021-02-09 | configure_input_player_widget: Avoid nontrivial copies where applicable | Lioncash | 2 | -5/+6 | |
Previously a function was copying an array of 20 std::string instances by value. | |||||
2021-02-09 | Use GC image | german | 1 | -0/+3 | |
2021-02-09 | Settings: Add depth to Joysticks on Pro Controller preview (#5894) | Jatoxo | 2 | -6/+30 | |
* Add some depth to ProJoysticks * address comments * clang * address nits * fix wrong inner_offset when offset.x was 0 | |||||
2021-02-08 | string_util: Remove MSVC workaround for converting between UTF8/UTF16 | Morph | 1 | -14/+0 | |
This has been fixed as of Visual Studio 2019 Version 16.2 | |||||
2021-02-08 | hid: Implement GC controller | german | 7 | -6/+206 | |
2021-02-08 | olsc: Stub GetSaveDataBackupSetting | german | 1 | -1/+12 | |
2021-02-08 | Add mouse panning | german | 11 | -38/+149 | |
2021-02-08 | video_core: Delete morton | Chloe Marcec | 3 | -2/+0 | |
moron.h & morton.cpp are not used anywhere and are just empty files | |||||
2021-02-07 | renderer_opengl: Update OpenGL backend version requirement to 4.6 | Morph | 3 | -42/+17 | |
2021-02-07 | lm: Fix ReadLeb128 | Chloe Marcec | 1 | -7/+9 | |
Fixes assertion on Bloodstained Ritual of the Night. We would over read sometimes, this is fixed by checking if the top bit is set in the first iteration. We also lock the loop off to be only the max size of the type we can fit. Finally we changed an incorrect print of "DEBUG" to "TRACE" to reflect the proper log severity | |||||
2021-02-07 | Add GC controller animation | german | 2 | -52/+429 | |
2021-02-06 | ring_buffer: Remove granularity template argument | MerryMage | 2 | -16/+15 | |
Non-obvious bug in RingBuffer::Push(std::vector<T>&) when granularity != 1 Just remove it altogether because we do not have a use for granularity != 1 | |||||
2021-02-06 | pl_u: Fix read out of bounds | Alessandro Astone | 1 | -2/+7 | |
2021-02-06 | Refresh debug controller settings | german | 4 | -10/+18 | |
2021-02-06 | Refresh controller only when necessary | german | 2 | -15/+37 | |
2021-02-06 | Add SL SR vectors, change dual joycon view, add missing raw data from keyboard/mouse | german | 4 | -178/+247 | |
2021-02-06 | Add controller window and single joycon top view | german | 7 | -29/+391 | |
2021-02-06 | Replace text with vectors | german | 2 | -77/+306 | |
2021-02-06 | Make settings controller image change with controller input | german | 9 | -75/+2076 | |
2021-02-06 | k_address_arbiter: Unfold R_UNLESS macros | Lioncash | 1 | -5/+8 | |
Allows for more descriptive error messages and also doesn't hide control-path exit returns from the reader. | |||||
2021-02-06 | k_address_arbiter: Remove unnecessary usages of std::addressof | Lioncash | 1 | -10/+10 | |
This is a useful function in a generic context or with types that overload unary operator&. However, primitives and pointers will never do this, so we can opt for a more straightforward syntax. | |||||
2021-02-06 | k_address_arbiter: Remove dead code | Lioncash | 1 | -40/+13 | |
This code is never used, so we can remove it. It's in version control, so it can always be brought back when needed. | |||||
2021-02-06 | svc: Provide more detailed error logs for svc functions | Lioncash | 1 | -59/+188 | |
Allows SVC calls to have much more informative information during error cases. This also doesn't hide control flow returns from the reader. | |||||
2021-02-05 | hle: kernel: Drop R_UNLESS_NOLOG in favor of expanded if-statement. | bunnei | 3 | -11/+11 | |
2021-02-05 | hle: kernel: KAddressArbiter: Remove noisy error log. | bunnei | 1 | -1/+1 | |
2021-02-05 | hle: kernel: svc: Cleanup KEvent/KReadableEvent/KWritableEvent SVCs. | bunnei | 5 | -69/+89 | |
2021-02-05 | common: scope_exit: Add a cancellable ScopeExit macro. | bunnei | 1 | -0/+6 | |
2021-02-05 | hle: kernel: Reimplement KReadableEvent and KWritableEvent. | bunnei | 38 | -298/+341 | |
2021-02-05 | hle: kernel: Implement KEvent. | bunnei | 3 | -0/+91 | |
2021-02-05 | hle: kernel: KAddressArbiter: Use R_UNLESS_NOLOG where applicable. | bunnei | 1 | -1/+1 | |
2021-02-05 | common: common_funcs: Add R_UNLESS_NOLOG for scenarios that should not log. | bunnei | 1 | -0/+8 | |
2021-02-05 | hle: kernel: Rename WritableEvent to KWritableEvent. | bunnei | 44 | -101/+101 | |
2021-02-05 | hle: kernel: Rename ReadableEvent to KReadableEvent. | bunnei | 42 | -81/+82 | |
2021-02-05 | Address reviewer comments | lat9nq | 1 | -1/+1 | |
2021-02-05 | CMake: Port citra-emu/citra FindFFmpeg.cmake | lat9nq | 1 | -2/+2 | |
Also renames related CMake variables to match both the Find*FFmpeg* and variables defined within the file. Fixes odd errors produced by the old FindFFmpeg. Citra's FindFFmpeg is slightly modified here: adds Citra's copyright at the beginning, renames FFmpeg_INCLUDES to FFmpeg_INCLUDE_DIR, disables a few components in _FFmpeg_ALL_COMPONENTS, and adds the missing avutil component to the comment above. | |||||
2021-02-05 | CMake: Implement YUZU_USE_BUNDLED_FFMPEG | lat9nq | 2 | -7/+6 | |
For Linux, instructs CMake to use the FFmpeg submodule in externals. This is HEAVILY based on our usage of the late Unicorn. Minimal change to MSVC as it uses the yuzu-emu/ext-windows-bin. MinGW now targets the same ext-windows-bin libraries as MSVC for FFmpeg. Adds FFMPEG_LIBRARIES to WIN32 and simplifies video_core/CMakeLists.txt a bit. | |||||
2021-02-04 | k_affinity_mask: Avoid implicit truncation to bool | Lioncash | 1 | -1/+1 | |
This can cause compiler warnings. Instead, we can explicitly add a boolean expression around it to naturally turn the result into a bool. | |||||
2021-02-04 | k_priority_queue: Unfold several declval usages | Lioncash | 1 | -5/+5 | |
Given these are only used as function existence checks, we can simplify some usages of declval, given they aren't particularly useful here. Reduces a few template instantiations, which at most reduces compile times a tiny bit. | |||||
2021-02-04 | k_priority_queue: Simplify affinity mask type alias | Lioncash | 1 | -2/+2 | |
We can make use of the _t variants of the templates to cut down on a little bit of verbosity. | |||||
2021-02-04 | k_priority_queue: Resolved reserved identifier | Lioncash | 1 | -2/+2 | |
An identifier containing a starting underscore followed by a capital letter is reserved by the standard. It's trivial to avoid this by moving the underscore to the end of the identifier. While the likelihood of clashing here being minimal, we can turn a "should not break" scenario into a definitive "will not break" one, so why not?. | |||||
2021-02-04 | key_manager: Create the keys directory if it does not exist | Morph | 1 | -0/+5 | |
2021-02-04 | Add footer types and address comments | german | 7 | -58/+106 | |
2021-02-04 | Fix npad struct to match switchbrew | german | 4 | -106/+135 | |
2021-02-04 | Adds missing controller types and properties | german | 9 | -30/+191 | |
2021-02-04 | Always update handheld config | german | 1 | -4/+2 | |
2021-02-03 | Simplify limitableresource names | Chloe Marcec | 6 | -36/+29 | |
2021-02-02 | Prevent over scheduling audio events and terminate properly the motion update event | german | 2 | -1/+9 | |
2021-02-02 | IApplicationFunctions: Implement GetHealthWarningDisappearedSystemEvent | Morph | 2 | -1/+14 | |
2021-02-02 | settings: Log the cache, config, and mod load directories | Morph | 1 | -0/+3 | |
2021-02-02 | video_core: host_shaders: Don't pass --quiet to glslangValidator if unavailable | lat9nq | 1 | -1/+19 | |
Prevents CMake from calling `glslangValidator` with `--quiet` when it is not available, i.e. on older downstream versions from Ubuntu. | |||||
2021-02-02 | Compile error | Chloe Marcec | 1 | -1/+1 | |
2021-02-02 | Address issues | Chloe Marcec | 3 | -19/+15 | |
2021-02-01 | arm_dynarmic_32: Print out CPSR.T on exception | MerryMage | 2 | -2/+7 | |
2021-02-01 | audren: Disable reverb for the time being | Chloe Marcec | 1 | -1/+4 | |
As this is causing issues in a few games, it's best to have it disabled until it's completely implemented | |||||
2021-02-01 | Only update motion for npad and prevent over scheduling events | german | 1 | -2/+11 | |
2021-01-31 | nifm: Stub GetCurrentIpConfigInfo | Morph | 1 | -1/+29 | |
- Used by Lets Sing 12 | |||||
2021-01-31 | prepo: Stub GetTransmissionStatus | Morph | 1 | -1/+11 | |
2021-01-31 | prepo: Stub RequestImmediateTransmission | Morph | 1 | -1/+8 | |
- Used by Animal Crossing: New Horizons | |||||
2021-01-31 | nifm: Stub GetCurrentNetworkProfile | Morph | 1 | -1/+41 | |
- Used by Minecraft Bedrock Edition - Used by Bloons TD 5 | |||||
2021-01-31 | nifm: Add several structs | Morph | 1 | -0/+87 | |
2021-01-31 | am/IApplicationFunctions: Stub IsGamePlayRecordingSupported | Morph | 2 | -1/+12 | |
Used by RetroArch | |||||
2021-01-31 | bsd: Fix EventFd stub | Morph | 1 | -3/+3 | |
2021-01-31 | nifm: Fix GetAppletInfo stub | Morph | 1 | -1/+5 | |
2021-01-31 | bsd: Fix GetSockOpt stub | Morph | 1 | -1/+5 | |
2021-01-31 | bsd: Stub EventFd | ameerj | 2 | -1/+12 | |
Used by Family Feud | |||||
2021-01-31 | am: Stub TryPopFromFriendInvitationStorageChannel | ameerj | 2 | -1/+10 | |
Used by Family Feud | |||||
2021-01-30 | fix compile error | Chloe Marcec | 1 | -1/+1 | |
2021-01-30 | cleanup commenting | Chloe Marcec | 1 | -2/+2 | |
2021-01-30 | Drop m_ from lock | Chloe Marcec | 2 | -9/+9 | |
2021-01-30 | Move to GetGlobalTimeNs, fix GetTotalPhysicalMemoryAvailable | Chloe Marcec | 3 | -9/+7 | |
2021-01-30 | kernel: Rewrite resource limit to be more accurate | Chloe Marcec | 13 | -231/+357 | |
Matches closer to hardware | |||||
2021-01-30 | Stub GetSystemSessionId | german | 1 | -1/+10 | |
2021-01-30 | analog_from_button: Fix update_thread.join exception | ameerj | 1 | -5/+9 | |
This commit aims to address an exception that occurs when trying to join the Analog object's update_thread. By using an atomic bool for the status of the update thread, we ensure its value is consistent across the threads accessing it. | |||||
2021-01-29 | hle: kernel: KLightLock: Fix several bugs. | bunnei | 1 | -3/+3 | |
2021-01-29 | common: common_funcs: Change R_UNLESS to LOG_ERROR. | bunnei | 1 | -1/+1 | |
2021-01-29 | arm: dynarmic: Reintroduce JIT checks on SaveContext/LoadContext. | bunnei | 2 | -0/+12 | |
2021-01-29 | hle: kernel: KThread: Release thread resource on thread exit. | bunnei | 1 | -0/+1 | |
2021-01-29 | yuzu: debugger: Ignore HLE threads. | bunnei | 3 | -9/+21 | |
2021-01-29 | hle: kernel: process: Add state lock. | bunnei | 3 | -6/+15 | |
2021-01-29 | hle: kernel: threading: Fix bug with host thread naming. | bunnei | 1 | -3/+2 | |
2021-01-29 | hle: kernel: k_scheduler_lock: Cleanup. | bunnei | 1 | -3/+3 | |
2021-01-29 | core: arm: Remove unnecessary JIT checks. | bunnei | 2 | -24/+0 | |
2021-01-29 | common: common_funcs: Log error on R_UNLESS. | bunnei | 1 | -0/+3 | |
2021-01-29 | hle: kernel: Allocate a dummy KThread for each host thread, and use it for scheduling. | bunnei | 8 | -43/+45 | |
2021-01-29 | hle: kernel: k_scheduler: Use atomics for current_thread, etc. | bunnei | 2 | -26/+28 | |
2021-01-29 | hle: kernel: k_scheduler: Fix for single core mode. | bunnei | 1 | -1/+2 | |
2021-01-29 | kernel: Fix build errors. | bunnei | 2 | -4/+9 | |
2021-01-29 | core: cpu_manager: Remove unused variable. | bunnei | 1 | -1/+0 | |
2021-01-29 | hle: kernel: KScheduler: Introduce thread context_guard. | bunnei | 2 | -3/+16 | |
2021-01-29 | hle: kernel: Recode implementation of KThread to be more accurate. | bunnei | 14 | -785/+1562 | |
2021-01-29 | kernel: svc_types: Add ThreadActivity. | bunnei | 1 | -0/+5 | |
2021-01-29 | kernel: KSchedulerPriorityQueue: Lowest priority should be LowestThreadPriority. | bunnei | 1 | -1/+1 | |
2021-01-29 | kernel: k_light_lock: Simplify EmuThreadHandle implementation. | bunnei | 5 | -51/+33 | |
2021-01-29 | hle: kernel: TimeManager: Simplify to not rely on previous EmuThreadHandle implementation. | bunnei | 6 | -69/+25 | |
2021-01-29 | common: common_funcs: Add useful kernel macro R_SUCCEED_IF. | bunnei | 1 | -0/+3 | |
2021-01-29 | core: hle: kernel: object: Implement Finalize() virtual method. | bunnei | 15 | -6/+29 | |
2021-01-29 | core: hle: kernel: svc_results: Populate with several missing error codes. | bunnei | 1 | -0/+3 | |
2021-01-29 | core: hle: kernel: Implement KLightLock. | bunnei | 3 | -0/+173 | |
2021-01-29 | core: hle: kernel: Implement KThreadQueue. | bunnei | 2 | -0/+82 | |
2021-01-29 | common: common_funcs: Add a few more useful macros for kernel code. | bunnei | 1 | -0/+11 | |
2021-01-29 | hle: kernel: KThread: Clean up thread priorities. | bunnei | 10 | -83/+44 | |
2021-01-29 | hle: kernel: KThread: Reorganize thread priority defaults. | bunnei | 9 | -31/+31 | |
2021-01-29 | hle: kernel: KThread: Fix ThreadType definition. | bunnei | 5 | -11/+12 | |
2021-01-29 | hle: kernel: Move single core "phantom mode" out of KThread. | bunnei | 4 | -16/+31 | |
- This is a workaround that does not belong in a kernel primitive. | |||||
2021-01-29 | hle: kernel: KThread: Remove thread types that do not exist. | bunnei | 6 | -53/+30 | |
2021-01-29 | arm: arm_dynarmic: Skip calls when JIT is invalid. | bunnei | 2 | -0/+24 | |
- This can happen if called from an idle or suspension thread. | |||||
2021-01-29 | core: hle: kernel: Rename Thread to KThread. | bunnei | 45 | -272/+271 | |
2021-01-29 | Fix user changing to 0 if valid | german | 1 | -2/+8 | |
2021-01-28 | Avoid overwritting username | german | 1 | -1/+1 | |
2021-01-28 | hid: Add static_assert for Parameter size | Morph | 1 | -15/+19 | |
2021-01-28 | prepo: Fix BufferDescriptorX invalid buffer errors and add "New" variants of SaveReport | Morph | 1 | -24/+42 | |
The second input buffer could be optional when prepo/srepo is called, test for the availability of the second buffer prior to reading from it. | |||||
2021-01-28 | hle_ipc: Add Can(Read, Write)Buffer | Morph | 2 | -0/+28 | |
Allows us to test whether a buffer can be read from or written to memory | |||||
2021-01-28 | Stub GetSockOpt | german | 2 | -1/+17 | |
2021-01-28 | vk_scheduler: Fix unaligned placement new expressions | ReinUsesLisp | 1 | -6/+6 | |
We were accidentaly creating an object in an unaligned memory address. Fix this by manually aligning the offset. | |||||
2021-01-27 | vulkan_device: Blacklist Intel from float16 math (#5798) | Rodrigo Locatti | 1 | -0/+5 | |
Astral Chain crashes Intel's SPIR-V compiler when using fp16. Disable this while the vendor works on a fix. | |||||
2021-01-27 | npad: Remove unused device handle parameter | Morph | 3 | -11/+9 | |
2021-01-25 | Omit system reference | Chloe Marcec | 1 | -2/+1 | |
2021-01-25 | psm: IPsmSession | Chloe Marcec | 1 | -2/+114 | |
Used by homebrew menu | |||||
2021-01-25 | Revert "Start of Integer flags implementation" | ReinUsesLisp | 3 | -59/+3 | |
This reverts #4713. The implementation in that PR is not accurate. It does not reflect the behavior seen in hardware. | |||||
2021-01-25 | vk_graphics_pipeline: Fix narrowing conversion on MSVC | ReinUsesLisp | 1 | -2/+2 | |
2021-01-24 | vk_texture_cache: Support image store on sRGB images with VkImageViewUsageCreateInfo | ReinUsesLisp | 3 | -38/+72 | |
Vulkan 1.0 didn't support creating sRGB image views on an ABGR8 VkImage with storage usage bits. VK_KHR_maintenance2 addressed this allowing to reduce the usage bits on a VkImageView. To allow image store on non-sRGB image views when the VkImage is created with sRGB, always create VkImages without sRGB and add the sRGB format on the view. | |||||
2021-01-25 | vulkan_device: Lift VK_EXT_extended_dynamic_state blacklist on RDNA | ReinUsesLisp | 1 | -23/+0 | |
It seems to be safe to use this on new drivers. | |||||
2021-01-24 | cmake: Enforce -Warray-bounds and -Wmissing-field-initializers globally | ReinUsesLisp | 2 | -2/+2 | |
2021-01-24 | Stub Set/Get/Reset SixaxisSensorFusionParameters | german | 4 | -3/+104 | |
2021-01-24 | Print Process ID and Thread ID as hex | Chloe Marcec | 1 | -2/+2 | |
2021-01-24 | hle: Implement remaining services for Stereo Vision | Chloe Marcec | 3 | -7/+60 | |
Used by Zelda Breath of the Wild, Super Mario Odyssey and Nintendo Labo | |||||
2021-01-24 | audout: FlushAudioOutBuffers | Chloe Marcec | 3 | -1/+20 | |
Fixes Devil May Cry | |||||
2021-01-24 | host_shaders/cmake: Pass --quiet to glslang to keep it quiet | ReinUsesLisp | 1 | -1/+1 | |
Silences noisy builds on toolchains. | |||||
2021-01-24 | video_core/cmake: Enforce -Warray-bounds and -Wmissing-field-initializers | ReinUsesLisp | 1 | -0/+2 | |
2021-01-24 | video_core: Silence -Wmissing-field-initializers warnings | ReinUsesLisp | 5 | -25/+56 | |
2021-01-24 | maxwell_3d: Silence array bounds warnings | ReinUsesLisp | 2 | -35/+35 | |
2021-01-24 | maxwell_to_vk: Silence -Wextra warnings about using different enum types | ReinUsesLisp | 2 | -2/+2 | |
2021-01-24 | Fix connect and disconnect controller events | german | 2 | -15/+37 | |
2021-01-23 | vfs_real: When moving files or directories, don't assume file opening will succeed | comex | 1 | -4/+10 | |
Found this via a warning, but it's a substantive fix. Since this is only for a cache, it should be safe to silently drop the entry if opening fails. I think. | |||||
2021-01-23 | shader_ir: Fix comment typo | Levi Behunin | 1 | -1/+1 | |
2021-01-23 | sdl_impl: Set the maximum vibration duration to 1 second | Morph | 1 | -2/+6 | |
2021-01-23 | Simplify condition | Chloe Marcec | 1 | -2/+1 | |
2021-01-23 | nvdrv: Unregister already registered events | Chloe Marcec | 1 | -1/+8 | |
2021-01-23 | Clamp string reads to buffer size | Chloe Marcec | 1 | -3/+5 | |
2021-01-23 | video_core/cmake: Properly generate fatal errors on Aftermath | ReinUsesLisp | 1 | -2/+2 | |
Fix "message(ERROR ..." to "message(FATAL_ERROR ..." to properly stop cmake when Nsight Aftermath can't be configured. | |||||
2021-01-23 | nsight_aftermath_tracker: Fix build issues when enabled | ReinUsesLisp | 2 | -16/+5 | |
Fixes a bunch of build errors when Nsight Aftermath is properly enabled. | |||||
2021-01-23 | vk_pipeline_cache: Properly bypass VertexA shaders | ReinUsesLisp | 1 | -9/+3 | |
The VertexA stage is not yet implemented, but Vulkan is adding its descriptors, causing a discrepancy in the pushed descriptors and the template. This generally ends up in a driver side crash. Bypass the VertexA stage for now. | |||||
2021-01-22 | video_core/memory_manager: Add BytesToMapEnd | ReinUsesLisp | 2 | -2/+27 | |
Track map address sizes in a flat ordered map and add a method to query the number of bytes until the end of a map in a given address. | |||||
2021-01-22 | common: Add missing include to bit_util.h | bunnei | 1 | -0/+1 | |
2021-01-21 | gl_shader_decompiler: Fix constant buffer size calculation | ReinUsesLisp | 1 | -1/+2 | |
The divide logic was wrong and can cause an uniform buffer size overflow. | |||||
2021-01-21 | video_core/memory_manager: Remove unused CopyBlockUnsafe | ReinUsesLisp | 2 | -8/+0 | |
This function was not being used. | |||||
2021-01-21 | video_core/memory_manager: Flush destination buffer on CopyBlock | ReinUsesLisp | 1 | -0/+4 | |
When we copy into a buffer, it might contain data modified from the GPU on the same pages. Because of this, we have to flush the contents before writing new data. An alternative approach would be to write the data in place, but games can also write data in other ways, invalidating our contents. Fixes geometry in Zombie Panic in Wonderland DX. | |||||
2021-01-21 | video_core/memory_manager: Add GPU address based flush method | ReinUsesLisp | 2 | -0/+17 | |
Allow flushing rasterizer contents based on a GPU address. | |||||
2021-01-21 | bit_util: Unify implementations of MostSignificantBit32/MostSignificantBit64 | Lioncash | 1 | -35/+13 | |
We can use the standardized CLZ facilities to perform this. This also allows us to make utilizing functions constexpr and eliminate the inclusion of an intrinsics header. | |||||
2021-01-21 | hle: service: am: Stub ILibraryAppletAccessor::PresetLibraryAppletGpuTimeSliceZero. | bunnei | 1 | -1/+8 | |
- Used by Monster Hunter Rise demo. | |||||
2021-01-21 | renderer_opengl: Avoid precompiled cache and force NV GL cache directory | ReinUsesLisp | 8 | -5/+59 | |
Setting __GL_SHADER_DISK_CACHE_PATH we can force the cache directory to be in yuzu's user directory to stop commonly distributed malware from deleting our driver shader cache. And by setting __GL_SHADER_DISK_CACHE_SKIP_CLEANUP we can have an unbounded shader cache size. This has only been implemented on Windows, mostly because previous tests didn't seem to work on Linux. Disable the precompiled cache on Nvidia's driver. There's no need to hide information the driver already has in its own cache. | |||||
2021-01-20 | lbl: Implement most of lbl | Chloe Marcec | 1 | -22/+261 | |
Pretty basic service, only thing left to do is handle setting applying once set:sys is implemented | |||||
2021-01-20 | mii: Fix BuildRandomStoreData & Cleanup raw_data | Chloe Marcec | 4 | -2274/+1657 | |
Cleaned up mii raw data to reflect the underlying values instead of just a chunk of bytes. Fixed BuildRandomStoreData not actually generating random miis properly. "values" should be a u32, not a u8. | |||||
2021-01-20 | Mark DestinationToString as static | Chloe Marcec | 1 | -1/+1 | |
2021-01-20 | Mark LogPacketHeaderEntry hash as noexcept | Chloe Marcec | 1 | -1/+1 | |
2021-01-20 | lm: Recode LM service | Chloe Marcec | 8 | -345/+286 | |
Rework the service to spit out to logs instead of a seperate file as well as fix any crashes caused by lm. | |||||
2021-01-19 | acc: Stub StoreSaveDataThumbnail | Chloe Marcec | 5 | -6/+66 | |
Fixes ACA NEOGEO METAL SLUG hanging on boot. | |||||
2021-01-18 | npad: Add check for HANDHELD_INDEX in UpdateControllerAt() | Morph | 1 | -1/+1 | |
2021-01-18 | Always update configuration for handheld | german | 1 | -0/+10 | |
2021-01-18 | game_list: Fix folder reordering | FearlessTobi | 2 | -28/+32 | |
The bug(s) happened because we swapped the contents on values.game_dirs, but the pointer each item had to their respective game_dir wasn't updated. This made it so that the item had the wrong game_dir associated with it after a "move up" or "move down" operation. It can be observed by choosing "open directory location" after such operation. Changed from raw pointer to an index because it's equivalent but a bit clearer, but the change is not essential. Co-Authored-By: Vitor K <29167336+vitor-k@users.noreply.github.com> | |||||
2021-01-17 | configure_service: Only compile FormatEventStatusString when YUZU_ENABLE_BOXCAT is enabled | lat9nq | 1 | -0/+2 | |
The function is unused if YUZU_ENABLE_BOXCAT is disabled, causing a -Wunused-funciton error when compiled. Wrapping it with `#ifdef YUZU_ENABLE_BOXCAT` to prevent compiling the function when the variable is disabled. Opting to not use [[maybe unused]] in case the function is totally unused in the future. | |||||
2021-01-17 | Fix player 1 default connected value | german | 1 | -1/+2 | |
2021-01-17 | texture_cache/util: Resolve -Wsign-compare warning | Lioncash | 1 | -1/+1 | |
Resolves a -Wsign-compare warning on Clang. | |||||
2021-01-17 | video_core: Resolve -Wdocumentation warnings | Lioncash | 2 | -4/+3 | |
Silences some -Wdocumentation warnings on Clang. | |||||
2021-01-17 | vulkan_debug_callback: Add missing header guard | Lioncash | 1 | -0/+2 | |
Prevents inclusion issues from occurring. | |||||
2021-01-16 | input_interpreter: Mark two member functions as const | Lioncash | 1 | -4/+4 | |
These aren't stateful functions, so we can make use of const. While we're at, we can resolve some -Wdocumentation warnings. | |||||
2021-01-16 | input_interpreter: Add method to check for a button press state | Morph | 2 | -0/+25 | |
This allows to check for continuous input for the duration of a button press/hold | |||||
2021-01-16 | vk_shader_decompiler: Show comments as OpUndef with a type | ReinUsesLisp | 1 | -1/+4 | |
Silence the new validation layer error about SPIR-V not allowing OpUndef on a OpTypeVoid, even when the SPIR-V spec doesn't say anything against it. They will be inserted as an undefined int to avoid SPIRV-Cross and validation errors, but only when a debugging tool is attached. | |||||
2021-01-15 | core/cmake: Enforce Wclass-memaccess | ReinUsesLisp | 1 | -0/+1 | |
Treat -Wclass-memaccess as an error. | |||||
2021-01-15 | core: Silence Wclass-memaccess warnings | ReinUsesLisp | 17 | -205/+215 | |
This requires making several types trivial and properly initialize them whenever they are called. | |||||
2021-01-15 | common/common_funcs: Rename INSERT_UNION_PADDING_{BYTES,WORDS} to _NOINIT | ReinUsesLisp | 11 | -149/+149 | |
INSERT_PADDING_BYTES_NOINIT is more descriptive of the underlying behavior. | |||||
2021-01-15 | vulkan_memory_allocator: Remove unnecesary 'device' memory from commits | ReinUsesLisp | 2 | -15/+15 | |
2021-01-15 | vk_texture_cache: Use Download memory types for texture flushes | ReinUsesLisp | 2 | -5/+10 | |
Use the Download memory type where it matters. | |||||
2021-01-15 | vulkan_memory_allocator: Add allocation support for download types | ReinUsesLisp | 2 | -55/+91 | |
Implements the allocator logic to handle download memory types. This will try to use HOST_CACHED_BIT when available. | |||||
2021-01-15 | vulkan_memory_allocator: Add "download" memory usage hint | ReinUsesLisp | 9 | -45/+86 | |
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. | |||||
2021-01-15 | vulkan_common: Move allocator to the common directory | ReinUsesLisp | 11 | -11/+11 | |
Allow using the abstraction from the OpenGL backend. | |||||
2021-01-15 | renderer_vulkan: Rename Vulkan memory manager to memory allocator | ReinUsesLisp | 15 | -54/+52 | |
"Memory manager" collides with the guest GPU memory manager, and a memory allocator sounds closer to what the abstraction aims to be. | |||||
2021-01-15 | vk_memory_manager: Improve memory manager and its API | ReinUsesLisp | 13 | -343/+318 | |
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. | |||||
2021-01-15 | Always initialize keyboard input | german | 5 | -25/+20 | |
2021-01-15 | Add mutitouch support for touch screens | german | 10 | -85/+137 | |
2021-01-15 | Allow to return up to 16 touch inputs per engine | german | 10 | -154/+202 | |
2021-01-15 | Allow all touch inputs at the same time and remove config options that are not longer necesary | german | 8 | -99/+36 | |
2021-01-15 | Add multitouch support | german | 2 | -23/+93 | |
2021-01-15 | common/bit_util: Replace CLZ/CTZ operations with standardized ones | Lioncash | 10 | -113/+17 | |
Makes for less code that we need to maintain. | |||||
2021-01-15 | common/alignment: Upgrade to use constraints instead of static asserts | ReinUsesLisp | 1 | -13/+9 | |
2021-01-15 | common/alignment: Rename AlignBits to AlignUpLog2 | ReinUsesLisp | 4 | -16/+15 | |
AlignUpLog2 describes what the function does better than AlignBits. | |||||
2021-01-15 | common/timer: Remove | Lioncash | 3 | -202/+0 | |
This is a leftover from citra and dolphin that isn't used at all, particularly given the <chrono> header exists. | |||||
2021-01-15 | common/color: Remove | ReinUsesLisp | 2 | -272/+0 | |
This is a leftover from Citra we no longer use. | |||||
2021-01-15 | core/cmake: Remove Werror flags already defined code-base wide | ReinUsesLisp | 1 | -2/+0 | |
2021-01-15 | video_core/cmake: Remove Werror flags already defined code-base wide | ReinUsesLisp | 1 | -2/+0 | |
These flags are already defined in src/cmake. | |||||
2021-01-15 | cmake: Remove yuzu_tester | ReinUsesLisp | 12 | -1057/+0 | |
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. | |||||
2021-01-15 | cmake: Enforce -Wunused-function code-base wide | ReinUsesLisp | 2 | -1/+1 | |
2021-01-15 | video_core: Enforce -Wunused-function | ReinUsesLisp | 1 | -0/+1 | |
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]]. | |||||
2021-01-15 | vk_buffer_cache: Remove unused function | ReinUsesLisp | 1 | -4/+0 | |
2021-01-15 | vulkan_common: Silence missing initializer warnings | ReinUsesLisp | 2 | -145/+146 | |
Silence warnings explicitly initializing all members on construction. | |||||
2021-01-15 | vulkan_device: Enable shaderStorageImageMultisample conditionally | ReinUsesLisp | 2 | -18/+20 | |
Fix Vulkan initialization on ANV. | |||||
2021-01-15 | astc: Increase integer encoded vector size | ReinUsesLisp | 1 | -1/+1 | |
Invalid ASTC textures seem to write more bytes here, increase the size to something that can't make us push out of bounds. | |||||
2021-01-15 | astc: Return zero on out of bound bits | ReinUsesLisp | 1 | -17/+22 | |
Avoid out of bound reads on invalid ASTC textures. Games can bind invalid textures that make us read or write out of bounds. | |||||
2021-01-14 | yuzu: Remove unused variables in Qt code | Lioncash | 2 | -21/+2 | |
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. | |||||
2021-01-14 | configure_motion_touch: Prevent use after move in ApplyConfiguration() | Lioncash | 1 | -2/+1 | |
touch_engine was being compared against after being moved into the setter for the engine, so this comparison wouldn't behave properly. | |||||
2021-01-14 | configure_motion_touch: Migrate off QRegExp to QRegularExpression | Lioncash | 1 | -6/+9 | |
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. | |||||
2021-01-13 | Fix IP validator error where the last octet produced an error if the value was higher than 199 | german | 1 | -2/+3 | |
2021-01-13 | yuzu: Migrate off of setMargin() to setContentsMargins() | Lioncash | 2 | -3/+3 | |
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. | |||||
2021-01-13 | vulkan_device: Remove requirement on shaderStorageImageMultisample | ReinUsesLisp | 1 | -1/+0 | |
yuzu doesn't currently emulate MS image stores. Requiring this makes no sense for now. Fixes ANV not booting any games on Vulkan. | |||||
2021-01-13 | tests: Add unit tests for the GPU range tracking buffer container | ReinUsesLisp | 2 | -0/+474 | |
Due to how error prone the container design is, this commit adds unit tests for it. Some tests taken from here are based on bugs from using this buffer container in games, so if we ever break it in the future in a way that might harm games, the tests should fail. | |||||
2021-01-13 | buffer_cache/buffer_base: Add a range tracking buffer container | ReinUsesLisp | 2 | -0/+496 | |
It keeps track of the modified CPU and GPU ranges on a CPU page granularity, notifying the given rasterizer about state changes in the tracking behavior of the buffer. Use a small vector optimization to store buffers smaller than 256 KiB locally instead of using free store memory allocations. | |||||
2021-01-13 | cmake: Enforce -Werror=switch and -Werror=unused-variable | Morph | 1 | -0/+2 | |
2021-01-12 | common/tree: Convert defines over to templates | Lioncash | 2 | -592/+666 | |
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. | |||||
2021-01-12 | common/tree: Remove unused splay tree defines | Lioncash | 1 | -249/+2 | |
Makes for less code to take care of. | |||||
2021-01-12 | common/parent_of_member: Replace TYPED_STORAGE define with template alias | Lioncash | 2 | -8/+10 | |
Provides the same construct, but makes it obey namespacing. | |||||
2021-01-11 | hle: kernel: thread: Preserve thread wait reason for debugging only. | bunnei | 8 | -4/+74 | |
- This is decoupled from core functionality and used for debugging only. | |||||
2021-01-11 | yuzu: debugger: wait_tree: Handle unknown ThreadState. | bunnei | 1 | -0/+3 | |
2021-01-11 | hle: kernel: k_scheduler_lock: Fix shadowing errors. | bunnei | 1 | -1/+1 | |
2021-01-11 | core: arm: arm_interface: Fix shadowing errors. | bunnei | 1 | -3/+4 | |
2021-01-11 | core: hle: Add missing calls to MicroProfileOnThreadExit. | bunnei | 2 | -0/+5 | |
2021-01-11 | core: hle: Integrate new KConditionVariable and KAddressArbiter implementations. | bunnei | 15 | -1182/+508 | |
2021-01-11 | core: hle: kernel: Update KAddressArbiter. | bunnei | 3 | -0/+437 | |
2021-01-11 | core: hle: kernel: Update KConditionVariable. | bunnei | 4 | -0/+413 | |
2021-01-11 | core: hle: kernel: Begin moving common SVC defintions to its own header. | bunnei | 2 | -0/+14 | |
2021-01-11 | hle: kernel: Remove unnecessary AddressArbiter definition. | bunnei | 1 | -1/+0 | |
2021-01-11 | common: common_funcs: Add R_UNLESS macro. | bunnei | 1 | -0/+8 | |
2021-01-11 | hle: kernel: k_scheduler: Cleanup OnThreadPriorityChanged. | bunnei | 2 | -6/+3 | |
2021-01-11 | hle: kernel: Rename thread "status" to "state". | bunnei | 1 | -2/+2 | |
2021-01-11 | hle: kernel: thread: Replace ThreadStatus/ThreadSchedStatus with a single ThreadState. | bunnei | 12 | -172/+111 | |
- This is how the real kernel works, and is more accurate and simpler. | |||||
2021-01-11 | core: hle: kernel: Add some useful functions for checking kernel addresses. | bunnei | 1 | -0/+19 | |
2021-01-11 | core: hle: kernel: svc_types: Add type definitions for KAddressArbiter. | bunnei | 1 | -0/+12 | |
2021-01-11 | common: Introduce useful tree structures. | bunnei | 4 | -0/+1641 | |
2021-01-11 | core: hle: kernel: Update KSynchronizationObject. | bunnei | 33 | -621/+397 | |
2021-01-11 | core: hle: kernel: Begin moving common SVC results to its own header. | bunnei | 2 | -0/+21 | |
2021-01-11 | hle: service: nfp: Remove incorrect signaling behavior in GetDeviceState. | bunnei | 1 | -6/+0 | |
2021-01-10 | config: Enable docked mode by default | Morph | 5 | -6/+6 | |
2021-01-10 | cmake: Enforce C4101 | Morph | 1 | -0/+1 | |
This matches GCC's -Wunused-variable | |||||
2021-01-10 | yuzu_cmd: Silence unreferenced local variable warning | Morph | 1 | -2/+0 | |
2021-01-09 | general: Resolve C4062 warnings on MSVC | Morph | 2 | -0/+4 | |
2021-01-09 | common/div_ceil: Return numerator type | ReinUsesLisp | 1 | -5/+5 | |
Fixes instances where DivCeil(u32, u64) would surprisingly return u64, instead of the more natural u32. | |||||
2021-01-09 | cmake: Enforce C4062, C4265, C4388, and C5038 | ReinUsesLisp | 1 | -0/+4 | |
This should match some warnings we treat as errors on gcc and clang, caching bugs early and reducing the number of instances where we have to edit commits to make CI happy when developing from Windows. | |||||
2021-01-09 | file_sys/registered_cache: Silence virtual functions without override warnings | ReinUsesLisp | 1 | -4/+4 | |
2021-01-09 | core: Silence unhandled enum in switch warnings | ReinUsesLisp | 2 | -10/+5 | |
2021-01-09 | tests/ring_buffer: Silence signed/unsigned mismatch warnings | ReinUsesLisp | 1 | -15/+15 | |
2021-01-08 | Stub IsCpuOverclockEnabled | german | 2 | -1/+10 | |
2021-01-08 | vk_fence_manager: Use timeline semaphores instead of spin waits | ReinUsesLisp | 3 | -54/+18 | |
With timeline semaphores we can avoid creating objects. Instead of creating an event, grab the current tick from the scheduler and flush the current command buffer. When the fence has to be queried/waited, we can do so against the master semaphore instead of spinning on an event. If Vulkan supported NVN like events or fences, we could signal from the command buffer and wait for that without splitting things in two separate command buffers. | |||||
2021-01-07 | remove inaccurate reference | Ameer J | 1 | -1/+1 | |
Co-authored-by: LC <mathew1800@gmail.com> | |||||
2021-01-07 | fix for nvdec disabled, cleanup host1x | ameerj | 3 | -72/+23 | |
2021-01-07 | nvdec syncpt incorporation | ameerj | 11 | -37/+59 | |
laying the groundwork for async gpu, although this does not fully implement async nvdec operations | |||||
2021-01-07 | vulkan_library: Common::DynamicLibrary::Open is [[nodiscard]] | MerryMage | 1 | -1/+1 | |
Ignore the return value on __APPLE__ systems as well | |||||
2021-01-07 | texture_cache: Replace PAGE_SHIFT with PAGE_BITS | MerryMage | 1 | -6/+6 | |
PAGE_SHIFT is a #define in system headers that leaks into user code on some systems | |||||
2021-01-05 | core: Enforce C4715 (not all control paths return a value) | ReinUsesLisp | 1 | -0/+2 | |
2021-01-05 | core: Silence warnings when compiling without asserts | ReinUsesLisp | 5 | -8/+11 | |
2021-01-04 | vk_rasterizer: Skip binding empty descriptor sets on compute | ReinUsesLisp | 1 | -2/+4 | |
Fixes unit tests where compute shaders had no descriptors in the set, making Vulkan drivers crash when binding an empty set. | |||||
2021-01-04 | buffer_queue: Protect queue_sequence list access with a mutex | ameerj | 2 | -13/+21 | |
fixes a data race as this is an unprotected variable manipulated by multiple threads | |||||
2021-01-04 | yuzu/configure_filesystem: Remove "Select Cache Directory" option | FearlessTobi | 5 | -57/+1 | |
This tab of the settings is already extremely bloated and the setting itself is quite useless. With a gamelist of almost 30 games, the cache directory is smaller than 1MB for me and therefore I don't see why it needs to be configurable. | |||||
2021-01-04 | vulkan_device: Allow creating a device without surface | ReinUsesLisp | 1 | -3/+3 | |
2021-01-04 | renderer_vulkan/nsight_aftermath_tracker: Move to vulkan_common | ReinUsesLisp | 5 | -30/+21 | |
2021-01-04 | renderer_vulkan: Move device abstraction to vulkan_common | ReinUsesLisp | 29 | -29/+31 | |
2021-01-04 | gl_texture_cache: Avoid format views on Intel and AMD | ReinUsesLisp | 11 | -21/+48 | |
Intel and AMD proprietary drivers are incapable of rendering to texture views of different formats than the original texture. Avoid creating these at a cache level. This will consume more memory, emulating them with copies. | |||||
2021-01-04 | gl_texture_cache: Create base images with sRGB | ReinUsesLisp | 2 | -99/+100 | |
This breaks accelerated decoders trying to imageStore into images with sRGB. The decoders are currently disabled so this won't cause issues at runtime. | |||||
2021-01-04 | Address review comments | FearlessTobi | 1 | -5/+5 | |
2021-01-04 | Delete the old log file before rotating (#5675) | xperia64 | 1 | -0/+3 | |
2021-01-03 | renderer_vulkan: Rename VKDevice to Device | ReinUsesLisp | 52 | -169/+166 | |
The "VK" prefix predates the "Vulkan" namespace. It was carried around the codebase for consistency. "VKDevice" currently is a bad alias with "VkDevice" (only an upcase character of difference) that can cause confusion. Rename all instances of it. | |||||
2021-01-03 | main: Resolve error string not displaying | Lioncash | 3 | -2/+8 | |
During the transition to make the error dialog translatable, I accidentally got rid of the conversion to ResultStatus, which prevented operator<< from being invoked during formatting. This adds a function to directly retrieve the result status string instead so that it displays again. | |||||
2021-01-03 | Fix the old log file to work with the log parser. | bunnei | 1 | -1/+1 | |
2021-01-03 | Rotate previous log file to '.old' if it exists | xperia64 | 1 | -4/+9 | |
2021-01-03 | hle: service: nvflinger: buffer_queue: Do not reset id/layer_id on Connect. | bunnei | 1 | -2/+0 | |
- This behavior is a mistake, fixes Katana Zero. | |||||
2021-01-02 | dynarmic: Add Unsafe_InaccurateNaN optimization | MerryMage | 6 | -0/+26 | |
2021-01-02 | general: Fix various spelling errors | Morph | 20 | -43/+43 | |
2021-01-02 | X86/NativeClock: Reimplement RTDSC access to be lock free. | Fernando Sahmkow | 5 | -103/+107 | |
2021-01-02 | X86/NativeClock: Improve performance of clock calculations on hot path. | Fernando Sahmkow | 2 | -5/+71 | |
2021-01-01 | typo fix | Timotej Leginus | 1 | -1/+1 | |
typo fix | |||||
2021-01-01 | configure_input: Modify controller connection delay | Morph | 4 | -12/+47 | |
Increases the controller connection delay to 60ms and refactors it to attempt to disconnect all controllers prior to connecting all controllers in HID. | |||||
2021-01-01 | memory: Remove MemoryHook | MerryMage | 9 | -382/+0 | |
2020-12-31 | yuzu/main: fix mouse not showing on move and port citra-emu/citra#5476 | gal20 | 4 | -19/+24 | |
2020-12-31 | main: Make the loader error dialog fully translatable | Lioncash | 1 | -8/+12 | |
Makes the dialog fully localizable and also adds disambiguation comments to help translators understand what the formatting specifiers indicate. | |||||
2020-12-31 | main: Tidy up enum comparison | Lioncash | 1 | -2/+1 | |
enum classes are comparable with one another, so these casts aren't necessary. | |||||
2020-12-31 | vulkan_instance: Allow different Vulkan versions and enforce 1.1 | ReinUsesLisp | 7 | -41/+39 | |
For listing the available physical devices we can use Vulkan 1.0. Now that MoltenVK supports 1.1 we can require it for running games. Add missing documentation. | |||||
2020-12-31 | vk_device: Use an array to report lacking device limits | ReinUsesLisp | 1 | -13/+17 | |
This makes easier to add and tune the required device limits. | |||||
2020-12-31 | vk_device: Stop initialization when device is not suitable | ReinUsesLisp | 2 | -61/+39 | |
VKDevice::IsSuitable was not being called. To address this issue, check suitability before initialization and throw an exception if it fails. By doing this, we can deduplicate some code on queue searches. Previosuly we would first search if a present and graphics queue existed, then on initialization we would search again to find the index. | |||||
2020-12-31 | renderer_vulkan: Remove two step initialization on VKDevice | ReinUsesLisp | 6 | -31/+10 | |
The Vulkan device abstraction either initializes successfully on the constructor or throws a Vulkan exception. | |||||
2020-12-31 | renderer_vulkan: Throw when enumerating devices fails | ReinUsesLisp | 5 | -33/+21 | |
Report device enumeration errors with exceptions to be consistent with other initialization related function calls. Reduces the amount of code to maintain. | |||||
2020-12-31 | renderer_vulkan: Initialize surface in separate file | ReinUsesLisp | 6 | -73/+109 | |
Move surface initialization code to a separate file. It's unlikely to use this code outside of Vulkan, but keeping platform-specific code (Win32, Xlib, Wayland) in its own translation unit keeps things cleaner. | |||||
2020-12-31 | renderer_vulkan: Catch and report exceptions | ReinUsesLisp | 1 | -2/+5 | |
Move more Vulkan code to report errors with exceptions and report them through a log before notifying it with an error boolean for backwards compatibility. In the future we can replace the rasterizer two-step initialization to always use exceptions. | |||||
2020-12-31 | renderer_vulkan: Create debug callback on separate file and throw | ReinUsesLisp | 8 | -79/+88 | |
Initialize debug callbacks (messenger) from a separate file. This allows sharing code with different backends. Change our Vulkan error handling to use exceptions instead of error codes, simplifying the initialization process. | |||||
2020-12-31 | renderer_vulkan: Move instance initialization to a separate file | ReinUsesLisp | 4 | -111/+176 | |
Simplify Vulkan's backend initialization code by moving it to a separate file, allowing us to initialize a Vulkan instance from different backends. | |||||
2020-12-31 | vulkan_common: Rename renderer_vulkan/wrapper.h to vulkan_common/vulkan_wrapper.h | ReinUsesLisp | 51 | -51/+51 | |
Allows sharing Vulkan wrapper code between different rendering backends. | |||||
2020-12-31 | vulkan_common: Move dynamic library load to a separate file | ReinUsesLisp | 4 | -31/+59 | |
Allows us to initialize a Vulkan dynamic library from different backends without duplicating code. | |||||
2020-12-31 | Port citra-emu/citra#5509 | german | 1 | -2/+45 | |
2020-12-31 | Make the coding conventions more consistant | 16-Bit-Dog | 1 | -1/+1 | |
lut_index had 0 added when nothing was supposed to be added despite this, index was not added to 0 when nothing was supposed to be added... | |||||
2020-12-30 | half_set: Resolve -Wmaybe-uninitialized warnings | Lioncash | 1 | -7/+7 | |
2020-12-30 | maxwell_to_vk: Initialize usage variable in SurfaceFormat() | Lioncash | 1 | -1/+1 | |
Silences a -Wmaybe-uninitialized warning | |||||
2020-12-30 | video_core: Rewrite the texture cache | ReinUsesLisp | 152 | -8101/+10359 | |
The current texture cache has several points that hurt maintainability and performance. It's easy to break unrelated parts of the cache when doing minor changes. The cache can easily forget valuable information about the cached textures by CPU writes or simply by its normal usage.The current texture cache has several points that hurt maintainability and performance. It's easy to break unrelated parts of the cache when doing minor changes. The cache can easily forget valuable information about the cached textures by CPU writes or simply by its normal usage. This commit aims to address those issues. | |||||
2020-12-30 | cmake: Enforce -Wuninitialized | ReinUsesLisp | 1 | -0/+1 | |
2020-12-30 | service/pcie: Fix invalid initialization argument | ReinUsesLisp | 1 | -1/+1 | |
2020-12-30 | video_core: Add a delayed destruction ring abstraction | ReinUsesLisp | 2 | -0/+33 | |
2020-12-30 | host_shaders: Add Vulkan assembler compute shaders | ReinUsesLisp | 4 | -0/+96 | |
2020-12-30 | host_shaders: Add helper to blit depth stencil fragment shader | ReinUsesLisp | 2 | -0/+17 | |
2020-12-30 | host_shaders: Add texture color blit fragment shader | ReinUsesLisp | 2 | -0/+15 | |
2020-12-30 | host_shaders: Add shaders to present to the swapchain | ReinUsesLisp | 3 | -0/+36 | |
2020-12-30 | host_shaders: Add shaders to convert between depth and color images | ReinUsesLisp | 3 | -0/+28 | |
2020-12-30 | host_shaders: Add compute shader to copy BC4 as RG32UI to RGBA8 | ReinUsesLisp | 2 | -0/+71 | |
2020-12-30 | host_shaders: Add shader to render a full screen triangle | ReinUsesLisp | 2 | -0/+30 | |
2020-12-30 | host_shaders: Add pitch linear upload compute shader | ReinUsesLisp | 2 | -0/+87 | |
2020-12-30 | host_shaders: Add block linear upload compute shaders | ReinUsesLisp | 3 | -0/+249 | |
2020-12-30 | host_shaders: Add copyright headers to OpenGL present shaders | ReinUsesLisp | 2 | -0/+8 | |
2020-12-30 | video_core/host_shaders: Add support for prebuilt SPIR-V shaders | ReinUsesLisp | 1 | -16/+37 | |
Add support for building SPIR-V shaders from GLSL and generating headers to include the text of those same GLSL shaders to consume from OpenGL. | |||||
2020-12-30 | core/memory: Read and write page table atomically | ReinUsesLisp | 7 | -147/+132 | |
Squash attributes into the pointer's integer, making them an uintptr_t pair containing 2 bits at the bottom and then the pointer. These bits are currently unused thanks to alignment requirements. Configure Dynarmic to mask out these bits on pointer reads. While we are at it, remove some unused attributes carried over from Citra. Read/Write and other hot functions use a two step unpacking process that is less readable to stop MSVC from emitting an extra AND instruction in the hot path: mov rdi,rcx shr rdx,0Ch mov r8,qword ptr [rax+8] mov rax,qword ptr [r8+rdx*8] mov rdx,rax -and al,3 and rdx,0FFFFFFFFFFFFFFFCh je Core::Memory::Memory::Impl::Read<unsigned char> mov rax,qword ptr [vaddr] movzx eax,byte ptr [rdx+rax] | |||||
2020-12-30 | hle: kernel: service_thread: Make thread naming more consistent. | bunnei | 1 | -1/+1 | |
2020-12-30 | hle: kernel: Manage service threads on another thread. | bunnei | 1 | -9/+20 | |
- This is to allow service threads to defer destruction of themselves. | |||||
2020-12-30 | common: ThreadWorker: Add class to help do asynchronous work. | bunnei | 3 | -0/+90 | |
2020-12-30 | hle: kernel: Manage host thread IDs using TLS. | bunnei | 1 | -46/+31 | |
- Avoids the need to have a large map of host to guest thread IDs. | |||||
2020-12-29 | k_priority_queue: Fix concepts use | comex | 2 | -3/+9 | |
- For `std::same_as`, add missing include of `<concepts>`. - For `std::convertible_to`, create a replacement in `common/concepts.h` and use that instead. This would also be found in `<concepts>`, but unlike `std::same_as`, `std::convertible_to` is not yet implemented in libc++, LLVM's STL implementation - not even in master. (In fact, `std::same_as` is the *only* concept currently implemented. For some reason.) | |||||
2020-12-29 | Add missing include of "core/hle/kernel/kernel.h" | comex | 1 | -0/+1 | |
This is needed as the header invokes methods on KernelCore. | |||||
2020-12-29 | svc: demote SleepThread log to LOG_TRACE | ameerj | 1 | -1/+1 | |
This log is called often, and introduces a lot of noise when debug logging is enabled, making it difficult to see other debug logs. | |||||
2020-12-29 | hle: kernel: Move ServiceThread ownership to KernelCore. | bunnei | 4 | -5/+48 | |
- Fixes a circular dependency which prevented threads from being released on shutdown. | |||||
2020-12-29 | hle: kernel: service_thread: Add thread name and take weak_ptr of ServerSession. | bunnei | 3 | -11/+22 | |
2020-12-29 | hle: service: Acquire and release a lock on requests. | bunnei | 7 | -40/+41 | |
- This makes it such that we can safely access service members from CoreTiming thread. | |||||
2020-12-29 | audio_core: stream: Ensure buffer is valid before release. | bunnei | 1 | -2/+10 | |
2020-12-29 | core: Do not reset device_memory on shutdown. | bunnei | 1 | -1/+0 | |
- This will be reset on initialization. | |||||
2020-12-29 | core: hle: kernel: Clear process list on boot. | bunnei | 1 | -2/+2 | |
2020-12-29 | gpu: gpu_thread: Ensure MicroProfile is shutdown on exit. | bunnei | 1 | -0/+3 | |
2020-12-29 | hle: service: vi: Refactor to grab buffer only once. | bunnei | 1 | -15/+4 | |
2020-12-29 | service: nvflinger: Improve synchronization for BufferQueue. | bunnei | 5 | -19/+72 | |
- Use proper mechanisms for blocking on DequeueBuffer. - Ensure service thread terminates on emulation Shutdown. | |||||
2020-12-29 | hle: service: Ensure system is powered on before writing IPC result. | bunnei | 1 | -1/+5 | |
2020-12-29 | core: kernel: Clear process list earlier. | bunnei | 1 | -2/+2 | |
2020-12-29 | video_core: gpu_thread: Do not wait when system is powered down. | bunnei | 1 | -1/+2 | |
2020-12-29 | core: settings: Untangle multicore from asynchronous GPU. | bunnei | 5 | -21/+4 | |
- Now that GPU is always threaded, we can support multicore with synchronous GPU. | |||||
2020-12-29 | video_core: gpu: Implement synchronous mode using threaded GPU. | bunnei | 4 | -12/+34 | |
2020-12-29 | video_core: gpu: Refactor out synchronous/asynchronous GPU implementations. | bunnei | 10 | -289/+130 | |
- We must always use a GPU thread now, even with synchronous GPU. | |||||
2020-12-29 | hle: kernel: hle_ipc: Remove SleepClientThread. | bunnei | 2 | -54/+0 | |
- This was kind of hacky, and no longer is necessary with service threads. | |||||
2020-12-29 | hle: service: bsd: Update to work with service threads, removing SleepClientThread. | bunnei | 4 | -250/+45 | |
2020-12-29 | hle: service: nvdrv: Revert #4981 to remove usage of SleepClientThread. | bunnei | 23 | -211/+83 | |
- Note, this always processes the ioctl right away, which fixes BotW 1.0.0 issues. | |||||
2020-12-29 | hle: kernel: service_thread: Add parameter for thread pool size. | bunnei | 3 | -7/+7 | |
2020-12-29 | hle: service: nvflinger: Refactor locking and interfaces. | bunnei | 3 | -45/+31 | |
2020-12-29 | hle: service: vi: Remove usage of SleepClientThread. | bunnei | 1 | -34/+43 | |
2020-12-29 | core: hle: server_session: Use separate threads for each service connection. | bunnei | 6 | -23/+140 | |
2020-12-27 | udp client: process packets only for the correct pad | gal20 | 1 | -0/+5 | |
2020-12-27 | Allow to invert analog axis with right click | german | 4 | -65/+99 | |
2020-12-26 | renderer_vulkan/fixed_pipeline_state: Move enabled bindings to static state | ReinUsesLisp | 3 | -26/+12 | |
Without using VK_EXT_robustness2, we can't consider the 'enabled' (not null) vertex buffers as dynamic state, as this leads to invalid Vulkan state. Move this to static state that is always hashed and compared in the pipeline key. The bits for enabled vertex buffers are moved into the attribute state bitfield. This is not 'correct' as it's not an attribute state, but that struct has bits to spare, and it's used in an array of 32 elements (the exact same number of vertex buffer bindings). | |||||
2020-12-25 | yuzu/main: Add basic command line arguments | Morph | 1 | -3/+39 | |
The following command line arguments are supported: yuzu.exe "path_to_game" - Launches a game at "path_to_game" yuzu.exe -f - Launches the next game in fullscreen yuzu.exe -g "path_to_game" - Launches a game at "path_to_game" yuzu.exe -f -g "path_to_game" - Launches a game at "path_to_game" in fullscreen | |||||
2020-12-25 | core: memory: Ensure thread safe access when pages are rasterizer cached (#5206) | bunnei | 1 | -12/+40 | |
* core: memory: Ensure thread safe access when pages are rasterizer cached. | |||||
2020-12-25 | cmake: Always enable Vulkan | ReinUsesLisp | 8 | -133/+75 | |
Removes the unnecesary burden of maintaining separate #ifdef paths and allows us sharing generic Vulkan code across APIs. | |||||
2020-12-25 | video_core: Enforce C4715 (not all control paths return a value) | ReinUsesLisp | 1 | -0/+1 | |
Most of the time people write code that always returns a value, terminates execution, throws an exception, or uses an unconventional jump primitive. This is not always true when we build without asserts on mainline builds. To avoid introducing undefined behavior on our most used builds, enforce this warning signalling an error and stopping the build from shipping. | |||||
2020-12-25 | vk_shader_decompiler: Silence warning when compiling without asserts | ReinUsesLisp | 1 | -0/+1 | |
2020-12-23 | yuzu/main: Improve menubar access keys | lat9nq | 4 | -38/+38 | |
Adds a unique access key to each action within each menu. A few actions already had their own access key, so those were untouched. | |||||
2020-12-23 | Add option to reset window size to 1080p | german | 3 | -6/+30 | |
2020-12-22 | yuzu/main: Save settings when starting guest | lat9nq | 2 | -16/+25 | |
Saves UISettings and Settings when booting a guest. Moves updating UISettings::values from GMainWindow::closeEvent into its own function, then reuses it in GMainWindow::BootGame. | |||||
2020-12-19 | yuzu: Remove gdbstub configuration | FearlessTobi | 9 | -110/+7 | |
The gdbstub itself was removed with https://github.com/yuzu-emu/yuzu/pull/5028. This PR just removes the remaining gdb configuration code from the emulator and the UI. | |||||
2020-12-18 | applets/web: Implement the online web browser applet | Morph | 8 | -64/+167 | |
2020-12-18 | applets/web: Fix keyboard to emulated controller input | Morph | 3 | -4/+30 | |
2020-12-18 | main: Add the ability to disable the web applet | Morph | 2 | -0/+27 | |
This should only be used for Super Mario 3D All-Stars. This is a temporary solution until it can be implemented properly. | |||||
2020-12-18 | main, applets/web: Re-add progress dialog for RomFS extraction | Morph | 8 | -68/+125 | |
2020-12-18 | applets/web: Implement the Qt web browser applet frontend | Morph | 4 | -5/+600 | |
2020-12-18 | web_browser_scripts: Add injection scripts for the web browser | Morph | 1 | -0/+193 | |
2020-12-18 | pl_u, applets/web: Decrypt shared fonts to TTF files | Morph | 3 | -18/+117 | |
2020-12-18 | ns_vm: Stub NeedsUpdateVulnerability | Morph | 1 | -1/+10 | |
This is used to force system updates on launching the web browser. We do not care about system updates so this can be set to false. | |||||
2020-12-18 | frontend/input_interpreter: Add InputInterpreter API | Morph | 3 | -0/+167 | |
The InputInterpreter class interfaces with HID to retrieve button press states. Input is intended to be polled every 50ms so that a button is considered to be held down after 400ms has elapsed since the initial button press and subsequent repeated presses occur every 50ms. Co-authored-by: Chloe <25727384+ogniK5377@users.noreply.github.com> | |||||
2020-12-18 | controllers/npad: Make press_state atomic | Morph | 2 | -2/+3 | |
2020-12-18 | util: Add URL Request Interceptor for QWebEngine | Morph | 3 | -0/+64 | |
2020-12-18 | bootmanager: Add a check whether loading is complete | Morph | 2 | -0/+6 | |
2020-12-18 | applets/web: Implement the default web browser applet frontend | Morph | 3 | -1/+24 | |
2020-12-18 | applets/web: Implement the offline browser applet backend | Morph | 2 | -13/+143 | |
2020-12-18 | applets/web: Initial implementation of the web browser applet | Morph | 3 | -2/+428 | |
2020-12-18 | applets: Remove the previous web browser applet implementation | Morph | 12 | -1039/+40 | |
2020-12-18 | system_archive: Add + and - buttons to the Nintendo Extended OSS font | Morph | 2 | -315/+343 | |
2020-12-18 | buffer_queue: better use of std::array | ameerj | 1 | -59/+46 | |
2020-12-17 | Overwrite slots instead of queuing them, add disconnect signal | ameerj | 3 | -27/+33 | |
Fix for Katana Zero and Yoshi's Crafted World | |||||
2020-12-17 | system_archive: Update Nintendo Extended OSS font | Morph | 2 | -182/+347 | |
Co-authored-by: Its-Rei <kupfel@gmail.com> | |||||
2020-12-13 | cmake: Fix generating CMake configs and linking with Boost | lat9nq | 1 | -1/+1 | |
Fixes regression by 761206cf81b271f7f4dd6a167a120325b760dbf3, causing yuzu to not build on Linux with any version of Boost except a cached 1.73 Conan version from before about a day ago. Moves the Boost requirement out of the `REQUIRED_LIBS` psuedo-2D-array for Conan to instead be manually configured, using Conan as a fallback solution if the system does not meet our requirements. Requires any update from the linux-fresh container in order to build. **DO NOT MERGE** until someone with the MSVC toolchain can verify this works there, too. | |||||
2020-12-12 | common: Update CMakeList to fix build issue with Boost. | bunnei | 1 | -2/+1 | |
2020-12-12 | controllers/npad: Validate device handles before use | Morph | 2 | -0/+45 | |
Some games such as NEKOPARA Vol. 3 send invalid device handles when calling InitializeVibrationDevice. Introduce a check to validate the device handle before use. | |||||
2020-12-12 | Revert "Merge pull request #5173 from lioncash/common-fs" | Morph | 2 | -112/+396 | |
This reverts commit ce5fcb6bb2c358b0251a2ce87945bda52789a76d, reversing changes made to 6f41763061082d5fa2ab039c554427152243cb46. | |||||
2020-12-12 | Revert "Merge pull request #5174 from ReinUsesLisp/fs-fix" | Morph | 2 | -36/+4 | |
This reverts commit 5fe55b16a11d9ec607fb8a3fdddc77a4393cd96a, reversing changes made to e94dd7e2c4fc3f7ca2c15c01bdc301be2b8a4c1b. | |||||
2020-12-12 | Revert "Merge pull request #5176 from Morph1984/fix-createfile" | Morph | 1 | -6/+2 | |
This reverts commit 6d6115475b4edccdf1bb4e96ecc3d3b1be319e76, reversing changes made to 5fe55b16a11d9ec607fb8a3fdddc77a4393cd96a. | |||||
2020-12-12 | Revert "Merge pull request #5179 from ReinUsesLisp/fs-path" | Morph | 1 | -1/+1 | |
This reverts commit 4e94d0d53af2cdb7b03ef9de23cc29f3565df97a, reversing changes made to 6d6115475b4edccdf1bb4e96ecc3d3b1be319e76. | |||||
2020-12-12 | Revert "Merge pull request #5181 from Morph1984/5174-review" | Morph | 1 | -3/+9 | |
This reverts commit cdb36aef9ec9d30bdef1953f9ed46776ae2f12af, reversing changes made to 5e9b77129f2cf8c039a8d98033cae4ac0f93f515. | |||||
2020-12-10 | vfs: Use existing type aliases consistently | Lioncash | 28 | -136/+142 | |
Makes use of the VirtualDir and VirtualFile aliases across the board instead of having a few isolated places that don't use it. | |||||
2020-12-10 | common/file_util: Simplify the behavior of CreateFullPath | Morph | 1 | -9/+3 | |
2020-12-09 | common/file_util: Let std::filesystem cast from UTF16 to std::string | ReinUsesLisp | 1 | -1/+1 | |
Fix invalid encoding paths when iterating over a directory on Windows. | |||||
2020-12-09 | vfs_real: Fix CreateFile for files without a file extension | Morph | 1 | -2/+6 | |
2020-12-09 | common/file_util: Fix and deprecate CreateFullPath, add CreateDirs | ReinUsesLisp | 2 | -4/+31 | |
Fix CreateFullPath to have its intended previous behavior (whatever that was), and deprecate it in favor of the new CreateDirs function. Unlike CreateDir, CreateDirs is marked as [[nodiscard]] to avoid new code ignoring its result value. | |||||
2020-12-09 | common/file_util: Succeed on CreateDir when the directory exists | ReinUsesLisp | 1 | -0/+5 | |
2020-12-09 | file_util: Migrate remaining file handling functions over to std::filesystem | Lioncash | 2 | -340/+100 | |
Converts creation and deletion functions over to std::filesystem, simplifying our file-handling code. Notably with this, CopyDir will now function on Windows. | |||||
2020-12-09 | file_util: Migrate Exists() and IsDirectory() over to std::filesystem | Lioncash | 2 | -57/+13 | |
Greatly simplifies our file-handling code for these functions. | |||||
2020-12-08 | svc: Remove unnecessary casts | Lioncash | 1 | -35/+25 | |
Simplifies and removes some casts. In all cases, these were generally widening from a 32-bit unsigned type to a 64-bit unsigned type, so no information would be lost from the conversion. | |||||
2020-12-08 | IPurchaseEventManager: Implement GetPurchasedEventReadableHandle | Morph | 1 | -1/+14 | |
- Used by Pokémon Café Mix - Used by DOOM: Eternal | |||||
2020-12-08 | IPurchaseEventManager: Stub Set(Default)DeliveryTarget | Morph | 1 | -2/+27 | |
- Used by Pokémon Café Mix - Used by DOOM: Eternal | |||||
2020-12-08 | aoc_u: Stub Create(Permanent)EcPurchasedEventManager | Morph | 2 | -2/+38 | |
- Used by Pokémon Café Mix - Used by DOOM: Eternal | |||||
2020-12-08 | memory: Resolve -Wdocumentation warning for Write() | Lioncash | 1 | -2/+0 | |
Write() doesn't return anything, so the @returns tag shouldn't be present. | |||||
2020-12-08 | fsp_srv: Implement OpenDataStorageWithProgramIndex | Morph | 6 | -1/+83 | |
- Used by RollerCoaster Tycoon 3: Complete Edition | |||||
2020-12-08 | file_sys: Consolidate common Title ID operations | Morph | 5 | -13/+67 | |
2020-12-08 | core: Remove unnecessary enum casts in log calls | Lioncash | 25 | -96/+90 | |
Follows the video core PR. fmt doesn't require casts for enum classes anymore, so we can remove quite a few casts. | |||||
2020-12-08 | controller: Use std::move within ConvertToFrontendParameters() | Lioncash | 1 | -3/+3 | |
Avoids unnecessary copies. | |||||
2020-12-08 | controller: Avoid unnecessary copies in ConfigurationComplete() | Lioncash | 1 | -9/+8 | |
Avoids unnecessary 1072 byte copies when querying info about controllers. | |||||
2020-12-08 | Disable analog joystick from buttons by default | german | 5 | -10/+52 | |
2020-12-07 | video_core: Make use of ordered container contains() where applicable | Lioncash | 8 | -16/+13 | |
With C++20, we can use the more concise contains() member function instead of comparing the result of the find() call with the end iterator. | |||||
2020-12-07 | ast: Improve string concat readability in operator() | Lioncash | 1 | -5/+4 | |
Provides an in-place format string to make it more pleasant to read. | |||||
2020-12-07 | gl_shader_decompiler: Elide unnecessary copies within DeclareConstantBuffers() | Lioncash | 1 | -1/+1 | |
Resolves a -Wrange-loop-analysis warning. | |||||
2020-12-07 | buffer_block: Mark interface as nodiscard where applicable | Lioncash | 1 | -7/+7 | |
Prevents logic errors from occurring from unused values. | |||||
2020-12-07 | buffer_block: Remove unnecessary includes | Lioncash | 1 | -5/+0 | |
Reduces the amount of dependencies the header pulls in. | |||||
2020-12-07 | shader_ir: std::move node within DeclareAmend() | Lioncash | 1 | -2/+2 | |
Same behavior, but elides an unnecessary atomic reference count increment and decrement. | |||||
2020-12-07 | video_core: Remove unnecessary enum class casting in logging messages | Lioncash | 33 | -148/+125 | |
fmt now automatically prints the numeric value of an enum class member by default, so we don't need to use casts any more. Reduces the line noise a bit. | |||||
2020-12-07 | maxwell_3d: Move member variables to end of class | Lioncash | 1 | -31/+32 | |
Follows our established coding style. | |||||
2020-12-07 | maxwell_3d: Resolve -Wdocumentation warning | Lioncash | 1 | -1/+1 | |
Removes a documentation comment for a non-existent member. | |||||
2020-12-07 | maxwell_3d: Remove unused dirty_pointer array | Lioncash | 1 | -2/+0 | |
This is unused and removing it shrinks the structure by 3584 bytes. | |||||
2020-12-07 | configure_motion_touch: Fix unescaped backslash in regex | comex | 1 | -2/+2 | |
Since this is inside a string literal, backslashes that are part of regex syntax have to be escaped. But that's ugly, so convert to a raw string instead. | |||||
2020-12-07 | network, sockets: Replace `POLL_IN`, `POLL_OUT`, etc. constants with an `enum class PollEvents` | comex | 6 | -71/+82 | |
Actually, two enum classes, since for some reason there are two separate yet identical `PollFD` types used in the codebase. I get that one is ABI-compatible with the Switch while the other is an abstract type used for the host, but why not use `WSAPOLLFD` directly for the latter? Anyway, why make this change? Because on Apple platforms, `POLL_IN`, `POLL_OUT`, etc. (with an underscore) are defined as macros in <sys/signal.h>. (This is inherited from FreeBSD.) So defining a variable with the same name causes a compile error. I could just rename the variables, but while I was at it I thought I might as well switch to an enum for stronger typing. Also, change the type used for values copied directly to/from the `events` and `revents` fields of the host *native* `pollfd`/`WSASPOLLFD`, from `u32` to `short`, as `short` is the correct canonical type on both Unix and Windows. | |||||
2020-12-07 | Fix "explicitly defaulted but implicitly deleted" warning | comex | 1 | -1/+1 | |
`PhysicalCore`'s move assignment operator was declared as `= default`, but was implicitly deleted because `PhysicalCore` has fields of reference type. Switch to explicitly deleting it to avoid a Clang warning. The move *constructor* is still defaulted, and is required to exist due to the use of `std::vector<PhysicalCore>`. | |||||
2020-12-07 | hle: Type check ResponseBuilder::Push arguments, and fix use in vi.cpp | comex | 2 | -34/+37 | |
- Add a type check so that calling Push with an invalid type produces a compile error rather than a linker error. - vi.cpp was calling Push with a variable of type `std::size_t`. There's no explicit overload for `size_t`, but there is one for `u64`, which on most platforms is the same type as `size_t`. On macOS, however, it isn't: both types are 64 bits, but `size_t` is `unsigned long` and `u64` is `unsigned long long`. Regardless, it makes more sense to explicitly use `u64` here instead of `size_t`. | |||||
2020-12-07 | CMakeLists,network: Create YUZU_UNIX macro to replace __unix__ | comex | 2 | -5/+5 | |
__unix__ is not predefined on Apple platforms even though they are Unix. | |||||
2020-12-07 | renderer_vulkan: Add missing `override` specifier | comex | 1 | -1/+1 | |
2020-12-07 | map_interval: Change field order to address uninitialized field warning | comex | 1 | -1/+2 | |
Clang complains about `new_chunk`'s constructor using the then-uninitialized `first_chunk` (even though it's just to get a pointer into it). | |||||
2020-12-07 | core: Mark unused fields as [[maybe_unused]] | comex | 2 | -3/+3 | |
2020-12-07 | boxcat: Avoid unnecessary object copy | comex | 1 | -1/+1 | |
2020-12-07 | nvdrv: Remove useless re-declaration of pure virtual methods that were already declared in the superclass | comex | 1 | -33/+0 | |
2020-12-07 | video_core: Adjust `NUM` macro to avoid Clang warning | comex | 3 | -3/+3 | |
The previous definition was: #define NUM(field_name) (sizeof(Maxwell3D::Regs::field_name) / sizeof(u32)) In cases where `field_name` happens to refer to an array, Clang thinks `sizeof(an array value) / sizeof(a type)` is an instance of the idiom where `sizeof` is used to compute an array length. So it thinks the type in the denominator ought to be the array element type, and warns if it isn't, assuming this is a mistake. In reality, `NUM` is not used to get array lengths at all, so there is no mistake. Silence the warning by applying Clang's suggested workaround of parenthesizing the denominator. | |||||
2020-12-06 | hle: kernel: Process: Various style fixes based on code review feedback. | bunnei | 1 | -2/+2 | |
2020-12-06 | core: cpu_manager: Fix a typo in PreemptSingleCore, which broke many games. | bunnei | 1 | -21/+26 | |
- We were reload'ing the old current scheduler, which may have changed. | |||||
2020-12-06 | hle: kernel: Thread: Various style fixes based on code review feedback. | bunnei | 1 | -22/+25 | |
2020-12-06 | hle: kernel: KScopedSchedulerLockAndSleep: Various style fixes based on code review feedback. | bunnei | 1 | -6/+6 | |
2020-12-06 | hle: kernel: KScopedLock: Various style fixes based on code review feedback. | bunnei | 1 | -6/+8 | |
2020-12-06 | hle: kernel: KAbstractSchedulerLock: Various style fixes based on code review feedback. | bunnei | 1 | -9/+7 | |
2020-12-06 | hle: kernel: KScheduler: Various style fixes based on code review feedback. | bunnei | 2 | -50/+41 | |
2020-12-06 | hle: kernel: KPriorityQueue: Various style fixes based on code review feedback. | bunnei | 1 | -29/+36 | |
2020-12-06 | hle: kernel: KAffinityMask: Various style fixes based on code review feedback. | bunnei | 1 | -17/+13 | |
2020-12-06 | hle: kernel: GlobalSchedulerContext: Various style fixes based on code review feedback. | bunnei | 2 | -5/+10 | |
2020-12-06 | common: BitSet: Various style fixes based on code review feedback. | bunnei | 1 | -23/+22 | |
2020-12-06 | hle: kernel: Use C++ style comments in KScheduler, etc. | bunnei | 4 | -152/+136 | |
2020-12-06 | kernel: KScopedSchedulerLockAndSleep: Remove unused ctor. | bunnei | 1 | -13/+7 | |
2020-12-06 | kernel: time_manager: Add missing lock guards. | bunnei | 1 | -3/+10 | |
2020-12-06 | hle: kernel: Migrate to KScopedSchedulerLock. | bunnei | 15 | -48/+92 | |
2020-12-06 | hle: kernel: Separate KScopedSchedulerLockAndSleep from k_scheduler. | bunnei | 11 | -69/+72 | |
2020-12-06 | hle: kernel: Separate KScheduler from GlobalSchedulerContext class. | bunnei | 9 | -520/+140 | |
2020-12-06 | hle: kernel: Rewrite scheduler implementation based on Mesopshere. | bunnei | 26 | -1223/+1215 | |
2020-12-06 | hle: kernel: physical_core: Clear exclusive state after each run. | bunnei | 3 | -0/+7 | |
- This is closer to pre-multicore behavior, and works a bit better. | |||||
2020-12-06 | hle: kernel: Port KAbstractSchedulerLock from Mesosphere. | bunnei | 2 | -0/+77 | |
2020-12-06 | hle: kernel: svc: Remove reschedule on svcBreak. | bunnei | 1 | -5/+0 | |
- This breaks things, and is unnecessary, since emulation will be done at this point. | |||||
2020-12-06 | hle: kernel: process: Add schedule count tracking, to be used for yield impl. | bunnei | 1 | -0/+13 | |
2020-12-06 | hle: kernel: svc: Remove unnecessary hack in svcSleep. | bunnei | 1 | -7/+0 | |
2020-12-06 | common: Port KPriorityQueue from Mesosphere. | bunnei | 2 | -0/+444 | |
2020-12-06 | common: Port BitSet from Mesosphere. | bunnei | 2 | -0/+101 | |
2020-12-06 | hle: kernel: Port KAffinityMask from Mesosphere. | bunnei | 7 | -16/+80 | |
2020-12-05 | maxwell_dma: Rename RenderEnable::Mode::FALSE and TRUE to avoid name conflict | comex | 1 | -5/+7 | |
On Apple platforms, FALSE and TRUE are defined as macros by <mach/boolean.h>, which is included by various system headers. Note that there appear to be no actual users of the names to fix up. | |||||
2020-12-05 | yuzu_cmd: Remove 'users_size' | comex | 1 | -1/+0 | |
Specifically: const auto size = sdl2_config->GetInteger("System", "users_size", 0); The variable is never used, producing a warning. I wondered if this ought to be assigning something to in `Settings`, but nothing else in the codebase ever mentions a setting called "users_size", so I guess it's safe to remove... | |||||
2020-12-05 | Update cubeb and request a persistent stream session | Vitor Kiguchi | 1 | -0/+1 | |
2020-12-05 | video_core: Resolve more variable shadowing scenarios pt.3 | Lioncash | 49 | -292/+305 | |
Cleans out the rest of the occurrences of variable shadowing and makes any further occurrences of shadowing compiler errors. | |||||
2020-12-05 | game_list_p: Resolve deprecated usage of QVariant operator< | Lioncash | 1 | -1/+2 | |
This is designated as obsolete in Qt's docs (see: https://doc.qt.io/qt-5/qvariant-obsolete.html#operator-lt) | |||||
2020-12-05 | applets: Resolve variable shadowing | Morph | 10 | -19/+19 | |
2020-12-05 | video_core: Resolve more variable shadowing scenarios pt.2 | Lioncash | 39 | -296/+305 | |
Migrates the video core code closer to enabling variable shadowing warnings as errors. This primarily sorts out shadowing occurrences within the Vulkan code. | |||||
2020-12-05 | xbyak_abi: Shorten std::size_t to size_t | Lioncash | 1 | -8/+8 | |
Makes for less reading. | |||||
2020-12-05 | xbyak_abi: Avoid implicit sign conversions | Lioncash | 1 | -2/+2 | |
2020-12-05 | system_version: Update to 11.0.0 | Chloe Marcec | 1 | -6/+6 | |
2020-12-05 | Fix telemetry-related exit crash from use-after-free | FearlessTobi | 1 | -3/+3 | |
Co-Authored-By: xperia64 <xperia64@users.noreply.github.com> | |||||
2020-12-04 | codec: Remove deprecated usage of AVCodecContext::refcounted_frames | Lioncash | 1 | -1/+0 | |
This was only necessary for use with the avcodec_decode_video2/avcoded_decode_audio4 APIs which are also deprecated. Given we use avcodec_send_packet/avcodec_receive_frame, this isn't necessary, this is even indicated directly within the FFmpeg API changes document here on 2017-09-26: https://github.com/FFmpeg/FFmpeg/blob/master/doc/APIchanges#L410 This prevents our code from breaking whenever we update to a newer version of FFmpeg in the future if they ever decide to fully remove this API member. | |||||
2020-12-04 | video_core: Resolve more variable shadowing scenarios | Lioncash | 42 | -206/+219 | |
Resolves variable shadowing scenarios up to the end of the OpenGL code to make it nicer to review. The rest will be resolved in a following commit. | |||||
2020-12-04 | nim: Stub IsLargeResourceAvailable | Morph | 1 | -1/+13 | |
- Used by Immortals Fenyx Rising | |||||
2020-12-03 | node: Mark member functions as [[nodiscard]] where applicable | Lioncash | 1 | -29/+29 | |
Prevents logic bugs from accidentally ignoring the return value. | |||||
2020-12-03 | node: Eliminate variable shadowing | Lioncash | 1 | -47/+49 | |
2020-12-03 | vp9/vic: Resolve pessimizing moves | Lioncash | 2 | -11/+11 | |
Removes the usage of moves that don't result in behavior different from a copy, or otherwise would prevent copy elision from occurring. | |||||
2020-12-03 | mouse_poller: Remove unused includes | Lioncash | 1 | -3/+1 | |
2020-12-03 | mouse_input: Invert conditional in UpdateYuzuSettings() | Lioncash | 1 | -4/+6 | |
Allows the struct to be constructed in place. | |||||
2020-12-03 | mouse_input: Remove two casts and amend some formatting | Lioncash | 1 | -11/+14 | |
Removes the use of two static casts and improves the readability of some vectors slightly. | |||||
2020-12-03 | mouse_input: Resolve a -Wdocumentation warning | Lioncash | 1 | -1/+1 | |
2020-12-03 | mouse_input: Remove unused includes | Lioncash | 2 | -7/+3 | |
2020-12-03 | audio_core: Make shadowing and unused parameters errors | Lioncash | 29 | -154/+163 | |
Moves the audio code closer to enabling warnings as errors in general. | |||||
2020-12-01 | Fix implicit conversion in mouse input | german | 1 | -6/+8 | |
2020-11-30 | Disable web applet and warning when compiling for Linux on CI | lat9nq | 1 | -0/+2 | |
yuzu's web applet does not or barely reacts to user input while open in Linux. It can be closed via 'Exit Web Applet' on the menubar, however if yuzu is in fullscreen, this is effectively a softlock as the menubar cannot be accessed. This disables building yuzu with the web applet on the Linux CI target. In addition, this disables the QMessageBox warning about not having compiled yuzu with the web applet. | |||||
2020-11-29 | kernel: scheduler: Minor cleanup to remove duplicated code. | bunnei | 2 | -46/+14 | |
2020-11-29 | kernel: time_manager: Protect access with a mutex. | bunnei | 2 | -1/+5 | |
2020-11-29 | common: fiber: Use VirtualBuffer for stack memory. | bunnei | 1 | -2/+5 | |
- This will be aligned by default, and helps memory usage. | |||||
2020-11-29 | hle: kernel: thread: Remove unused "Running" state. | bunnei | 3 | -21/+9 | |
2020-11-29 | core: arm: Implement InvalidateCacheRange for CPU cache invalidation. | bunnei | 12 | -16/+56 | |
2020-11-29 | hle: kernel: time_manager: Avoid a crash on process exit. | bunnei | 1 | -1/+4 | |
2020-11-29 | hle: kernel: AddressArbiter: Remove unused code. | bunnei | 2 | -9/+0 | |
2020-11-29 | hle: kernel: SynchronizationObject: Use atomic_bool for is_signaled. | bunnei | 1 | -1/+2 | |
2020-11-29 | common: fiber: Use boost::context instead of native fibers on Windows. | bunnei | 3 | -116/+9 | |
2020-11-29 | hle: kernel: multicore: Replace n-JITs impl. with 4 JITs. | bunnei | 15 | -72/+124 | |
2020-11-29 | Add missing types to NpadCommunicationMode | german | 1 | -0/+2 | |
2020-11-28 | audio_core: Remove temp_mix_buffer | Chloe Marcec | 2 | -3/+1 | |
It's unused and doesn't need to be initialized | |||||
2020-11-27 | CMakeLists: disable -Winvalid-offsetof | comex | 1 | -0/+1 | |
This Clang warning complains when offsetof is used on a non-standard-layout type (i.e. any class using various C++ features), even though it works fine (and is not undefined behavior as of C++17). | |||||
2020-11-27 | tests: Fix warning about comparison between signed and unsigned | comex | 1 | -2/+2 | |
2020-11-27 | core: Eliminate remaining usages of the global system instance | Lioncash | 21 | -1593/+58 | |
Removes all remaining usages of the global system instance. After this, migration can begin to migrate to being constructed and managed entirely by the various frontends. | |||||
2020-11-27 | savedata_factory: Eliminate usage of the global system instance | Lioncash | 4 | -14/+22 | |
Now there's only two meaningful instances left in core. | |||||
2020-11-27 | Stub set and get NpadCommunicationMode | german | 4 | -2/+50 | |
2020-11-27 | service: Eliminate usages of the global system instance | Lioncash | 222 | -907/+1221 | |
Completely removes all usages of the global system instance within the services code by passing in the using system instance to the services. | |||||
2020-11-26 | codec: Fix `pragma GCC diagnostic pop` missing corresponding push | comex | 1 | -0/+1 | |
2020-11-26 | vk_shader_decompiler: Implement force early fragment tests | ReinUsesLisp | 6 | -11/+19 | |
Force early fragment tests when the 3D method is enabled. The established pipeline cache takes care of recompiling if needed. This is implemented only on Vulkan to avoid invalidating the shader cache on OpenGL. | |||||
2020-11-26 | core: Reduce string copies in GetGameFileFromPath() | Lioncash | 1 | -12/+22 | |
Eliminates some minor string churn where applicable. Also eliminates an unnecessary vector copy. | |||||
2020-11-26 | Limit queue size to 10 frames | ameerj | 1 | -0/+4 | |
Workaround for ZLA, which seems to decode and queue twice as many frames as it displays. | |||||
2020-11-26 | Implement full mouse support | german | 14 | -277/+793 | |
2020-11-26 | Add multiple udp server support | german | 10 | -267/+420 | |
2020-11-26 | Address PR feedback | ameerj | 4 | -32/+33 | |
remove some redundant moves, make deleter match naming guidelines. Co-Authored-By: LC <712067+lioncash@users.noreply.github.com> | |||||
2020-11-26 | common: Add Common::DivCeil and Common::DivCeilLog2 | ReinUsesLisp | 2 | -0/+27 | |
Add an equivalent to 'Common::AlignUp(n, d) / d' and a log2 alternative. | |||||
2020-11-26 | input_common: ignore some Clang warnings after 5c4774e8ce1d | Jan Beich | 1 | -2/+2 | |
error: unknown warning option '-Werror=unused-but-set-parameter'; did you mean '-Werror=unused-parameter'? [-Werror,-Wunknown-warning-option] error: unknown warning option '-Werror=unused-but-set-variable'; did you mean '-Werror=unused-const-variable'? [-Werror,-Wunknown-warning-option] | |||||
2020-11-25 | Queue decoded frames, cleanup decoders | ameerj | 10 | -338/+227 | |
2020-11-25 | cleanup unneeded comments and newlines | ameerj | 1 | -6/+0 | |
2020-11-25 | hid: Check if applet_resource exists in InitializeVibrationDevice | Morph | 1 | -2/+4 | |
2020-11-25 | Refactor MaxwellToSpirvComparison. Use Common::BitCast | ameerj | 3 | -31/+34 | |
Co-Authored-By: Rodrigo Locatti <reinuseslisp@airmail.cc> | |||||
2020-11-25 | Address PR feedback from Rein | ameerj | 5 | -40/+31 | |
2020-11-25 | vulkan_renderer: Alpha Test Culling Implementation | ameerj | 5 | -2/+76 | |
Used by various textures in many titles, e.g. SSBU menu. | |||||
2020-11-25 | core: cpu_manager: Fix shutdown crash when closing before emulation starts. | bunnei | 1 | -7/+17 | |
2020-11-25 | frontend: yuzu (qt): Register a callback for ExecuteProgram. | bunnei | 4 | -7/+38 | |
2020-11-25 | service: am: Implement ExecuteProgram and required stubs. | bunnei | 2 | -3/+34 | |
- This is used by Super Mario 3D All-Stars. | |||||
2020-11-25 | core: loader: Implement support for loading indexed programs. | bunnei | 12 | -26/+74 | |
2020-11-24 | hle: services: Fix a crash with improper NVFlinger lifetime management. (#4977) | bunnei | 17 | -100/+104 | |
* hle: services: Fix a crash with improper NVFlinger lifetime management. - This crash would happen when attempting to shutdown yuzu early on in boot. | |||||
2020-11-24 | nvdrv, video_core: Don't index out of bounds when given invalid syncpoint ID | comex | 2 | -13/+20 | |
- Use .at() instead of raw indexing when dealing with untrusted indices. - For the special case of WaitFence with syncpoint id UINT32_MAX, instead of crashing, log an error and ignore. This is what I get when running Super Mario Maker 2. | |||||
2020-11-24 | input_common: Fix typo in gc_poller.cpp with [[maybe_unused]]. | bunnei | 1 | -2/+2 | |
2020-11-24 | nvservices: Reintroducee IoctlCtrl | Chloe Marcec | 24 | -91/+214 | |
Fixes regression caused by #4907 which caused games like Breath of the Wild 1.0.0 not to boot. | |||||
2020-11-24 | input_common: Add more missing [[maybe_unused]] from #4927. | bunnei | 3 | -4/+6 | |
2020-11-24 | Fix warnings in core/frontend/input.h with [[maybe_unused]] | bunnei | 1 | -1/+3 | |
Fixes build break due to #4927 | |||||
2020-11-23 | Overhaul EmuWindow::PollEvents to fix yuzu-cmd calling SDL_PollEvents off main thread | comex | 10 | -73/+68 | |
EmuWindow::PollEvents was called from the GPU thread (or the CPU thread in sync-GPU mode) when swapping buffers. It had three implementations: - In GRenderWindow, it didn't actually poll events, just set a flag and emit a signal to indicate that a frame was displayed. - In EmuWindow_SDL2_Hide, it did nothing. - In EmuWindow_SDL2, it did call SDL_PollEvents, but this is wrong because SDL_PollEvents is supposed to be called on the thread that set up video - in this case, the main thread, which was sleeping in a busyloop (regardless of whether sync-GPU was enabled). On macOS this causes a crash. To fix this: - Rename EmuWindow::PollEvents to OnFrameDisplayed, and give it a default implementation that does nothing. - In EmuWindow_SDL2, do not override OnFrameDisplayed, but instead have the main thread call SDL_WaitEvent in a loop. | |||||
2020-11-23 | svc: Remove unnecessary [[maybe_unused]] tag | Lioncash | 1 | -1/+1 | |
The parameter is used in this function, so this suppression isn't necessary. | |||||
2020-11-22 | input_common: Treat warnings as errors | Lioncash | 8 | -10/+23 | |
Migrates over warnings as errors for input common to match how the common library treats warnings as errors. | |||||
2020-11-21 | applets/controller: Use a pair of emulated controller index to controller type | Morph | 2 | -44/+96 | |
2020-11-21 | configure_input_player: Use the npad style set to show the available controllers | Morph | 2 | -55/+96 | |
This will reduce the likelihood of an invalid controller type to be set within a game | |||||
2020-11-21 | gl_rasterizer: Remove warning of untested alpha test | ReinUsesLisp | 1 | -4/+0 | |
Alpha test has been proven to only affect the first render target. | |||||
2020-11-20 | olsc: Move member initialization to after member functions. | bunnei | 1 | -2/+2 | |
2020-11-20 | async_shaders: emplace threads into the worker thread vector | Lioncash | 1 | -2/+2 | |
Same behavior, but constructs the threads in place instead of moving them. | |||||
2020-11-20 | async_shaders: Simplify implementation of GetCompletedWork() | Lioncash | 1 | -2/+1 | |
This is equivalent to moving all the contents and then clearing the vector. This avoids a redundant allocation. | |||||
2020-11-20 | async_shaders: Simplify moving data into the pending queue | Lioncash | 1 | -13/+8 | |
2020-11-20 | async_shaders: std::move data within QueueVulkanShader() | Lioncash | 1 | -2/+2 | |
Same behavior, but avoids redundant copies. While we're at it, we can simplify the pushing of the parameters into the pending queue. | |||||
2020-11-20 | gl_rasterizer: Make floating-point literal a float | Lioncash | 1 | -1/+1 | |
Gets rid of an unnecessary expansion from float to double. | |||||
2020-11-20 | shader_bytecode: Make use of [[nodiscard]] where applicable | Lioncash | 1 | -73/+79 | |
Ensures that all queried values are made use of. | |||||
2020-11-20 | shader_bytecode: Eliminate variable shadowing | Lioncash | 1 | -15/+17 | |
2020-11-20 | common/bit_cast: Add function matching std::bit_cast without constexpr | ReinUsesLisp | 2 | -0/+23 | |
Add a std::bit_cast-like function archiving the same runtime results as the standard function, without compile time support. This allows us to use bit_cast while we wait for compiler support, it can be trivially replaced in the future. | |||||
2020-11-19 | hle: service: Stub OLSC Initialize and SetSaveDataBackupSettingEnabled functions. | bunnei | 6 | -0/+91 | |
- Used by Animal Cross: New Horizons v1.6.0 update, minimal stub gets this update working. | |||||
2020-11-19 | Modify rumble amplification | german77 | 2 | -4/+3 | |
2020-11-19 | virtual_buffer: Do nothing on resize() calls with same sizes | Lioncash | 1 | -1/+6 | |
Prevents us from churning memory by freeing and reallocating a memory block that would have already been adequate as is. | |||||
2020-11-18 | patch_manager: Remove usages of the global system instance | Lioncash | 26 | -157/+259 | |
With this, only 19 usages of the global system instance remain within the core library. We're almost there. | |||||
2020-11-18 | core: Remove unused private Init function for the System class | Lioncash | 2 | -16/+4 | |
This isn't used, so it can be removed. | |||||
2020-11-18 | core: Make use of [[nodiscard]] with the System class | Lioncash | 4 | -85/+82 | |
Given this is a central class, we should flag cases where the return value of some functions not being used is likely a bug. | |||||
2020-11-18 | configure_input_player: Use static qualifier for IsProfileNameValid() | Lioncash | 1 | -1/+1 | |
This is a static member function, so we don't need use an existing instance to call this function. | |||||
2020-11-18 | virtual_buffer: Add compile-time type-safety guarantees with VirtualBuffer | Lioncash | 1 | -0/+6 | |
VirtualBuffer makes use of VirtualAlloc (on Windows) and mmap() (on other platforms). Neither of these ensure that non-trivial objects are properly constructed in the allocated memory. To prevent potential undefined behavior occurring due to that, we can add a static assert to loudly complain about cases where that is done. | |||||
2020-11-18 | page_table: Allow page tables to be moved | Lioncash | 4 | -9/+30 | |
Makes page tables and virtual buffers able to be moved, but not copied, making the interface more flexible. Previously, with the destructor specified, but no move assignment or constructor specified, they wouldn't be implicitly generated. | |||||
2020-11-18 | page_table: Add missing doxygen parameters to Resize() | Lioncash | 1 | -0/+2 | |
Resolves two -Wdocumentation warnings. | |||||
2020-11-18 | page_table: Remove unnecessary header inclusions | Lioncash | 1 | -4/+0 | |
Prevents indirect inclusions for these headers. | |||||
2020-11-17 | rasterizer_interface: Make use of [[nodiscard]] where applicable | Lioncash | 1 | -8/+9 | |
2020-11-17 | render_base: Make use of [[nodiscard]] where applicable | Lioncash | 1 | -11/+11 | |
2020-11-17 | gpu: Make use of [[nodiscard]] where applicable | Lioncash | 1 | -31/+35 | |
2020-11-17 | Addressed changes | Chloe Marcec | 4 | -10/+13 | |
2020-11-17 | audren: Make use of nodiscard, rework downmixing, release all buffers | Chloe Marcec | 13 | -102/+194 | |
Preliminary work for upmixing & general cleanup. Fixes basic issues in games such as Shovel Knight and slightly improves the LEGO games. Upmixing stitll needs to be implemented. Audio levels in a few games will be fixed as we now use the downmix coefficients when possible instead of supplying our own | |||||
2020-11-16 | sdl_impl: Pump SDL Events at 1000 Hz | Morph | 1 | -1/+1 | |
2020-11-16 | configure_input: Accommodate for the mouse input device engine | Morph | 2 | -2/+18 | |
2020-11-16 | hid: Reimplement Begin/EndPermitVibrationSession | Morph | 3 | -5/+17 | |
Upon further investigation, these commands allow temporary vibrations even when the "Controller Vibration" system setting is disabled. As a result, vibrations are allowed when either the system setting or this flag is set to true. Therefore, we can only block vibrations when both flags are set to false. | |||||
2020-11-16 | controllers/npad: Load input devices on init | Morph | 1 | -0/+2 | |
2020-11-16 | configure_input: Update the input profiles for other player tabs | Morph | 4 | -11/+38 | |
2020-11-16 | general: Fix compiler warnings on linux and miscellaneous changes | Morph | 12 | -22/+31 | |
2020-11-16 | sdl_impl: Revert to the "old" method of mapping sticks | Morph | 3 | -33/+29 | |
Not all controllers have a SDL_GameController binding. This caused controllers not present in the SDL GameController database to have buttons mapped instead of axes. Furthermore, it was not possible to invert the axes when it could be useful such as emulating a horizontal single joycon or other potential cases. This allows us to invert the axes by reversing the order of mapping (vertical, then horizontal). | |||||
2020-11-16 | applets/controller: Change the input button to create input profiles | Morph | 10 | -100/+117 | |
Co-authored-by: Its-Rei <kupfel@gmail.com> | |||||
2020-11-16 | controllers/npad: Remove the old vibration filter | Morph | 4 | -65/+64 | |
Previously we used a vibration filter that filters out amplitudes close to each other. It turns out there are cases where this results into vibrations that are too inaccurate. Remove this and move the 100Hz vibration filter (Only allowing a maximum of 100 vibrations per second) from sdl_impl to npad when enable_accurate_vibrations is set to false. | |||||
2020-11-16 | input: Disconnect a controller prior to connecting a new one | Morph | 2 | -50/+73 | |
Some games do not respond to a change in controller type if 1) The controller is not disconnected prior to being reconnected and/or 2) The controller is reconnected instantly after being disconnected. Since it is not possible to change controllers instantly on hardware and requiring a disconnect prior to connecting a new one, we should emulate this as well with a small delay, fixing the aforementioned issue. | |||||
2020-11-16 | hid: Implement InitializeVibrationDevice and IsVibrationDeviceMounted | Morph | 3 | -12/+66 | |
2020-11-16 | input_common: Add VibrationDevice and VibrationDeviceFactory | Morph | 19 | -101/+327 | |
A vibration device is an input device that returns an unsigned byte as status. It represents whether the vibration device supports vibration or not. If the status returns 1, it supports vibration. Otherwise, it does not support vibration. | |||||
2020-11-16 | configure_input: Add per-player vibration | Morph | 16 | -28/+730 | |
Allows for enabling and modifying vibration and vibration strength per player. Also adds a toggle for enabling/disabling accurate vibrations. Co-authored-by: Its-Rei <kupfel@gmail.com> | |||||
2020-11-16 | settings: Remove global vibration strength modifier | Morph | 9 | -19/+1 | |
This will be replaced in favor of per-player vibration strength modifiers. | |||||
2020-11-16 | hid: Mark Begin/EndPermitVibrationSession as stubs | Morph | 3 | -18/+4 | |
The implementation of these commands seem incomplete and causes rumble in Super Mario Party to stop working since only EndPermitVibrationSession is called. Thus, these are better off being marked as a stub until this can be investigated more thoroughly. | |||||
2020-11-16 | controllers/npad: Send an empty vibration on destruction/deactivation | Morph | 3 | -22/+38 | |
This stops all controllers from continuously vibrating when emulation is stopped. | |||||
2020-11-16 | hid: Stub IsVibrationDeviceMounted | Morph | 2 | -1/+23 | |
- Used in Super Mario Odyssey | |||||
2020-11-16 | controllers/npad: Add heuristics to reduce rumble state changes | Morph | 3 | -35/+72 | |
Sending too many state changes in a short period of time can cause massive performance issues. As a result, we have to use several heuristics to reduce the number of state changes to minimize/eliminate this performance impact while maintaining the quality of these vibrations as much as possible. | |||||
2020-11-16 | configure_input: Hook up the vibration percentage spinbox | Morph | 11 | -3/+26 | |
This allows setting the vibration strength percentage anywhere from 1% to 100%. Also hooks up the remaining motion button and checkbox in the Controller Applet. | |||||
2020-11-16 | controllers/npad: Stop games from vibrating incorrect controllers | Morph | 1 | -0/+10 | |
Fixes vibration in 1-2 Switch and potentially other games where they would vibrate both players' joycons at the same time. | |||||
2020-11-16 | hid: Fix controller rumble based on new research | Morph | 3 | -43/+69 | |
This fixes the issue where rumble is only sent to the first controller. Now, individual controllers can receive their own rumble commands. | |||||
2020-11-16 | hid: Pop a struct of parameters instead of popping individual parameters | Morph | 1 | -103/+237 | |
Some parameters need to be doubleword aligned due to the presence of the applet_resource_user_id. Previously, this value was invalid in many commands where it was not doubleword aligned when popped. | |||||
2020-11-16 | hid: Reorder all HID commands | Morph | 5 | -217/+232 | |
Reorders all HID commands in command id order. | |||||
2020-11-16 | hid: Implement GetVibrationDeviceInfo | Morph | 2 | -3/+39 | |
The first u32 describes the vibration device type which is a Linear Resonant Actuator used in Nintendo Switch controller hardware. The second u32 describes the vibration device position, in this case distinguishing between left and right vibration actuators. Pro Controllers have 2 LRAs each that can vibrate independently of each other, which means they have 2 distinct vibration device handles to distinguish between the two actuators. Similarly for joycons, the left joycon can be distinguished from the right joycon through the vibration device handle since each joycon has 1 LRA. | |||||
2020-11-16 | hid: Stub InitializeVibrationDevice | Morph | 1 | -3/+11 | |
2020-11-16 | controllers/npad: Rename NPadType to NpadStyleSet | Morph | 3 | -9/+9 | |
This more accurately represents the underlying type and avoids confusion with NpadType | |||||
2020-11-16 | controllers/npad: Add DeviceHandle struct | Morph | 1 | -27/+50 | |
A DeviceHandle describes a vibration device or six-axis sensor based on the npad type, npad id, and device index/position | |||||
2020-11-16 | configure_input_player: Change "Defaults" button behavior | Morph | 2 | -35/+30 | |
RestoreDefaults() now restores the selected devices' mappings using UpdateMappingWithDefaults(). This allows us to move the keyboard mapping from RestoreDefaults() to UpdateMappingWithDefaults(). | |||||
2020-11-16 | settings: Preparation for per-game input settings | Morph | 19 | -115/+167 | |
2020-11-16 | udp/client: Reduce testing period to 5 seconds | Morph | 1 | -1/+1 | |
2020-11-16 | config: Migrate config files into config/custom | Morph | 4 | -21/+61 | |
Co-authored-by: lat9nq <lat9nq@virginia.edu> | |||||
2020-11-16 | controllers/npad: Connect a controller on init if none are connected | Morph | 2 | -1/+15 | |
2020-11-16 | applets/controller: Auto accept a valid single player configuration | Morph | 3 | -14/+24 | |
2020-11-16 | bootmanager: Allow mouse clicks only if touch is disabled | Morph | 1 | -3/+13 | |
Previously mouse clicks will not register when touch is disabled. This rectifies that and allows mouse clicks to be mapped to other buttons if the touchscreen is disabled. | |||||
2020-11-16 | input_profiles: Implement input profiles | Morph | 13 | -130/+509 | |
2020-11-16 | configure_input_player: Implement input exclusivity and persistence | Morph | 4 | -138/+205 | |
With this, the "Input Devices" combobox should accurately reflect the input device being used and disallows inputs from other input devices unless the input device is set to "Any". | |||||
2020-11-16 | ui/themes: Cleanup UI | Morph | 13 | -397/+263 | |
2020-11-15 | motion_input: Mark constructor as explicit | Lioncash | 1 | -1/+1 | |
2020-11-15 | motion_input: Mark member functions as [[nodiscard]] where applicable | Lioncash | 1 | -10/+11 | |
2020-11-11 | maxwell_3d: Use insert instead of loop push_back | ReinUsesLisp | 1 | -3/+1 | |
This reduces the overhead of bounds checking on each element. It won't reduce the cost of allocation because usually this vector's capacity is usually large enough to hold whatever we push to it. | |||||
2020-11-11 | maxwell_3d: Move code to separate functions | ReinUsesLisp | 2 | -151/+124 | |
Deduplicate some code and put it in separate functions so it's easier to understand and profile. | |||||
2020-11-10 | fix minor clang error | german | 1 | -1/+1 | |
2020-11-10 | Addressed issues | Chloe Marcec | 10 | -17/+86 | |
2020-11-10 | core: Make nvservices more standardized | Chloe Marcec | 26 | -903/+1156 | |
2020-11-10 | bootmanager: Address review comments | lat9nq | 1 | -12/+16 | |
Changes QMessageBox usages to warnings, as the problems they bring to light are being safely handled by the application and do not warrant something of the "critical" level. Changes LOG_CRITICAL to LOG_ERROR for the same reason. Preferring ERROR to WARNING as yuzu is denying loading of any guest applications after checking for these conditions. Moved logging the GL_RENDERER string into GetUnsupportedGLExtensions() to make more clear that unsupported extensions were already being logged. Makes placement of the logs easier to understand later, as well. | |||||
2020-11-10 | bootmanager: Log and show GL_RENDERER string when GPU is insufficient | lat9nq | 1 | -3/+19 | |
Changes the first message to not include the OpenGL version, as the error is caused by OpenGL failing to load. Adds a new check for OpenGL version 4.3. This will display a message with a similar error as well as the GL_RENDERER string. Adds a CRITICAL log message when triggered. This prevents a crash with yuzu trying to use older OpenGL versions. Modifies the unsupported extension message to output the GL_RENDERER string in the message, as well as logging the string. | |||||
2020-11-08 | ipc_helpers: Remove usage of the global system instance | Lioncash | 16 | -7/+23 | |
Resolves numerous deprecation warnings throughout the codebase due to inclusion of this header. Now building core should be significantly less noisy (and also relying on less global state). This also uncovered quite a few modules that were relying on indirect includes, which have also been fixed. | |||||
2020-11-08 | cpu_interrupt_handler: Mark move contructor/assignment as deleted | Lioncash | 1 | -2/+2 | |
The interrupt handler contains a std::atomic_bool, which isn't copyable or movable, so the special move member functions will always be deleted, despite being defaulted. This can resolve warnings on clang and GCC. | |||||
2020-11-08 | Allow to dial any angle with digital joystick | german | 1 | -19/+103 | |
2020-11-08 | applets: Rename LibraryAppletVersion to ControllerAppletVersion | Morph | 2 | -15/+15 | |
2020-11-08 | applets/controller: Pop normal data for StrapGuide and FirmwareUpdate | Morph | 2 | -6/+19 | |
2020-11-08 | applets/controller: Introduce additional checks for mode and caller | Morph | 2 | -5/+39 | |
Some games like Cave Story+ set invalid values in the ControllerPrivateArg's mode and caller fields. Use other fields to determine the appropriate mode and caller should either or both fields be invalid. | |||||
2020-11-08 | applets/controller: Add ControllerUpdateFirmwareArg struct | Morph | 1 | -0/+7 | |
2020-11-07 | settings: log value of CPU_Accuracy | lat9nq | 1 | -0/+1 | |
2020-11-07 | video_core: dma_pusher: Remove integrity check on command lists. | bunnei | 3 | -29/+1 | |
- This seems to cause softlocks in Breath of the Wild. | |||||
2020-11-07 | hle: service: caps_u: Stub GetAlbumFileList3AaeAruid. | bunnei | 2 | -9/+17 | |
- This works similiar to GetAlbumContentsFileListForApplication. - Since we do not implement the album, this should be safe to stub for now. - Used by Super Smash Bros. Ultimate (newer updates) in World of Light. | |||||
2020-11-07 | common/fiber: Move all member variables into impl class | Lioncash | 2 | -89/+86 | |
Hides all of the implementation details for users of the class. This has the benefit of reducing includes and also making the fiber classes movable again. | |||||
2020-11-06 | settings: Simplify initializer of resolution factor | Lioncash | 1 | -1/+1 | |
This can use a braced initializer to accomplish the same thing with less code. | |||||
2020-11-05 | General: Fix clang build | Lioncash | 4 | -7/+14 | |
Allows building on clang to work again | |||||
2020-11-04 | core/settings: Move configuring_global behind an API | Lioncash | 9 | -39/+50 | |
Rather than have directly modified global state here, we can make it an implementation detail and have an interface that changes are queried through. | |||||
2020-11-04 | core: Remove usage of unicorn | Lioncash | 11 | -418/+15 | |
Unicorn long-since lost most of its use, due to dynarmic gaining support for handling most instructions. At this point any further issues encountered should be used to make dynarmic better. This also allows us to remove our dependency on Python. | |||||
2020-11-02 | common: Enable warnings as errors | Lioncash | 9 | -31/+49 | |
Cleans up common so that we can enable warnings as errors. | |||||
2020-11-02 | nvdec: Make use of [[nodiscard]] where applicable | Lioncash | 7 | -16/+16 | |
Prevents bugs from occurring where the results of a function are accidentally discarded | |||||
2020-11-01 | fixup! hle service: nvdrv: nvhost_gpu: Update to use SyncpointManager and other improvements. | bunnei | 2 | -3/+11 | |
2020-11-01 | core: Initialize GPU before services. | bunnei | 1 | -4/+6 | |
2020-11-01 | hle service: nvdrv: nvhost_gpu: Update to use SyncpointManager and other improvements. | bunnei | 3 | -46/+106 | |
- Refactor so that SubmitGPFIFO and KickoffPB use shared functionality. - Implement add_wait and add_increment flags. | |||||
2020-11-01 | video_core: dma_pusher: Add support for integrity checks. | bunnei | 2 | -0/+27 | |
- Log corrupted command lists, rather than crash. | |||||
2020-11-01 | video_core: dma_pusher: Add support for prefetched command lists. | bunnei | 2 | -25/+52 | |
2020-11-01 | service: hle: nvflinger: Fix potential shutdown crash when GPU is destroyed. | bunnei | 1 | -0/+4 | |
2020-11-01 | video_core: gpu: Implement WaitFence and IncrementSyncPoint. | bunnei | 3 | -28/+70 | |
2020-11-01 | hle service: nvdrv: nvhost_ctrl: Update to use SyncpointManager. | bunnei | 3 | -9/+31 | |
2020-11-01 | hle service: nvdrv: Update to instantiate SyncpointManager. | bunnei | 2 | -5/+18 | |
2020-11-01 | hle: service: nvdrv: Implement SyncpointManager, to manage syncpoints. | bunnei | 4 | -1/+127 | |
2020-11-01 | Rename to align with switchbrew and remove gpu function (#4714) | Levi Behunin | 2 | -16/+10 | |
* Rename to align with switchbrew * Rename to align with switchbrew and remove gpu function that checks if clearing should be done. | |||||
2020-10-31 | hle: service: ldr: Implement UnloadNrr. | bunnei | 1 | -1/+15 | |
- Used by Final Fantasy X/X-2 HD Remaster. | |||||
2020-10-30 | CMakeLists: Resolve MSVC build failures | Lioncash | 1 | -1/+0 | |
Prevents the compiler tripping up about Windows headers. | |||||
2020-10-30 | video_core: unbreak -Werror in NVDEC with Clang | Jan Beich | 1 | -1/+1 | |
src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp:41:15: error: unused variable 'OutOfMemory' [-Werror,-Wunused-const-variable] constexpr u32 OutOfMemory{static_cast<u32>(-12)}; ^ | |||||
2020-10-30 | General: Catch more expressions with no effect on MSVC | Lioncash | 1 | -0/+4 | |
MSVC lets us fine-tune catching expressions with no side-effects a little more. | |||||
2020-10-30 | General: Make ignoring a discarded return value an error | Lioncash | 3 | -6/+17 | |
Allows our CI to catch more potential bugs. This also removes the [[nodiscard]] attribute of IOFile's Open member function. There are cases where a file may want to be opened, but have the status of it checked at a later time. | |||||
2020-10-30 | common/stream: Be explicit with copy and move operators | Lioncash | 1 | -3/+9 | |
2020-10-30 | vp9: Be explicit with copy and move operators | Lioncash | 1 | -0/+18 | |
It's deprecated in the language to autogenerate these if the destructor for a type is specified, so we can explicitly specify how we want these to be generated. | |||||
2020-10-30 | vp9: Mark functions with [[nodiscard]] where applicable | Lioncash | 2 | -13/+13 | |
Prevents values from mistakenly being discarded in cases where it's a bug to do so. | |||||
2020-10-30 | vp9: Provide a default initializer for "hidden" member | Lioncash | 1 | -1/+1 | |
The API of VP9 exposes a WasFrameHidden() function which accesses this member. Given the constructor previously didn't initialize this member, it's a potential vector for an uninitialized read. Instead, we can initialize this to a deterministic value to prevent that from occurring. | |||||
2020-10-30 | vp9: Make some member functions internally linked | Lioncash | 2 | -58/+54 | |
These helper functions don't directly modify any member state and can be hidden from view. | |||||
2020-10-30 | General: Resolve a few missing initializer warnings | Lioncash | 5 | -4/+24 | |
Resolves a few -Wmissing-initializer warnings. | |||||
2020-10-29 | async_shaders: Increase Async worker thread count for 8+ thread cpus | ameerj | 1 | -8/+9 | |
Adds 1 async worker thread for every 2 available threads above 8 | |||||
2020-10-29 | kernel/process: Add missing <ctime> include | Morph | 1 | -0/+1 | |
Fixes compilation on MSVC | |||||
2020-10-29 | web_service: follow-up fix to #4842 ... | liushuyu | 1 | -5/+0 | |
* The web_service http request is now fixed on Windows (R) platform. * The issue is due to a complicated race-condition in `httplib`, a detailed explanation is available at https://github.com/yhirose/cpp-httplib/pull/701 * A pending Pull Request on `httplib` has been applied to remedy the said race-condition. * The socket availability check is removed due to a behavioral chice of `httplib` that a socket will not be created before any actual request is sent. | |||||
2020-10-29 | Add hotplug, rumble and fix 3rd party adapters for the GC adapter | german | 3 | -303/+433 | |
2020-10-29 | web_service: web_backend: Handle socket errors with GenericRequest. | bunnei | 1 | -0/+11 | |
- Fixes a shutdown crash when we try to submit telemetry if there is a service issue. | |||||
2020-10-29 | video_core: cdma_pusher: Add missing LOG_DEBUG field in ExecuteCommand. | bunnei | 1 | -1/+1 | |
2020-10-28 | shader: Partially implement texture cube array shadow | ReinUsesLisp | 3 | -25/+37 | |
This implements texture cube arrays with shadow comparisons but doesn't fix the asserts related to it. Fixes out of bounds reads on swizzle constructors and makes them use bounds checked ::at instead of the unsafe operator[]. | |||||
2020-10-28 | shader/arithmetic: Implement FCMP immediate + register variant | ReinUsesLisp | 2 | -1/+4 | |
Trivially add the encoding for this. | |||||
2020-10-28 | video_core: Enforce -Wredundant-move and -Wpessimizing-move | ReinUsesLisp | 4 | -4/+5 | |
Silence three warnings and make them errors to avoid introducing more in the future. | |||||
2020-10-28 | video_core: Enforce -Werror=type-limits | ReinUsesLisp | 2 | -1/+2 | |
Silences one warning and avoids introducing more in the future. | |||||
2020-10-28 | common/fiber: Take shared_ptr<Fiber> by copy in YieldTo | ReinUsesLisp | 2 | -3/+3 | |
YieldTo does not intend to modify the passed shared_ptrs. Pass it by copy to keep a reference count while this function executes. | |||||
2020-10-28 | tests: Fix data race in fibers test | ReinUsesLisp | 1 | -31/+40 | |
Previous to this commit, the tests were using operator[] from unordered_map to query elements but this silently inserts empty elements when they don't exist. If all threads were executed without concurrency, this wouldn't be an issue, but the same unordered_map could be written from two threads at the same time. This is a data race and makes some previously inserted elements invisible for a short period of time, causing them to insert and return an empty element. This default constructed element (a zero) was used to index an array of fibers that asserted when one of them was nullptr, shutting the test session off. To address this issue, lock on thread id reads and writes. This could be a shared mutex to allow concurrent reads, but the definition of std::this_thread::get_id is fuzzy when using non-standard techniques like fibers. I opted to use a standard mutex. While we are at it, fix the included headers. | |||||
2020-10-28 | service: Update function tables | Lioncash | 5 | -1/+7 | |
Updates function tables according to info on SwitchBrew. | |||||
2020-10-27 | web_backend: fix a regression introduced in 39c8d18 | liushuyu | 2 | -20/+2 | |
* A regression was in 39c8d18 and token verification function was broken. * The reason being `httplib` now requires OpenSSL 1.1+ API while LibreSSL 2.x provided OpenSSL 1.0 compatible API. * The bundled LibreSSL has been updated to 3.2.2 so it now provides OpenSSL 1.1 compatible API now. * Also the path hint has been added so that it will find the correct path to the CA certs on *nix systems. * An option is provided so that *nix system distributions/providers can use their own SSL implementations when compiling Yuzu/Citra to (hopefully) complies with their maintenance guidelines. * LURLParse is also removed since `httplib` can handle `scheme:host:port` string itself now. | |||||
2020-10-27 | sync_manager: Amend parameter order of calls to SyncptIncr constructor | Lioncash | 2 | -9/+9 | |
Corrects some cases where the arguments would be incorrectly swapped. | |||||
2020-10-27 | h264: Make WriteUe take a u32 | Lioncash | 2 | -7/+8 | |
Enforces the type of the desired value in calling code. | |||||
2020-10-27 | vp9: std::move buffer within ComposeFrameHeader() | Lioncash | 1 | -1/+1 | |
We can move the buffer here to avoid a heap reallocation | |||||
2020-10-27 | vp9: Remove dead code | Lioncash | 1 | -6/+0 | |
2020-10-27 | vp9: Join declarations with assignments | Lioncash | 1 | -7/+8 | |
2020-10-27 | vp9: Remove pessimizing moves | Lioncash | 1 | -2/+2 | |
The move will already occur without std::move. | |||||
2020-10-27 | vp9: Resolve variable shadowing | Lioncash | 1 | -4/+4 | |
2020-10-27 | nvdec: Tidy up header includes | Lioncash | 13 | -62/+59 | |
Prevents a few unnecessary inclusions. | |||||
2020-10-27 | yuzu: settings: Enable multicore, asynch GPU, and assembly shaders by default. | bunnei | 3 | -11/+11 | |
- In general, this is now the preferred settings for most games. # Conflicts: # src/yuzu/configuration/config.cpp | |||||
2020-10-27 | hle/kernel: Remove unused registered_core_threads to fix data races | ReinUsesLisp | 1 | -5/+0 | |
This member was only used on asserts and it triggered data races. Remove it to fix them. | |||||
2020-10-27 | video_core: NVDEC Implementation | ameerj | 50 | -310/+3909 | |
This commit aims to implement the NVDEC (Nvidia Decoder) functionality, with video frame decoding being handled by the FFmpeg library. The process begins with Ioctl commands being sent to the NVDEC and VIC (Video Image Composer) emulated devices. These allocate the necessary GPU buffers for the frame data, along with providing information on the incoming video data. A Submit command then signals the GPU to process and decode the frame data. To decode the frame, the respective codec's header must be manually composed from the information provided by NVDEC, then sent with the raw frame data to the ffmpeg library. Currently, H264 and VP9 are supported, with VP9 having some minor artifacting issues related mainly to the reference frame composition in its uncompressed header. Async GPU is not properly implemented at the moment. Co-Authored-By: David <25727384+ogniK5377@users.noreply.github.com> | |||||
2020-10-27 | kernel: Use the current time as the default RNG seed | lat9nq | 1 | -1/+1 | |
Use the current time, not zero, as the default RNG seed. | |||||
2020-10-27 | controller: Pass ControllerParameters by reference in ReconfigureControllers() | Lioncash | 4 | -7/+9 | |
Prevents unnecessary copies and heap reallocations from occurring. | |||||
2020-10-27 | hle: services: TimeZoneContentManager: This can be made explicit. | bunnei | 1 | -1/+1 | |
2020-10-27 | core: cpu_manager: Add missing call to MicroProfileOnThreadExit(). | bunnei | 1 | -0/+2 | |
- Fixes an occasional crash when trying to launch subsequent games. | |||||
2020-10-25 | general: Use template deduction guides for lock_guard | Lioncash | 2 | -2/+2 | |
Same behavior, less code. | |||||
2020-10-25 | controller: Convert led_patterns integer literals to bool literals | Lioncash | 1 | -9/+9 | |
'bool' isn't always guaranteed to be the same size as an int, so this can technically cause truncation warnings if we support other platforms. | |||||
2020-10-25 | applets/profile_select: Resolve a warning in exec() | Morph | 1 | -1/+1 | |
Resolves a warning where not all control paths return a value. | |||||
2020-10-22 | Don't ask for profile when there's only one. | Kewlan | 3 | -16/+20 | |
2020-10-22 | core: Fix clang build pt.3 | Lioncash | 4 | -16/+6 | |
Should finally resolve building with clang. | |||||
2020-10-21 | sdl_impl: Fix controller reconnection issues | Morph | 1 | -85/+84 | |
It turns out that after a controller is disconnected, there is a chance that events from the previous controller are sent/processed after it has been disconnected. This causes the previously disconnected controller to reappear as connected due to GetSDLJoystickBySDLID() emplacing this controller back to the map. Fix this by only returning an SDLJoystick if and only if it exists in the map. | |||||
2020-10-21 | core: Fix clang build pt.2 | Lioncash | 2 | -4/+10 | |
Resolves the clang build issue in a more unintrusive way. | |||||
2020-10-21 | Revert "core: Fix clang build" | bunnei | 104 | -904/+665 | |
2020-10-21 | video_core: Conditially activate relevant compiler warnings | Lioncash | 1 | -2/+4 | |
These compiler flags aren't shared with clang, so specifying these flags unconditionally can lead to a bit of warning spam. While we're in the area, we can also enable -Wunused-but-set-parameter given this is almost always a bug. | |||||
2020-10-21 | kernel: Fix build with recent compiler flag changes | Lioncash | 1 | -4/+8 | |
This slipped through the cracks due to another change being merged before the compiler flag changes. | |||||
2020-10-20 | configure_input_player: Fix modifier buttons | Morph | 3 | -25/+23 | |
Fix them for real this time, now they finally work. | |||||
2020-10-20 | gl_arb_decompiler: Implement robust buffer operations | ReinUsesLisp | 3 | -33/+54 | |
This emulates the behavior we get on GLSL with regular SSBOs with a pointer + length pair. It aims to be consistent with the crashes we might get. Out of bounds stores are ignored. Atomics are ignored and return zero. Reads return zero. | |||||
2020-10-20 | Added remaining params | David Marcec | 1 | -1/+4 | |
2020-10-20 | nifm: GetAppletInfo stub | David Marcec | 1 | -1/+8 | |
Fixes crash for Catherine Full Body | |||||
2020-10-18 | core: Add boxcat sources with target_sources | Lioncash | 1 | -7/+7 | |
Same behavior, minus a script variable. | |||||
2020-10-18 | core: Fix clang build | Lioncash | 104 | -665/+904 | |
Recent changes to the build system that made more warnings be flagged as errors caused building via clang to break. Fixes #4795 | |||||
2020-10-17 | mii/manager: Make use of unused lower bound in GetRandomValue() | Lioncash | 1 | -1/+1 | |
Previously, the lower bound wasn't being used and zero was being used as the lower bound every time this function was called. This affects the outcome of some of the randomized entries a little bit, for example, the lower-bound for beard and mustache flags was supposed to be 1, not 0. Aside from these cases, the bug didn't affect anything else. | |||||
2020-10-17 | service: bcat: Check client connection before interacting with socket. | bunnei | 1 | -0/+10 | |
- Fixes a crash when BCAT service is offline. | |||||
2020-10-16 | udp/client: Make use of designated initializers in TestCommunication() | Lioncash | 1 | -2/+5 | |
Same behavior, but makes the callback list nicer to look at. | |||||
2020-10-16 | udp/client: Take std::function by const reference with TestCommunication() | Lioncash | 2 | -5/+5 | |
Avoids redundant copies. | |||||
2020-10-16 | sdl_impl: Erase the SDLJoystick entry after removing a controller | Morph | 1 | -15/+13 | |
Previously, disconnecting a controller still leaves a null SDLJoystick entry within the vector of SDLJoysticks mapped by GUID. When a DirectInput device of the same GUID is reconnected, it adds that device to a new port causing non-detectable input. Furthermore, opening the "Configure" menu would cause yuzu to crash since it first tries to resolve the name of a null SDLJoystick entry that was not removed. Resolve this by properly erasing the SDLJoystick entry from the vector. | |||||
2020-10-16 | input_common/CMakeLists: Make some warnings errors | Lioncash | 19 | -203/+306 | |
Makes the input_common code warnings consistent with the rest of the codebase. | |||||
2020-10-15 | service: acc: Stub IManagerForApplication::StoreOpenContext. | bunnei | 1 | -1/+7 | |
- Used by Super Mario 3D All-Stars. | |||||
2020-10-14 | hle: service: vi: Implement BufferQueue::CancelBuffer. | bunnei | 3 | -14/+53 | |
- This is used by Super Mario 3D All-Stars. | |||||
2020-10-13 | kernel: Implement host thread register methods without locking | ReinUsesLisp | 1 | -28/+38 | |
Locks on GetCurrentHostThreadID were causing performance issues according to Visual Studio's profiler. It was consuming twice the time as arm_interface.Run(). The cost was not in the function itself but in the lockinig it required. Reimplement these functions using atomics and static storage instead of an unordered_map. This is a side effect to avoid locking and using linked lists for reads. Replace unordered_map with a linear search. | |||||
2020-10-13 | audio_core/CMakeLists: Make warnings consistent with core | Lioncash | 6 | -8/+17 | |
Normalizes the warnings shared between audio_core and core. | |||||
2020-10-13 | core/CMakeLists: Make some warnings errors | Lioncash | 30 | -146/+144 | |
Makes our error coverage a little more consistent across the board by applying it to Linux side of things as well. This also makes it more consistent with the warning settings in other libraries in the project. This also updates httplib to 0.7.9, as there are several warning cleanups made that allow us to enable several warnings as errors. | |||||
2020-10-13 | vk_graphics_pipeline: Manage primitive topology as fixed state | ReinUsesLisp | 6 | -26/+7 | |
Vulkan has requirements for primitive topologies that don't play nicely with yuzu's. Since it's only 4 bits, we can move it to fixed state without changing the size of the pipeline key. - Fixes a regression on recent Nvidia drivers on Fire Emblem: Three Houses. | |||||
2020-10-13 | filesystem: Fix CreateDirectory and DeleteFile | Morph | 1 | -2/+3 | |
Add a check if dir is nullptr (does not exist) Fixes save game creation in Hades | |||||
2020-10-13 | service: time: Update current time with changes to RTC setting. | bunnei | 9 | -198/+341 | |
- This can be used to advance time, e.g. for Pokemon Sword/Shield pokejobs. | |||||
2020-10-13 | hle: service: nvdrv: Implement nvhost_as_gpu::FreeSpace. | bunnei | 2 | -0/+25 | |
- This is used by Super Mario 3D All-Stars. | |||||
2020-10-09 | video_core: Enforce -Wclass-memaccess | ReinUsesLisp | 2 | -7/+7 | |
2020-10-09 | vk_device: Block VK_EXT_extended_dynamic_state for RDNA devices | goldenx86 | 1 | -0/+24 | |
RDNA devices seem to crash when using VK_EXT_extended_dynamic_state in the latest 20.9.2 proprietary Windows drivers. As a workaround, for now we block device names corresponding to current RDNA released products. | |||||
2020-10-08 | shader/texture: Implement CUBE texture type for TMML and fix arrays | ReinUsesLisp | 1 | -19/+22 | |
TMML takes an array argument that has no known meaning, this one appears as the first component in gpr8 followed by s, t and r. Skip this component when arrays are being used. Also implement CUBE texture types. - Used by Pikmin 3: Deluxe Demo. | |||||
2020-10-07 | renderer_vulkan/wrapper: Fix physical device sorting | ReinUsesLisp | 1 | -13/+35 | |
The old code had a sort function that was invalid and it didn't work as expected when the base vector had a different order (e.g. renderdoc was attached). This sorts devices as expected and fixes a debug assert on MSVC. | |||||
2020-10-05 | Address comments | german | 2 | -40/+40 | |
2020-10-04 | Add compatibility with only accelerometer and auto calibrate for drift | german | 2 | -12/+106 | |
2020-10-03 | video_core: Enforce -Wunused-variable and -Wunused-but-set-variable | ReinUsesLisp | 3 | -4/+7 | |
2020-10-02 | Only use inputs corresponding to controller type | german | 1 | -49/+58 | |
2020-09-30 | Stubbed EnableSixAxisSensorFusion | german | 2 | -1/+15 | |
2020-09-30 | caps_c: Stub SetShimLibraryVersion | Morph | 2 | -1/+18 | |
- Used by caps_su SetShimLibraryVersion | |||||
2020-09-30 | caps_u: Stub SetShimLibraryVersion | Morph | 2 | -2/+14 | |
- Used in Super Smash Bros. Ultimate | |||||
2020-09-30 | caps_su: Properly stub SetShimLibraryVersion | Morph | 1 | -1/+6 | |
2020-09-30 | hid: Stub HomeButtonInputProtection service commands | Morph | 4 | -2/+50 | |
- Used in 1-2 Switch. Given that we do not emulate the functionality of the home button yet, we can stub this for now. | |||||
2020-09-30 | Reduce the "shake" requirements when configuring UDP. | Lukas Senionis | 1 | -2/+6 | |
2020-09-30 | Remove ext_extended_dynamic_state blacklist | Matías Locatti | 1 | -8/+0 | |
Latest AMD 20.9.2 driver fixed this, there's no reason to keep it blocked, as the previous stable signed driver release doesn't include the extension. | |||||
2020-09-30 | common/wall_clock: Add virtual destructors | ReinUsesLisp | 3 | -2/+4 | |
From -fsanitize=address, this code wasn't calling the proper destructor. Adding virtual destructors for each inherited class and the base class fixes this bug. While we are at it, mark the functions as final. | |||||
2020-09-29 | qt/game_list: Give GameListSearchField::KeyReleaseEater a parent | ReinUsesLisp | 2 | -3/+4 | |
This fixes a memory leak as KeyReleaseEater's destructor was never called. | |||||
2020-09-29 | First implementation of controller rumble | german | 5 | -14/+63 | |
2020-09-29 | CMakeLists: use system zstd on Linux | lat9nq | 1 | -1/+6 | |
From what I understand, this tells CMake to use the system, not conan, version of zstd. Required to build on the coming MinGW Docker container. | |||||
2020-09-29 | CMakeLists: fix for finding zstd on linux-mingw | lat9nq | 1 | -1/+1 | |
2020-09-26 | main: Allow applets to display on top while fullscreen | Morph | 1 | -6/+8 | |
Using the Qt::WindowStaysOnTopHint flag allows these dialogs to show up on top while running in fullscreen. However, if yuzu goes out of focus (by alt-tabbing or otherwise), this flag does not seem to have an effect. | |||||
2020-09-26 | core: Mark GetInstance() as deprecated | Lioncash | 1 | -1/+1 | |
This way it's obvious that this function shouldn't be used in any future code. | |||||
2020-09-26 | frontend/controller: Eliminate dependency on the global system instance | Lioncash | 3 | -5/+14 | |
2020-09-26 | Add random motion input to keyboard | german | 4 | -0/+65 | |
2020-09-26 | Add random motion input to SDL | german | 5 | -5/+230 | |
2020-09-26 | command_generator: Make lookup table static constexpr | Lioncash | 1 | -2/+3 | |
Allows compilers to elide needing to push these values on the stack every time the function is called. | |||||
2020-09-25 | vk_stream_buffer: Fix initializing Vulkan with NVIDIA on Linux | lat9nq | 1 | -1/+2 | |
The previous fix only partially solved the issue, as only certain GPUs that needed 9 or less MiB subtracted would work (i.e. GTX 980 Ti, GT 730). This takes from DXVK's example to divide `heap_size` by 2 to determine `allocable_size`. Additionally tested on my Quadro K4200, which previously required setting it to 12 to boot. | |||||
2020-09-25 | behavior_info: Fix typo Renerer -> Renderer | Lioncash | 2 | -6/+6 | |
2020-09-25 | cubeb_sink: Use static_cast instead of reinterpret_cast in DataCallback() | Lioncash | 1 | -2/+2 | |
Conversions from void* to the proper data type are well-defined and supported by static_cast. We don't need to use reinterpret_cast here. | |||||
2020-09-25 | codec: Make lookup table static constexpr | Lioncash | 2 | -3/+4 | |
Allows compilers to elide needing to push these values on the stack every time the function is called. | |||||
2020-09-25 | audio_core: Remove unnecessary inclusions | Lioncash | 5 | -7/+2 | |
Same behavior, but removes header dependencies where they don't need to be. | |||||
2020-09-25 | audio_core: Resolve sign conversion warnings | Lioncash | 8 | -25/+34 | |
While were at it, we can also enable sign conversion warnings and other common warnings as errors to prevent these from creeping back into the codebase. | |||||
2020-09-25 | effect_context: Make use of explicit where applicable | Lioncash | 1 | -13/+12 | |
While we're at it we can make the destructor of the base class virtual to ensure that any polymorphism issues never occur. | |||||
2020-09-25 | vk_command_pool: Move definition of Pool into the cpp file | Lioncash | 2 | -4/+6 | |
Allows the implementation details to be changed without recompiling any files that include this header. | |||||
2020-09-25 | vk_command_pool: Make use of override on destructor | Lioncash | 1 | -1/+1 | |
2020-09-25 | vk_command_pool: Add missing header guard | Lioncash | 1 | -0/+2 | |
2020-09-25 | More forgetting... duh | Levi Behunin | 1 | -2/+2 | |
2020-09-25 | service: Restore "unused" function | Lioncash | 1 | -0/+17 | |
Turns out this function is actually used, but within a trace log. | |||||
2020-09-25 | Forgot to apply suggestion here as well | Levi Behunin | 1 | -1/+1 | |
2020-09-25 | Address Comments | Levi Behunin | 3 | -25/+34 | |
2020-09-25 | Start of Integer flags implementation | Levi Behunin | 3 | -3/+50 | |
2020-09-24 | submission_package: Fix updates integrated into cartridge images. | Morph | 1 | -3/+22 | |
2020-09-24 | arithmetic_integer_immediate: Make use of std::move where applicable | Lioncash | 1 | -16/+19 | |
Same behavior, minus any redundant atomic reference count increments and decrements. | |||||
2020-09-24 | video_core: Fix instances where msbuild always regenerated host shaders | ReinUsesLisp | 2 | -12/+7 | |
When HEADER_GENERATOR was included in the DEPENDS section of custom commands, msbuild assumed this was always modified. Changing this file is not common so we can remove it from there. | |||||
2020-09-24 | Use different timing for motion | german | 5 | -76/+157 | |
2020-09-23 | shader/registry: Silence a -Wshadow warning | Lioncash | 2 | -5/+5 | |
2020-09-23 | shader/registry: Remove unnecessary namespace qualifiers | Lioncash | 1 | -5/+3 | |
Using statements already make these unnecessary. | |||||
2020-09-23 | shader/registry: Make use of designated initializers where applicable | Lioncash | 1 | -17/+19 | |
Same behavior, less repetition. | |||||
2020-09-23 | memory: Resolve a -Wdocumentation warning | Lioncash | 1 | -1/+1 | |
memory doesn't exist as a parameter any more. | |||||
2020-09-23 | install_dialog: Make use of [[nodiscard]] where applicable | Lioncash | 1 | -2/+2 | |
Allows the compiler to warn against cases where the return value isn't used (which would be a bug). | |||||
2020-09-23 | install_dialog: Remove unused function prototype | Lioncash | 1 | -1/+0 | |
This function doesn't have an implementation, so it can be removed to prevent others from unintentionally using it. | |||||
2020-09-23 | game_list: Make game list function naming consistent | Lioncash | 3 | -36/+45 | |
Makes the naming consistent with the rest of the functions that are present. | |||||
2020-09-23 | game_list: Eliminate redundant argument copies | Lioncash | 2 | -16/+22 | |
Several functions can be taken by const reference to avoid copies | |||||
2020-09-23 | control_flow: emplace elements in place within TryQuery() | Lioncash | 1 | -6/+6 | |
Places data structures where they'll eventually be moved to to avoid needing to even move them in the first place. | |||||
2020-09-23 | control_flow: Make use of std::move in InsertBranch() | Lioncash | 1 | -7/+8 | |
Avoids unnecessary atomic increments and decrements. | |||||
2020-09-22 | General: Make use of std::nullopt where applicable | Lioncash | 17 | -59/+60 | |
Allows some implementations to avoid completely zeroing out the internal buffer of the optional, and instead only set the validity byte within the structure. This also makes it consistent how we return empty optionals. | |||||
2020-09-22 | ips_layer: Eliminate a redundant copy in Parse() | Lioncash | 1 | -2/+4 | |
Prevents unnecessary copying of the line being parsed. | |||||
2020-09-21 | acc: Stub LoadOpenContext | Morph | 3 | -1/+13 | |
This is used in multiple games such as: - Clubhouse Games: 51 Worldwide Classics - Grandia HD Collection - XCOM 2 Collection - Baldur's Gate 1/2 - Dr Kawashima's Brain Training - Super Mario 3D All-Stars | |||||
2020-09-20 | renderer_opengl: Remove emulated mailbox presentation | ReinUsesLisp | 13 | -360/+35 | |
Emulated mailbox presentation was causing performance issues on Nvidia's OpenGL driver. Remove it. | |||||
2020-09-19 | vk_query_cache: Hack counter destructor to avoid reserving queries | ReinUsesLisp | 1 | -1/+10 | |
This is a hack to destroy all HostCounter instances before the base class destructor is called. The query cache should be redesigned to have a proper ownership model instead of using shared pointers. For now, destroy the host counter hierarchy from the derived class destructor. | |||||
2020-09-19 | renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphore | ReinUsesLisp | 42 | -814/+638 | |
This reworks how host<->device synchronization works on the Vulkan backend. Instead of "protecting" resources with a fence and signalling these as free when the fence is known to be signalled by the host GPU, use timeline semaphores. Vulkan timeline semaphores allow use to work on a subset of D3D12 fences. As far as we are concerned, timeline semaphores are a value set by the host or the device that can be waited by either of them. Taking advantange of this, we can have a monolithically increasing atomic value for each submission to the graphics queue. Instead of protecting resources with a fence, we simply store the current logical tick (the atomic value stored in CPU memory). When we want to know if a resource is free, it can be compared to the current GPU tick. This greatly simplifies resource management code and the free status of resources should have less false negatives. To workaround bugs in validation layers, when these are attached there's a thread waiting for timeline semaphores. | |||||
2020-09-18 | Add automap feature for GC adapter | german | 3 | -1/+103 | |
2020-09-18 | fermi_2d: Make use of designated initializers | Lioncash | 2 | -8/+8 | |
Same behavior, less repetition. We can also ensure all members of Config are initialized. | |||||
2020-09-18 | hid: Implement Get/SetNpadHandheldActivationMode | Morph | 3 | -5/+28 | |
- Used in Clubhouse Games: 51 Worldwide Classics | |||||
2020-09-18 | configure_input_player: Fixes motion mapping using ConfigureButtonClick | Morph | 1 | -5/+8 | |
2020-09-18 | am: Stub GetPreviousProgramIndex | Morph | 2 | -1/+11 | |
- Used in Super Mario 3D All-Stars | |||||
2020-09-18 | configure_input_player: Re-add "Clear" context menu option | Morph | 2 | -31/+66 | |
The context menu was removed in Mjölnir Part 1 as part of the input rewrite as we were unaware of it's usage statistics. However, as this was the only way to clear the inputs of individual buttons, this PR will re-add it back in. | |||||
2020-09-18 | submission_package: Account for multi-content NSPs | Morph | 1 | -5/+5 | |
Previously we assumed a submission package can only contain one Program NCA with a single TitleID. However, Super Mario 3D All-Stars contains four Program NCAs, each with their unique TitleIDs. This accounts for the existence of multi-content games such as this one. - Fixes booting Super Mario 3D All-Stars from the games list. | |||||
2020-09-17 | decode/image: Eliminate switch fallthrough in DecodeImage() | Lioncash | 1 | -0/+1 | |
Fortunately this didn't result in any issues, given the block that code was falling through to would immediately break. | |||||
2020-09-17 | decoder/texture: Eliminate narrowing conversion in GetTldCode() | Lioncash | 1 | -1/+1 | |
The assignment was previously truncating a u64 value to a bool. | |||||
2020-09-17 | audio_core/command_generator: Use const references where applicable | Lioncash | 1 | -10/+11 | |
In a lot of cases, we can make use of const references rather than non-const references. While we're in the area we can silence some truncation and sign conversion warnings. | |||||
2020-09-17 | audio_core/command_generator: Avoid an unnecessary copy in GenerateFinalMixCommand() | Lioncash | 1 | -1/+1 | |
2020-09-17 | nfp: Eliminate two unnecessary copies | Lioncash | 1 | -10/+13 | |
GetAmiiboBuffer() returns by const reference, so we can use a reference instead of taking the returned buffer by value. | |||||
2020-09-17 | arm_dynarmic_cp15: Initialize member variables | Lioncash | 1 | -2/+2 | |
Ensures that the member variables are always initialized to a deterministic value on creation. | |||||
2020-09-17 | control_metadata: Resolve typo in Portuguese language name | Lioncash | 1 | -1/+1 | |
This isn't used anywhere, so this is a trivial fix. | |||||
2020-09-17 | service: Remove unused funcation | Lioncash | 1 | -22/+0 | |
This is now completely unused, so it can be removed. | |||||
2020-09-17 | service/sm: Slightly more efficient string name validation | Lioncash | 1 | -2/+2 | |
We can check the end of the string first for null-termination, rather than the beginning of the string. | |||||
2020-09-17 | service/sm: Eliminate dependency on the global system instance | Lioncash | 3 | -7/+9 | |
2020-09-17 | file_sys/romfs_factory: Eliminate usage of the global system accessor | Lioncash | 5 | -34/+49 | |
2020-09-17 | file_sys/bis_factory: Eliminate usage of the global system accessor | Lioncash | 5 | -11/+11 | |
2020-09-17 | loader/nso: Remove unnecessary [[maybe_unused]] | Lioncash | 1 | -2/+1 | |
2020-09-16 | video_core: Enforce -Werror=switch | ReinUsesLisp | 7 | -10/+59 | |
This forces us to fix all -Wswitch warnings in video_core. | |||||
2020-09-16 | core/loader: Remove dependencies on the global system instance | Lioncash | 20 | -45/+85 | |
Now all that remains is: 18 instances in file_sys code 14 instances in GDB stub code (this can be tossed wholesale) 4 instances in HLE code 2 instances in settings code. | |||||
2020-09-15 | nca_patch: Significantly reduce the stack usage size within SearchBucketEntry() | Lioncash | 1 | -4/+4 | |
Previously this function was using ~16KB of stack (16528 bytes), which was caused by the function arguments being taken by value rather than by reference. We can make this significantly lighter on the stack by taking them by reference. | |||||
2020-09-15 | nca_patch: Make SearchBucketEntry() internally linked | Lioncash | 2 | -44/+43 | |
This is only used internally and doesn't depend on any class state, so we can make it fully internal. | |||||
2020-09-15 | cheat_engine: Convert ExtractName into a non-template function | Lioncash | 1 | -19/+17 | |
We don't need to create two separate instantiations of the same code, we can simply make the character template argument a regular function parameter. | |||||
2020-09-15 | cheat_engine: Remove unnecessary system argument to CheatParser's Parse function | Lioncash | 3 | -15/+9 | |
This isn't used within the function at all in any implementations, so we can remove it entirely. | |||||
2020-09-15 | patch_manager: Resolve implicit truncations in FormatTitleVersion() | Lioncash | 1 | -3/+4 | |
We make it explicit that we're truncating arithmetic here to resolve compiler warnings (even if the sizes weren't u32/u64 arithmetic generally promotes to int :<) | |||||
2020-09-15 | patch_manager: Make use of type aliases | Lioncash | 2 | -69/+79 | |
We can use these to avoid typing the same type redundantly. This way, if these ever change, only a single location needs to be modified. | |||||
2020-09-15 | patch_manager: Make a few functions internally linked | Lioncash | 2 | -15/+12 | |
These functions are only used within this translation unit, so we can make them internally linked. | |||||
2020-09-15 | gc_adapter: Disable MSVC nonstandard extension warning on libusb.h | ReinUsesLisp | 1 | -0/+9 | |
Pragma disable zero-sized array nonstandard extension warning on MSVC. | |||||
2020-09-14 | crypto/key_manager: Remove dependency on the global system accessor | Lioncash | 3 | -7/+12 | |
We can supply the content provider as an argument instead of hardcoding a global accessor in the implementation. | |||||
2020-09-14 | kernel: Remove all dependencies on the global system instance | Lioncash | 5 | -11/+20 | |
With this, the kernel finally doesn't depend directly on the global system instance anymore. | |||||
2020-09-10 | Test: Decrease pad_update_ns | FearlessTobi | 1 | -1/+1 | |
There have been reports of quite heavy input lag in the past. Compared to Citra for example, our pad_update_ns value is very high. So let's decrease it and see if it helps with this problem. | |||||
2020-09-07 | service: Remove two usages of the global system accessor | Lioncash | 3 | -7/+5 | |
Removes more instances of reliance on global state. | |||||
2020-09-07 | gc_adapter: Make DeviceConnected() a const member function | Lioncash | 3 | -9/+9 | |
This doesn't modify instance state, so it can be made const. | |||||
2020-09-07 | bsd: Resolve unused value within SendToImpl | Lioncash | 1 | -0/+1 | |
Previously the address provided to SendToImpl would never be propagated to SendTo(). This fixes that. | |||||
2020-09-07 | bsd: Resolve sign comparison warnings | Lioncash | 1 | -3/+3 | |
2020-09-07 | sockets_translate: Make use of designated initializers | Lioncash | 1 | -12/+12 | |
Same behavior, less typing. | |||||
2020-09-07 | blocking_worker: Make use of templated lambda | Lioncash | 1 | -3/+2 | |
We can simplify this a little by explicitly specifying the typename for the lambda function. | |||||
2020-09-07 | blocking_worker: Resolve -Wdocumentation warning | Lioncash | 1 | -1/+1 | |
2020-09-06 | video_core: Remove all Core::System references in renderer | ReinUsesLisp | 53 | -633/+573 | |
Now that the GPU is initialized when video backends are initialized, it's no longer needed to query components once the game is running: it can be done when yuzu is booting. This allows us to pass components between constructors and in the process remove all Core::System references in the video backend. | |||||
2020-09-05 | configure_input: Hook up the motion button and checkbox | Morph | 7 | -7/+19 | |
This allows toggling motion on or off, and allows access to the motion configuration. Also changes the [waiting] text for motion buttons to Shake! as this is how motion is connected to a player. | |||||
2020-09-05 | Minor cleanup | german | 1 | -19/+16 | |
2020-09-05 | Add cemu hook changes related to PR #4609 | german | 8 | -139/+449 | |
2020-09-05 | Remove RealMotionDevice | german | 7 | -35/+41 | |
2020-09-05 | configure_input_player: Show/hide motion buttons based on the controller | Morph | 3 | -103/+141 | |
2020-09-05 | controllers/npad: Simplify motion entry assignment | Morph | 1 | -29/+18 | |
Simplifies the motion assignment in the Dual Joycon entry and assigns index 1 of the motion entry (Motion 2) for the right joycon. | |||||
2020-09-05 | Include HID and configuration changes related to motion | german | 13 | -16/+448 | |
2020-09-04 | hid: Implement MergeSingleJoyasDualJoy | Morph | 3 | -5/+24 | |
- Used in multiple games such as Super Mario Odyssey. | |||||
2020-09-04 | applets/controller: Resolve several compiler warnings | Morph | 2 | -7/+8 | |
Resolves -Wsign-compare and -Wunused-variable | |||||
2020-09-04 | Address feedback | Morph | 4 | -2/+12 | |
2020-09-04 | clang-format | Morph | 2 | -2/+4 | |
2020-09-04 | applets/controller: Set min_players to have a minimum value of 1. | Morph | 1 | -1/+1 | |
- Some games like Shipped have a minimum requirement of 0 connected players and is undesired behavior. We must require a minimum of 1 player connected regardless of what games may ask. | |||||
2020-09-04 | applets/controller: Modify heuristic to account for certain games | Morph | 1 | -7/+12 | |
Now left and right joycons have the same priority (meaning both needs to be supported by the game). Explanation of the new heuristic: Assign left joycons to even player indices and right joycons to odd player indices. We do this since Captain Toad Treasure Tracker expects a left joycon for Player 1 and a right Joycon for Player 2 in 2 Player Assist mode. | |||||
2020-09-04 | main: Apply settings after applet configuration is complete. | Morph | 1 | -0/+4 | |
2020-09-04 | applets/controller: Implement fallback applet for the SDL frontend | Morph | 3 | -90/+34 | |
Implement the fallback applet for the SDL frontend, connecting only the minimum amount of players required. | |||||
2020-09-04 | applets/controller: Load configuration prior to setting up connections | Morph | 2 | -23/+29 | |
This avoids unintentionally changing the states of elements while loading them in. | |||||
2020-09-04 | applets/controller: Make 8 a static constexpr value of NUM_PLAYERS | Morph | 2 | -15/+22 | |
Avoids repetitive usages of the int literal '8' or calls to player_widgets.size() | |||||
2020-09-04 | applets/controller: Implement "Explain Text" | Morph | 6 | -25/+304 | |
"Explain Text" is additional text that is shown for each player in the controller applet. | |||||
2020-09-04 | Project Mjölnir: Part 2 - Controller Applet | Morph | 20 | -59/+3803 | |
Co-authored-by: Its-Rei <kupfel@gmail.com> | |||||
2020-09-03 | file_sys/patch_manager: Add missing include | ReinUsesLisp | 1 | -0/+1 | |
Fixes build issues | |||||
2020-09-02 | main: Use three dots to complete the ellipsis | lat9nq | 1 | -1/+1 | |
Fixes a typo in the UI file. An ellipsis has 3 dots. | |||||
2020-09-02 | input_common/motion_input: Make use of Common::PI constant | Morph | 3 | -5/+10 | |
Also amend the copyright notice to yuzu's instead of Dolphin's, which was mistakenly copy-pasted from another file. | |||||
2020-08-31 | vk_device: Fix driver id check on AMD for VK_EXT_extended_dynamic_state | ReinUsesLisp | 1 | -6/+9 | |
'driver_id' can only be known on Vulkan 1.1 after creating a logical device. Move the driver id check to disable VK_EXT_extended_dynamic_state after the logical device is successfully initialized. The Vulkan device will have the extension enabled but it will not be used. | |||||
2020-08-30 | externals: Update Xbyak to 5.96 | Lioncash | 2 | -21/+21 | |
I made a request on the Xbyak issue tracker to allow some constructors to be constexpr in order to avoid static constructors from needing to execute for some of our register constants. This request was implemented, so this updates Xbyak so that we can make use of it. | |||||
2020-08-30 | sdl_joystick: disable the use of the hidapi drivers due to many problems caused by them. | Vitor Kiguchi | 1 | -0/+7 | |
The main problem is the loss of compatibility with some controllers, but there are also unwanted changes to the behaviour of PS4 controllers (hardcoded lightbar color). | |||||
2020-08-30 | Address second batch of reviews | FearlessTobi | 9 | -30/+27 | |
2020-08-29 | configure_input_player: Resolve sign conversion warnings in UpdateMappingWithDefaults() | Lioncash | 1 | -2/+2 | |
Prevents sign mismatch warnings in the loop conditionals. | |||||
2020-08-29 | Reolve reorder warning | FearlessTobi | 2 | -3/+3 | |
2020-08-29 | Address review comments and fix code compilation | FearlessTobi | 13 | -155/+218 | |
2020-08-29 | bootmanager: Prevent unnecessary copies in TouchUpdateEvent() | Lioncash | 1 | -1/+1 | |
The list of points is returned by const reference, so we don't need to make a copy of every element in the list. | |||||
2020-08-29 | game_list_p: Avoid string churn in GameListItemPath data() | Lioncash | 1 | -4/+8 | |
2020-08-29 | game_list_p: Mark some constants as constexpr | Lioncash | 1 | -10/+10 | |
Consistency change with how we mark constants in the rest of the codebase. | |||||
2020-08-29 | yuzu: Add motion and touch configuration | FearlessTobi | 18 | -3/+1889 | |
2020-08-29 | yuzu/main: Amend lifetime issues with InputSubsystem | Lioncash | 4 | -7/+8 | |
Due to the way Qt performs destruction of parent/child widgets, we need to make the lifetime of the input subsystem shared across the main window and the render window. | |||||
2020-08-29 | yuzu/configuration: Fix index out of bounds for default_analogs | Morph | 3 | -12/+13 | |
2020-08-29 | sdl_impl: Reduce allocations in GetButtonMappingForDevice() | Lioncash | 1 | -31/+37 | |
These maps can be constexpr arrays of std::pair. | |||||
2020-08-29 | sdl_impl: Make use of std::move on std::string where applicable | Lioncash | 1 | -3/+3 | |
Avoids redundant copies. | |||||
2020-08-29 | sdl_impl: Make use of insert_or_assign() where applicable | Lioncash | 1 | -14/+18 | |
Avoids churning ParamPackage instances. | |||||
2020-08-29 | sdl_impl: Prevent type truncation in BuildAnalogParamPackageForButton() default arguments | Lioncash | 1 | -1/+1 | |
We need to add the 'f' suffix to make the right hand side a float and not a double. | |||||
2020-08-29 | sdl_impl: Simplify make_tuple call | Lioncash | 1 | -1/+1 | |
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. | |||||
2020-08-29 | sdl_impl: Mark FromEvent() as a const member function | Lioncash | 1 | -2/+2 | |
This doesn't modify internal member state, so it can be marked as const. | |||||
2020-08-29 | input_common/main: Remove unnecessary headers | Lioncash | 3 | -5/+11 | |
2020-08-29 | input_common/main: Remove unimplemented prototype | Lioncash | 1 | -3/+0 | |
I forgot to remove this in the rebase when removing most of the global variables within the input common codebase. | |||||
2020-08-29 | vk_device: Blacklist AMD proprietary from VK_EXT_extended_dynamic_state | ReinUsesLisp | 1 | -1/+6 | |
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. | |||||
2020-08-28 | Fix orientation errors and improve drift correction | german | 2 | -14/+31 | |
2020-08-28 | Address comments | german | 2 | -85/+65 | |
2020-08-28 | Implement a basic class for motion devices | german | 4 | -0/+279 | |
2020-08-27 | input_common: Eliminate most global state | Lioncash | 25 | -242/+396 | |
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. | |||||
2020-08-27 | input_common/main: Add "/Mouse" to the display name | Morph | 1 | -1/+1 | |
2020-08-27 | memory_manager: Make use of [[nodiscard]] in the interface | Lioncash | 1 | -17/+17 | |
2020-08-27 | memory_manager: Make operator+ const qualified | Lioncash | 1 | -1/+1 | |
This doesn't modify member state, so it can be marked as const. | |||||
2020-08-26 | configure_input_player: Fix modifier scale button mapping | Morph | 2 | -20/+19 | |
2020-08-26 | configuration/input: Add support for mouse button clicks | Morph | 5 | -11/+82 | |
Supports the Left, Right, Middle, Backward and Forward mouse buttons. | |||||
2020-08-26 | controllers/npad: Fix inconsistencies with controller connection statuses | Morph | 1 | -1/+7 | |
2020-08-26 | controllers/npad: Fix LibNX controller connection statuses | Morph | 1 | -1/+9 | |
This allows homebrew applications to be able to properly detect connected controllers. | |||||
2020-08-26 | controllers/npad: Fix LedPattern for P1-4 | Morph | 1 | -3/+3 | |
2020-08-26 | input_common: Fix directional deadzone values | Morph | 2 | -2/+2 | |
The hardware tested value is 0.5 which translates to SHRT_MAX / 2 | |||||
2020-08-26 | Address feedback | Morph | 13 | -96/+77 | |
2020-08-26 | Project Mjölnir: Part 1 | Morph | 43 | -3177/+8306 | |
Co-authored-by: James Rowe <jroweboy@gmail.com> Co-authored-by: Its-Rei <kupfel@gmail.com> | |||||
2020-08-26 | gc_poller: Resolve compilation warnings on MSVC | Lioncash | 1 | -3/+5 | |
We just need to make our intentional implicit truncations explicit. | |||||
2020-08-26 | hle/scheduler: Fix data race in is_context_switch_pending | ReinUsesLisp | 1 | -2/+6 | |
As reported by tsan, SelectThreads could write to is_context_switch_pending holding a mutex while SwitchToCurrent reads it without holding any. It is assumed that the author didn't want an atomic here, so the code is reordered so that whenever is_context_switch_pending is read inside SwitchToContext, the mutex is locked. | |||||
2020-08-26 | hle/kernel: Fix data race in GetCurrentHostThreadID | ReinUsesLisp | 1 | -1/+2 | |
As reported by tsan, host_thread_ids could be read while any of the RegisterHostThread variants were called. To fix this, lock the register mutex when yuzu is running in multicore mode and GetCurrentHostThreadID is called. | |||||
2020-08-26 | common/thread: Fix data race in is_set | ReinUsesLisp | 1 | -4/+5 | |
As report by tsan, Event::Set can write is_set while WaitFor and friends are reading from it. To address this issue, make is_set an atomic. | |||||
2020-08-26 | cpu_interrupt_handler: Misc style changes | ReinUsesLisp | 2 | -5/+3 | |
2020-08-26 | cpu_interrupt_handler: Make is_interrupted an atomic | ReinUsesLisp | 2 | -2/+3 | |
Fixes a race condition detected from tsan | |||||
2020-08-25 | logging/settings: Increase maximum log size to 100 MB and add extended logging option | M&M | 5 | -11/+54 | |
The extended logging option is automatically disabled on boot but can be enabled afterwards, allowing the log file to go up to 1 GB during that session. This commit also fixes a few errors that are present in the general debug menu. | |||||
2020-08-24 | common_funcs: Add missing XOR operators to DECLARE_ENUM_FLAG_OPERATORS | Lioncash | 1 | -4/+10 | |
Ensures that the full set of bitwise operators are available for types that make use of this macro. | |||||
2020-08-24 | common/assert: Make use of C++ attribute syntax | Lioncash | 1 | -3/+4 | |
Normalizes the syntax used for attributes | |||||
2020-08-24 | async_shaders: Mark getters as const member functions | Lioncash | 2 | -17/+15 | |
While we're at it, we can also mark them as nodiscard. | |||||
2020-08-24 | memory_manager: Mark IsGranularRange() as a const member function | Lioncash | 2 | -3/+3 | |
This doesn't modify internal member state, so it can be marked as const. | |||||
2020-08-24 | gl_texture_cache: Take std::string by reference in DecorateViewName() | Lioncash | 2 | -2/+2 | |
LabelGLObject takes a string_view, so we don't need to make copies of the std::string. | |||||
2020-08-24 | video_core/fence_manager: Remove unnecessary includes | Lioncash | 3 | -9/+4 | |
Avoids pulling in unnecessary things that can cause rebuilds when they aren't required. | |||||
2020-08-24 | video_core/host_shaders: Add CMake integration for string shaders | ReinUsesLisp | 7 | -42/+106 | |
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. | |||||
2020-08-24 | gl_shader_util: Use std::string_view instead of star pointer | ReinUsesLisp | 5 | -9/+21 | |
This allows us passing any type of string and hinting the length of the string to the OpenGL driver. | |||||
2020-08-23 | fsp_srv: Resolve -Wunused-but-set-variable warning | Lioncash | 1 | -1/+8 | |
We can just log out the parameters in the meantime. | |||||
2020-08-23 | file_sys: Replace inclusions with forward declarations where applicable | Lioncash | 27 | -37/+66 | |
Same behavior, minus unnecessary inclusions where not necessary. | |||||
2020-08-23 | fsp_srv: Resolve -Wmaybe_uninitialized warning in OpenSaveDataFileSystem() | Lioncash | 1 | -2/+5 | |
Initialize id to a deterministic value and also mark the unreachable cases in the switch with UNREACHABLE(). | |||||
2020-08-23 | registered_cache: Make use of ends_with for string suffix checking | Lioncash | 1 | -2/+1 | |
Simplifies code. | |||||
2020-08-23 | registered_cache: Make use of designated initializers | Lioncash | 1 | -15/+15 | |
Removes the need for comments to indicate the fields being assigned. | |||||
2020-08-23 | key_manager: Make data arrays constexpr | Lioncash | 2 | -75/+82 | |
We can convert these maps into constexpr arrays to eliminate some runtime static constructors. | |||||
2020-08-23 | cpu_manager: Make use of ranged for where applicable | Lioncash | 1 | -16/+13 | |
We can simplify a few loops by making use of ranged for. | |||||
2020-08-23 | core_timing: Remove unused header | Lioncash | 3 | -2/+2 | |
2020-08-23 | core_timing: Move clock initializer into constructor initializer list | Lioncash | 1 | -4/+2 | |
Same behavior, minus unnecessary zeroing out of the pointer. | |||||
2020-08-23 | core_timing: Resolve sign conversion warning | Lioncash | 1 | -2/+2 | |
This constant is only ever assigned to downcount, which is a s64, not a u64. | |||||
2020-08-23 | web_service: Move web_result.h into web_service | Lioncash | 7 | -47/+41 | |
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. | |||||
2020-08-22 | video_core: Initialize renderer with a GPU | ReinUsesLisp | 22 | -119/+172 | |
Add an extra step in GPU initialization to be able to initialize render backends with a valid GPU instance. | |||||
2020-08-21 | vk_state_tracker: Fix primitive topology | ReinUsesLisp | 3 | -13/+14 | |
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. | |||||
2020-08-20 | vk_device: Use Vulkan 1.0 properly | ReinUsesLisp | 5 | -52/+66 | |
Enable the required capabilities to use Vulkan 1.0 without validation errors and disable those that are not compatible with it. | |||||
2020-08-20 | renderer_vulkan: Create a Vulkan 1.0 instance when 1.1 is not available | ReinUsesLisp | 3 | -6/+26 | |
This commit doesn't make yuzu compatible with Vulkan 1.0 yet, it only creates an 1.0 instance. | |||||
2020-08-20 | Revert "common/time_zone: Simplify GetOsTimeZoneOffset()" | bunnei | 1 | -5/+9 | |
2020-08-18 | common/telemetry: Migrate namespace into the Common namespace | Lioncash | 13 | -35/+43 | |
Migrates the Telemetry namespace into the Common namespace to make the code consistent with the rest of our common code. | |||||
2020-08-18 | vfs_real: Resolve sign conversion warnings | Lioncash | 1 | -2/+2 | |
2020-08-18 | vfs_real: Avoid redundant map lookups | Lioncash | 1 | -30/+46 | |
Avoids some trivially avoidable map lookups by keeping the result of find operations around and querying them. | |||||
2020-08-18 | common/color: Migrate code over to the Common namespace | Lioncash | 1 | -2/+2 | |
No external code makes use of this header, so we can freely change the namespace. | |||||
2020-08-18 | common/concepts: Move <type_traits> include out of the Common namespace | Lioncash | 1 | -2/+2 | |
This is a compiler/linker error waiting to happen. | |||||
2020-08-16 | Remove unneeded newlines, optional Registry in shader params | ameerj | 5 | -14/+9 | |
Addressing feedback from Rodrigo | |||||
2020-08-16 | Morph: Update worker allocation comment | Ameer J | 1 | -1/+1 | |
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com> | |||||
2020-08-16 | move thread 1/4 count computation into allocate workers method | ameerj | 4 | -23/+14 | |
2020-08-16 | Address feedback, add shader compile notifier, update setting text | ameerj | 9 | -162/+117 | |
2020-08-16 | Vk Async Worker directly emplace in cache | ameerj | 3 | -58/+41 | |
2020-08-16 | Address feedback. Bruteforce delete duplicates | ameerj | 7 | -80/+116 | |
2020-08-16 | Vk Async pipeline compilation | ameerj | 13 | -20/+182 | |
2020-08-16 | Preliminary effects | David Marcec | 10 | -35/+731 | |
2020-08-16 | dynarmic: Add unsafe optimizations | MerryMage | 7 | -4/+108 | |
2020-08-16 | configure_hotkeys: Don't translate empty strings | Lioncash | 1 | -2/+2 | |
There's no need to translate an empty string. This just gives translators unnecessary work. | |||||
2020-08-16 | common/fileutil: Convert namespace to Common::FS | Lioncash | 40 | -547/+639 | |
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. | |||||
2020-08-16 | common: Silence two discarded result warnings | Lioncash | 2 | -3/+3 | |
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. | |||||
2020-08-16 | common/time_zone: Simplify GetOsTimeZoneOffset() | Lioncash | 1 | -9/+5 | |
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. | |||||
2020-08-16 | yuzu: Resolve -Wextra-semi warnings | Lioncash | 3 | -6/+6 | |
While we're in the same area, we can ensure GameDir member variables are always initialized to consistent values. | |||||
2020-08-16 | main: Add an option to modify the currrent game's configuration | lat9nq | 3 | -20/+46 | |
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. | |||||
2020-08-15 | common/compression: Roll back std::span changes | Lioncash | 5 | -38/+45 | |
Seems like all compilers don't support std::span yet. | |||||
2020-08-15 | common: Make use of [[nodiscard]] where applicable | Lioncash | 34 | -358/+343 | |
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. | |||||
2020-08-14 | configuration_shared: Simplify name lookup in highlighting functions | Lioncash | 7 | -90/+74 | |
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). | |||||
2020-08-14 | yuzu: Make use of qOverload where applicable | Lioncash | 1 | -2/+1 | |
Eliminates a verbose function cast. | |||||
2020-08-14 | time_zone_content_manager: Collapse auto and default case | Lioncash | 1 | -3/+1 | |
Prevents a useless self-assignment from occurring. | |||||
2020-08-14 | Disable biquad filter | David Marcec | 1 | -8/+9 | |
2020-08-14 | software_keyboard: Resolve a pessimizing move warning | Lioncash | 1 | -2/+1 | |
A std::vector created in place like this is already an rvalue and doesn't need to be moved. | |||||
2020-08-14 | core: Resolve several -Wextra-semi warnings | Lioncash | 3 | -7/+12 | |
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. | |||||
2020-08-14 | shader/memory: Amend UNIMPLEMENTED_IF_MSG without a message | Lioncash | 1 | -1/+2 | |
We need to provide a message for this variant of the macro, so we can simply log out the type being used. | |||||
2020-08-14 | macro-interpreter: Resolve -Wself-assign-field warning | Lioncash | 1 | -1/+0 | |
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. | |||||
2020-08-14 | vulkan/wrapper: Avoid unnecessary copy in EnumerateInstanceExtensionProperties() | Lioncash | 1 | -1/+1 | |
Given this is implicitly creating a std::optional, we can move the vector into it. | |||||
2020-08-14 | gl_shader_disk_cache: Make use of std::nullopt where applicable | Lioncash | 1 | -11/+12 | |
Allows the compiler to avoid unnecessarily zeroing out the internal buffer of std::optional on some implementations. | |||||
2020-08-14 | async_shaders: Resolve -Wpessimizing-move warning | Lioncash | 1 | -2/+2 | |
Prevents pessimization of the move constructor (which thankfully didn't actually happen in practice here, given std::thread isn't copyable). | |||||
2020-08-14 | maxwell_3d: Resolve -Wextra-semi warning | Lioncash | 1 | -1/+1 | |
Semicolons after a function definition aren't necessary. | |||||
2020-08-14 | Reworked ADPCM decoder to allow better streaming | David Marcec | 2 | -33/+95 | |
2020-08-14 | emu_window: Mark Scoped constructor and Acquire() as nodiscard | Lioncash | 1 | -2/+2 | |
Ensures that callers make use of the constructor, preventing bugs from silently occurring. | |||||
2020-08-14 | kernel/scheduler: Mark SchedulerLock constructor as nodiscard | Lioncash | 1 | -1/+1 | |
Allows the compiler to warn about cases where the constructor is used but then immediately discarded, which is a potential cause of locking/unlocking bugs. | |||||
2020-08-13 | General: Tidy up clang-format warnings part 2 | Lioncash | 17 | -117/+129 | |
2020-08-12 | gl_shader_cache: Use std::max() for determining num_workers | Morph | 1 | -1/+1 | |
Does not allocate more threads than available in the host system for boot-time shader compilation and always allocates at least 1 thread if hardware_concurrency() returns 0. | |||||
2020-08-11 | textures/decoders: Fix block linear to pitch copies | ReinUsesLisp | 3 | -34/+34 | |
There were two issues with block linear copies. First the swizzling was wrong and this commit reimplements them. The other issue was that these copies are generally used to download render targets from the GPU and yuzu was not downloading them from host GPU memory unless the extreme GPU accuracy setting was selected. This commit enables cached memory reads for all accuracy levels. - Fixes level thumbnails in Super Mario Maker 2. | |||||
2020-08-10 | Remove UI changes | ameerj | 5 | -86/+5 | |
This PR is now only the Analog devices handling the range value defaulting at 100% | |||||
2020-08-10 | Add range slider functionality for gc adapter | ameerj | 1 | -7/+7 | |
2020-08-10 | undo unnecessary newlines, slider range 50-150 | Ameer | 3 | -6/+5 | |
2020-08-10 | Address c++20 warning, fix inaccurate range text display when slide == 0 | Ameer | 1 | -2/+2 | |
2020-08-10 | Add range slider for analog sticks | Ameer | 4 | -14/+99 | |
2020-08-09 | General: Tidy up clang-format warnings | Lioncash | 1 | -1/+1 | |
2020-08-07 | common/concepts: Rename IsBaseOf to DerivedFrom | Lioncash | 3 | -6/+8 | |
This makes it more inline with its currently unavailable standardized analogue std::derived_from. While we're at it, we can also make the template match the requirements of the standardized variant as well. | |||||
2020-08-06 | freezer: Move entry finding to its own function | Lioncash | 2 | -12/+21 | |
Cleans up the callsites in other functions. | |||||
2020-08-06 | freezer: Take address values by value | Lioncash | 1 | -3/+3 | |
VAddr will always be 64-bit, so there's no need to take a trivial primitive alias by reference. | |||||
2020-08-06 | freezer: Make use of std::erase_if | Lioncash | 1 | -4/+1 | |
With C++20 we can simplify the erasing idiom. | |||||
2020-08-06 | cheat_engine: Resolve implicit bool->u64 conversion | Lioncash | 1 | -1/+1 | |
We can just return zero here. | |||||
2020-08-06 | cheat_engine: Make use of designated initializers | Lioncash | 1 | -6/+18 | |
Same behavior, but makes the member being assigned obvious. | |||||
2020-08-06 | partition_data_manager: Update master key hashes | Lioncash | 1 | -5/+5 | |
Fills in some hashes that were previously unhandled. | |||||
2020-08-06 | partition_data_manager: Make data arrays constexpr | Lioncash | 4 | -138/+141 | |
Previously the constructor for all of these would run at program startup, consuming time before the application can enter main(). This is also particularly dangerous, given the logging system wouldn't have been initialized properly yet, yet the program would use the logs to signify an error. To rectify this, we can replace the literals with constexpr functions that perform the conversion at compile-time, completely eliminating the runtime cost of initializing these arrays. | |||||
2020-08-06 | partition_data_manager: Eliminate magic value | Lioncash | 1 | -2/+2 | |
We can use sizeof to make it obvious at the call site where the value is coming from. | |||||
2020-08-06 | aes_util: Make use of non-template variant of Transcode | Lioncash | 1 | -1/+1 | |
Same behavior, less template instantiations. | |||||
2020-08-06 | Fix thread naming on Linux, which limits names to 15 bytes. | comex | 2 | -1/+13 | |
- In `SetCurrentThreadName`, when on Linux, truncate to 15 bytes, as (at least on glibc) `pthread_set_name_np` will otherwise return `ERANGE` and do nothing. - Also, add logging in case `pthread_set_name_np` returns an error anyway. This is Linux-specific, as the Apple and BSD versions of `pthread_set_name_np return `void`. - Change the name for CPU threads in multi-core mode from "yuzu:CoreCPUThread_N" (19 bytes) to "yuzu:CPUCore_N" (14 bytes) so it fits into the Linux limit. Some other thread names are also cut off, but I didn't bother addressing them as you can guess them from the truncated versions. For a CPU thread, truncation means you can't see which core it is! | |||||
2020-08-05 | common/virtual_buffer: drop unused includes | Jan Beich | 1 | -9/+0 | |
On DragonFly and NetBSD build fails with src/common/virtual_buffer.cpp src/common/virtual_buffer.cpp:16:10: fatal error: sys/sysinfo.h: No such file or directory #include <sys/sysinfo.h> ^~~~~~~~~~~~~~~ | |||||
2020-08-05 | system_control: Make functions internally linked where applicable | Lioncash | 2 | -15/+11 | |
These functions are only ever used internally as implementation details for GenerateRandomRange(), so these can be given internal linkage. | |||||
2020-08-05 | kernel: Remove unused variables | Lioncash | 2 | -18/+11 | |
Resolves a few compiler warnings. | |||||
2020-08-05 | scheduler: Resolve sign conversion warning | Lioncash | 1 | -1/+2 | |
2020-08-05 | address_arbiter: Resolve sign conversion warning | Lioncash | 1 | -1/+1 | |
Makes our type conversion explicit. | |||||
2020-08-05 | ipc_helpers: Only allow trivially copyable objects with PushRaw() and PopRaw() | Lioncash | 1 | -0/+4 | |
It's undefined behavior to use non-trivially copyable objects with std::memcpy, so we can add asserts to catch usages of these at compile-time. | |||||
2020-08-05 | vfs_vector: Make creation of array vfs files less verbose | Lioncash | 4 | -41/+41 | |
We can add a helper function to make creation of these files nicer. While we're at it, we can eliminate an unnecessary std::array copy in the constructor. This makes the overhead on some of these functions way less intensive, given some arrays were quite large. e.g. The timezone location names are 9633 bytes in size. | |||||
2020-08-05 | main: Fallback to loader if no control nca is found with patch manager | Morph | 1 | -6/+17 | |
In some rare instances, the patch manager is not able to find a control nca, fallback to the previous method of parsing a control nca through the loader if this occurs. | |||||
2020-08-05 | main: Fix Open Save/Mod Locations for installed titles | Morph | 4 | -12/+12 | |
Previously NAND/SDMC installed titles would open device saves when they are supposed to be user saves. This is due to the control nca not being read and thus returns 0 for both GetDefaultNormalSaveSize() and GetDeviceSaveDataSize(). Fix this by utilizing the patch manager to read the control nca. | |||||
2020-08-05 | game_list_worker: Do not clear entries when > 1 gamedir is present | Morph | 1 | -1/+1 | |
Previously the map of entries was being cleared while looping through each game directory, this resulted into all game directories except the last game dir to lose content metadata information. Fix this by clearing the entries only once. | |||||
2020-08-03 | aes_util: Allow SetIV to be non-allocating | Lioncash | 7 | -27/+36 | |
In a few places, the data to be set as the IV is already within an array. We shouldn't require this data to be heap-allocated if it doesn't need to be. This allows certain callers to reduce heap churn. | |||||
2020-08-03 | perf_stats: Make use of designated initializers | Lioncash | 1 | -6/+7 | |
Same behavior, but allows us to avoid a now-unnecessary zero initialization. | |||||
2020-08-03 | perf_stats: Mark GetMeanFrametime() as const | Lioncash | 2 | -9/+9 | |
The general pattern is to mark mutexes as mutable when it comes to matters of constness, given the mutex acts as a transient member of a data structure. | |||||
2020-08-03 | vulkan: Silence more -Wmissing-field-initializer warnings | Lioncash | 6 | -3/+18 | |
2020-08-03 | yuzu: Resolve C++20 deprecation warnings related to lambda captures | Lioncash | 9 | -81/+88 | |
C++20 deprecates capturing the this pointer via the '=' capture. Instead, we replace it or extend the capture specification. | |||||
2020-08-03 | service/ldr: Resolve sign mismatch warnings | Lioncash | 1 | -3/+2 | |
We were performing an int < size_t comparison. We can just correct the type of the induction variable. | |||||
2020-08-03 | CMakeLists: Resolve #4478 | Lioncash | 1 | -1/+6 | |
This switch is enabled by default in all recent versions of GCC and Clang. | |||||
2020-08-03 | tests/core_timing: Remove pragma optimize(off) | Lioncash | 1 | -9/+5 | |
I made a review comment about this in the PR that this was introduced in (#3955, commit 71c4779211dc081a3b2dd4af52edad5748e7a7f5), but it seems to have been missed. We shouldn't be using this pragma here because it's MSVC specific. This causes warnings on other compilers. The test it's surrounding is *extremely* dubious, but for the sake of silencing warnings on other compilers, we can mark "placebo" as volatile and be on with it. | |||||
2020-08-03 | time_zone_binary: Make use of designated initializers | Lioncash | 1 | -17/+25 | |
2020-08-03 | logging/backend: Make use of designated initializers | Lioncash | 2 | -21/+15 | |
Same behavior, less code. | |||||
2020-08-03 | buffer_queue: Make use of std::nullopt | Lioncash | 1 | -5/+6 | |
Allows compilers to eliminate unnecessary zeroing out of the optional's buffer. | |||||
2020-08-03 | buffer_queue: Make use of designated initializers | Lioncash | 1 | -5/+5 | |
2020-08-03 | profile_manager: Make use of std::nullopt | Lioncash | 1 | -4/+4 | |
Allows some implementations to completely avoid unnecessarily zeroing out the internal buffer. | |||||
2020-08-03 | profile_manager: Make use of designated initializers | Lioncash | 1 | -13/+22 | |
More compact code. | |||||
2020-08-03 | dmnt_cheat_vm: Make use of designated initializers | Lioncash | 1 | -105/+121 | |
Allows for more compact code. | |||||
2020-08-03 | file_sys/mode: Make use of DECLARE_ENUM_FLAG_OPERATORS with Mode | Lioncash | 2 | -18/+21 | |
Same behavior, minus a hand-rolled operator. | |||||
2020-08-03 | sm: Make use of IsBaseOf for GetService | David Marcec | 1 | -3/+2 | |
2020-08-03 | patch_manager: Resolve -Wignored-qualifier warnings | Lioncash | 1 | -2/+2 | |
Top level const will always be ignored in this case, so it can be removed. | |||||
2020-08-03 | registered_cache: Resolve -Wmaybe_uninitialized warnings | Lioncash | 1 | -10/+15 | |
While we're at it, we can avoid a redundant map lookup. | |||||
2020-08-03 | Place in anonymous namespace | David Marcec | 1 | -0/+4 | |
2020-08-03 | loader: Make IdentifyFile typesafe | David Marcec | 1 | -20/+32 | |
Relies on #4465 for concept.h Common::IsBaseOf | |||||
2020-08-03 | ipc: Allow all trivially copyable objects to be passed directly into WriteBuffer (#4465) | David | 12 | -30/+64 | |
* ipc: Allow all trivially copyable objects to be passed directly into WriteBuffer With the support of C++20, we can use concepts to deduce if a type is an STL container or not. * More agressive concept for stl containers * Add -fconcepts * Move to common namespace * Add Common::IsBaseOf | |||||
2020-08-01 | mix buffer depopping | David Marcec | 2 | -30/+101 | |
2020-07-31 | minor nits | Morph | 1 | -1/+3 | |
2020-07-31 | am: Unstub SetScreenShotPermission | David Marcec | 2 | -1/+12 | |
2020-07-30 | fsp-srv: Stub Read/WriteSaveDataFileSystemExtraDataWithMaskBySaveDataAttribute | Morph | 2 | -23/+56 | |
Stub these 2 service commands required for Animal Crossing: New Horizons Update 1.4.0 | |||||
2020-07-30 | fs: Rename SaveDataDescriptor to SaveDataAttribute | Morph | 5 | -41/+63 | |
2020-07-30 | adpcm streaming | David Marcec | 4 | -27/+32 | |
2020-07-29 | game_list_worker: Fix game list subdirectory scanning | Morph | 1 | -2/+2 | |
Oddly enough the scan that feeds the manual content provider is hardcoded to scan 2 nested directories deep. This effectively rendered the scan subdirectories setting useless as the manual content provider cannot find any games located more than 2 nested directories deep. Furthermore, this behavior causes game files to be picked up by the manual content provider even if scan subdirectories is disabled. FIx this by utilizing the behavior described when populating the game list for populating the content provider. | |||||
2020-07-29 | main: Add support for removing SDMC installed titles | Morph | 1 | -14/+13 | |
2020-07-29 | xts_archive: Check if the file is nullptr prior to parsing | Morph | 1 | -5/+9 | |
Fixes an access violation where the file no longer exists at the specified path while being parsed. | |||||
2020-07-29 | registered_cache: Add support for removing folder ncas | Morph | 2 | -53/+54 | |
2020-07-29 | game_list: Limit context menu options for homebrew | Morph | 1 | -1/+7 | |
Hides the following options when the title id is 0: - Open Save Location - Open Mod Data Location - Open Transferable Shader Cache - All removal options except Remove Custom Configuration | |||||
2020-07-29 | main: Remove assert for opening savedata when program_id = 0 | Morph | 1 | -1/+0 | |
2020-07-29 | main: Silence [[fallthrough]] warning | Morph | 1 | -3/+2 | |
2020-07-29 | main: Split removal cases into their individual functions and address feedback | Morph | 2 | -113/+131 | |
2020-07-29 | main: Connect game list remove signals to removal functions | Morph | 2 | -5/+167 | |
2020-07-29 | game_list: Add "Remove" context menu | Morph | 2 | -4/+37 | |
Adds the following actions: - Remove Installed Update - Remove All Installed DLC - Remove Shader Cache - Remove Custom Configuration - Remove All Installed Contents | |||||
2020-07-28 | configure_graphics: Remove Force 30 FPS mode | Morph | 6 | -25/+0 | |
The introduction of multicore rendered this setting non-functional as timing code was changed. This removes the setting entirely. | |||||
2020-07-28 | renderer_opengl: Use 1/4 of all threads for async shader compilation | Morph | 1 | -9/+4 | |
2020-07-28 | common/atomic_ops: Don't cast away volatile from pointers | Lioncash | 3 | -27/+30 | |
Preserves the volatility of the pointers being casted. | |||||
2020-07-28 | service/bsd: Handle Poll with no entries accurately | ReinUsesLisp | 1 | -0/+5 | |
Testing shows that Poll called with zero entries returns -1 and signals an errno of zero. | |||||
2020-07-28 | services/bsd: Implement most of bsd:s | ReinUsesLisp | 5 | -55/+911 | |
This implements: Socket, Poll, Accept, Bind, Connect, GetPeerName, GetSockName, Listen, Fcntl, SetSockOpt, Shutdown, Recv, RecvFrom, Send, SendTo, Write, and Close The implementation was done referencing: SwIPC, switchbrew, testing with libnx and inspecting its code, general information about bsd sockets online, and analysing official software. Not everything from these service calls is implemented, but everything that is not implemented will be logged in some way. | |||||
2020-07-28 | service/sockets: Add worker pool abstraction | ReinUsesLisp | 1 | -0/+30 | |
Manage worker threads with an easy to use abstraction. We can expand this to support thread deletion in the future. | |||||
2020-07-28 | service/sockets: Add worker abstraction to execute blocking calls asynchronously | ReinUsesLisp | 2 | -0/+133 | |
This abstraction allows executing blocking functions (like recvfrom on a socket configured for blocking) without blocking the service thread. It is intended to be used with SleepClientThread. | |||||
2020-07-28 | service/sockets: Add translate functions | ReinUsesLisp | 3 | -0/+215 | |
These functions translate from Network enumerations/structures to guest enumerations/structures and viceversa. | |||||
2020-07-28 | service/sockets: Add enumerations and structures | ReinUsesLisp | 2 | -0/+81 | |
Add guest enumerations and structures used in socket services | |||||
2020-07-28 | services/nifm: Implement GetCurrentIpAddress | ReinUsesLisp | 1 | -1/+12 | |
This is trivially implemented using the Network abstraction - Used by ftpd | |||||
2020-07-28 | device_memory: Remove unused system member | Lioncash | 3 | -11/+4 | |
This isn't used by anything in particular, so it can be removed. | |||||
2020-07-28 | cpu_manager: Remove redundant std::function declarations | Lioncash | 1 | -3/+3 | |
We can just return the function directly. Making for less reading. | |||||
2020-07-28 | Update src/core/hle/service/nvdrv/devices/nvmap.cpp | bunnei | 1 | -1/+1 | |
Co-authored-by: LC <mathew1800@gmail.com> | |||||
2020-07-28 | core_timing: Make use of uintptr_t to represent user_data | Lioncash | 15 | -43/+52 | |
Makes the interface future-proofed for supporting other platforms in the event we ever support platforms with differing pointer sizes. This way, we have a type in place that is always guaranteed to be able to represent a pointer exactly. | |||||
2020-07-28 | yuzu/main: Remove redundant usages of QStringLiteral("") | Lioncash | 1 | -6/+5 | |
An empty QStringLiteral can more efficiently be replaced with an empty QString. | |||||
2020-07-27 | remove unused variable; | CrazyMax | 1 | -1/+0 | |
2020-07-26 | GCAdapter: only join worker thread if running & joinable | Brian J. Tarricone | 1 | -1/+3 | |
2020-07-26 | video_core/gpu: Correct the size of the puller registers | Billy Laws | 1 | -2/+2 | |
The puller register array is made up of u32s however the `NUM_REGS` value is the size in bytes, so switch it to avoid making the struct unnecessary large. Also fix a small typo in a comment. | |||||
2020-07-26 | config: Make the save-as identifier more consistent | lat9nq | 1 | -2/+2 | |
Solves an issue with restoring the value upon reloading program. | |||||
2020-07-26 | hle: nvdrv: Rewrite of GPU memory management. | bunnei | 6 | -593/+431 | |
2020-07-26 | yuzu/configure_debug: Remove duplicated checkboxes | FearlessTobi | 1 | -22/+0 | |
Those are already found in the Filesystem tab. They were added back to the Debug tab by mistake in the Vulkan PR. | |||||
2020-07-26 | nvflinger: Mark interface functions with return values as [[nodiscard]] | Lioncash | 1 | -16/+14 | |
Not using the return value of these functions are undeniably the source of a bug. This way we allow compilers to loudly make any future misuses evident. | |||||
2020-07-26 | nvflinger: Use return value of Lock() | Lioncash | 3 | -4/+4 | |
comex reported in #4424 that we were incorrectly discarding the return value of Lock() which is correct. | |||||
2020-07-25 | common/string_util: Remove unimplemented function prototype (#4414) | LC | 1 | -12/+0 | |
This function was relocated to log.h as a constexpr function, so this can be removed. | |||||
2020-07-25 | Fix perf regression | David Marcec | 1 | -1/+2 | |
2020-07-25 | vulkan: Resolve -Wmissing-field-initializer warnings | Lioncash | 2 | -0/+4 | |
2020-07-25 | udp/client: Remove unused boost include | Lioncash | 1 | -1/+0 | |
Also silences a deprecation warning from boost on Clang/GCC. | |||||
2020-07-25 | gc_adapter: Resolve C++20 deprecation warning | Lioncash | 1 | -1/+1 | |
2020-07-25 | gc_poller: Resolve -Wsign-compare warning | Lioncash | 1 | -1/+2 | |
2020-07-25 | gc_poller: Resolve -Wredundant-move warning | Lioncash | 1 | -2/+1 | |
2020-07-25 | lz4_compression: Make use of std::span in interfaces | Lioncash | 2 | -17/+14 | |
Allows compressing the data and size parameters into one. | |||||
2020-07-25 | zstd_compression: Make use of std::span in interfaces | Lioncash | 3 | -13/+10 | |
Allows condensing the data and size parameters into a single argument. | |||||
2020-07-25 | virtual_buffer: Mark size parameter of FreeMemoryPages() as [[maybe_unused]] | Lioncash | 1 | -1/+1 | |
This isn't used on Windows, but is used on non-Windows operating systems. | |||||
2020-07-25 | Fix stream channel count when outputting to stereo | David Marcec | 1 | -1/+1 | |
2020-07-25 | Address issues | David Marcec | 8 | -101/+104 | |
2020-07-25 | Queue extra mix buffer | David Marcec | 1 | -0/+1 | |
2020-07-25 | Disable time stretcher for time being | David Marcec | 2 | -6/+4 | |
2020-07-25 | audio_core: Apollo Part 1, AudioRenderer refactor | David Marcec | 26 | -713/+4204 | |
2020-07-23 | network: add missing include for BSDs | Jan Beich | 1 | -0/+2 | |
src/core/network/network.cpp:112:28: error: use of undeclared identifier 'SHUT_RD' constexpr int SD_RECEIVE = SHUT_RD; ^ src/core/network/network.cpp:113:25: error: use of undeclared identifier 'SHUT_WR' constexpr int SD_SEND = SHUT_WR; ^ src/core/network/network.cpp:114:25: error: use of undeclared identifier 'SHUT_RDWR' constexpr int SD_BOTH = SHUT_RDWR; ^ src/core/network/network.cpp:120:37: error: unknown type name 'in_addr'; did you mean 'in_addr_t'? constexpr IPv4Address TranslateIPv4(in_addr addr) { ^~~~~~~ in_addr_t /usr/include/netdb.h:66:20: note: 'in_addr_t' declared here typedef __uint32_t in_addr_t; ^ src/core/network/network.cpp:121:27: error: member reference base type 'in_addr_t' (aka 'unsigned int') is not a structure or union const u32 bytes = addr.s_addr; ~~~~^~~~~~~ src/core/network/network.cpp:121:15: error: variables defined in a constexpr function must be initialized const u32 bytes = addr.s_addr; ^ src/core/network/network.cpp:126:10: error: incomplete result type 'sockaddr' in function definition sockaddr TranslateFromSockAddrIn(SockAddrIn input) { ^ /usr/include/netdb.h:142:9: note: forward declaration of 'sockaddr' struct sockaddr *ai_addr; /* binary address */ ^ src/core/network/network.cpp:127:5: error: unknown type name 'sockaddr_in'; did you mean 'sockaddr'? sockaddr_in result; ^~~~~~~~~~~ sockaddr /usr/include/netdb.h:142:9: note: 'sockaddr' declared here struct sockaddr *ai_addr; /* binary address */ ^ src/core/network/network.cpp:127:17: error: variable has incomplete type 'sockaddr' sockaddr_in result; ^ /usr/include/netdb.h:142:9: note: forward declaration of 'sockaddr' struct sockaddr *ai_addr; /* binary address */ ^ src/core/network/network.cpp:131:29: error: use of undeclared identifier 'AF_INET' result.sin_family = AF_INET; ^ src/core/network/network.cpp:135:29: error: use of undeclared identifier 'AF_INET' result.sin_family = AF_INET; ^ src/core/network/network.cpp:139:23: error: use of undeclared identifier 'htons' result.sin_port = htons(input.portno); ^ src/core/network/network.cpp:143:14: error: variable has incomplete type 'sockaddr' sockaddr addr; ^ /usr/include/netdb.h:142:9: note: forward declaration of 'sockaddr' struct sockaddr *ai_addr; /* binary address */ ^ src/core/network/network.cpp:156:1: error: unknown type name 'linger' linger MakeLinger(bool enable, u32 linger_value) { ^ src/core/network/network.cpp:157:5: error: unknown type name 'linger' linger value; ^ src/core/network/network.cpp:185:16: error: use of undeclared identifier 'AF_INET' return AF_INET; ^ src/core/network/network.cpp:195:16: error: use of undeclared identifier 'SOCK_STREAM' return SOCK_STREAM; ^ src/core/network/network.cpp:197:16: error: use of undeclared identifier 'SOCK_DGRAM' return SOCK_DGRAM; ^ src/core/network/network.cpp:207:16: error: use of undeclared identifier 'IPPROTO_TCP' return IPPROTO_TCP; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] | |||||
2020-07-21 | vi: IApplicationDisplayService:GetIndirectLayerImageRequiredMemoryInfo | David Marcec | 1 | -1/+19 | |
Needed for dark souls and monster hunter | |||||
2020-07-21 | surface_params: Make use of designated initializers where applicable | Lioncash | 1 | -38/+46 | |
Provides a convenient way to avoid unnecessary zero initializing. | |||||
2020-07-21 | surface_params: Remove redundant assignment | Lioncash | 1 | -1/+0 | |
This is a redundant assignment that can be removed. | |||||
2020-07-21 | surface_params: Replace questionable usages of the comma operator with semicolons | Lioncash | 1 | -9/+9 | |
These are bugs waiting to happen. | |||||
2020-07-21 | video_core: Remove unused variables | Lioncash | 8 | -33/+5 | |
Silences several compiler warnings about unused variables. | |||||
2020-07-21 | vk_rasterizer: Remove unused variable in Clear() | Lioncash | 1 | -4/+0 | |
The relevant values are already assigned further down in the lambda, so this can be removed entirely. | |||||
2020-07-21 | compatible_formats: Add missing header guard | Lioncash | 1 | -0/+2 | |
Prevents potential inclusion issues from occurring. | |||||
2020-07-21 | video_core: Allow copy elision to take place where applicable | Lioncash | 7 | -26/+26 | |
Removes const from some variables that are returned from functions, as this allows the move assignment/constructors to execute for them. | |||||
2020-07-21 | configure_ui: Ensure a separator follows the returned path | lat9nq | 1 | -3/+5 | |
2020-07-21 | configure_ui: don't use an empty string | lat9nq | 1 | -1/+3 | |
If the user had cancelled, it would clear the text box. That behavior was sanitized underneath, but may anyways cause inconveniences. | |||||
2020-07-21 | main: Don't use as many string copies | lat9nq | 1 | -6/+8 | |
Co-Authored-By: LC <lioncash@users.noreply.github.com> | |||||
2020-07-21 | main: rewrite (save as) screenshot saving | lat9nq | 1 | -9/+18 | |
This picks a default directory and file name. If on Windows and save-as screenshot saving is enabled, it asks the user, first defaulting to the default screenshot path, and with a default filename in the format `[title_id]_[year-mt-dy_hr-mn-sc-msc].png`. Otherwise, or on Linux for now, it simply saves a file in that directory with that file name. | |||||
2020-07-21 | configuration: Setup UI to config screenshot path and saving | lat9nq | 5 | -5/+93 | |
This adds two options to the General -> UI tab. The first disables picking a place to save the file. The second chooses a default directory for saving screenshots. | |||||
2020-07-21 | common: Add a screenshots directory | lat9nq | 3 | -0/+3 | |
Adds a screenshots directory as a path managed by FileUtil. | |||||
2020-07-21 | video_core: Remove redundant pixel format type | David Marcec | 1 | -1/+0 | |
We already get the format type before converting shadow formats and during shadow formats. | |||||
2020-07-20 | buffer_cache: Eliminate redundant map lookup in MarkRegionAsWritten() | Lioncash | 1 | -6/+3 | |
We can make use of emplace()'s return value to determine whether or not we need to perform an increment. emplace() performs no insertion if an element already exist, so this can eliminate a find() call. | |||||
2020-07-20 | wait_tree: Include Midnight Blue dark themes | Morph | 1 | -1/+4 | |
2020-07-20 | qt-themes: Add Midnight Blue qdarkstyle theme (2.8.1) | James Rowe | 2 | -1/+3 | |
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com> | |||||
2020-07-20 | Address issues | David Marcec | 1 | -2/+2 | |
2020-07-19 | configure_graphics_advnaced: clang-format mk ii | lat9nq | 1 | -3/+3 | |
2020-07-19 | configure_graphics_advanced: Fix oversight from rebase | lat9nq | 1 | -1/+1 | |
2020-07-19 | configuration_shared: Remove unused functions | lat9nq | 2 | -18/+0 | |
These were only kept for compatibility with old code during testing. | |||||
2020-07-19 | configuration: Use forward declares and remove extraneous structs | lat9nq | 10 | -63/+59 | |
2020-07-19 | configuration_shared: Make CheckState strongly typed | lat9nq | 2 | -24/+23 | |
Also gets rid of unnecessary explicit namespace usage. | |||||
2020-07-19 | clang-format | lat9nq | 5 | -38/+32 | |
2020-07-19 | configuration_shared: Break up tracker structs to respective classes | lat9nq | 12 | -49/+58 | |
One less global variable. | |||||
2020-07-19 | configure_system: break instead of semicolon | lat9nq | 1 | -2/+4 | |
Makes the code more readable Co-Authored-By: LC <lioncash@users.noreply.github.com> | |||||
2020-07-19 | clang-format | lat9nq | 3 | -8/+11 | |
2020-07-19 | configure_system: Highlight labels on startup | lat9nq | 1 | -0/+5 | |
whoops | |||||
2020-07-19 | configure_graphics: Fix layout in global config | lat9nq | 1 | -1/+1 | |
Fixes a regression where the global config takes up a lot of extra space. | |||||
2020-07-19 | configure_per_game: Improve style consistency | lat9nq | 3 | -54/+43 | |
The way the configurations are set up, it is not trivial to do this. I'll leave it as is, but the API selection, and the background color and volume slider selectors are kind of not following the style. | |||||
2020-07-19 | configure_system: Implement highlighted overrides | lat9nq | 3 | -539/+544 | |
2020-07-19 | configuration_shared: Add default combobox setup function | lat9nq | 3 | -21/+52 | |
Not a catch-all, but helps clean up the code for when I do this a lot. Also fixes some bugs caught in configure_graphics. | |||||
2020-07-19 | configuration_shared: Use an int instead of a QString | lat9nq | 4 | -22/+28 | |
I noticed some of the code could be reduced to just passing the function an int, since I was doing the same thing over and over. Also clang-formats configure_graphics | |||||
2020-07-19 | configure_graphics_advanced: Implement highlighted overrides | lat9nq | 3 | -96/+146 | |
2020-07-19 | configuration_shared: Switch back to background colors | lat9nq | 1 | -2/+2 | |
Let's see if I make up my mind. | |||||
2020-07-19 | configuration_shared: Better use global text | lat9nq | 2 | -0/+15 | |
Also adds trackers for graphics and advanced graphics | |||||
2020-07-19 | configure_audio: fix UI margins | lat9nq | 1 | -1/+10 | |
2020-07-19 | configure_graphics: Implement highlighted overrides | lat9nq | 2 | -134/+200 | |
2020-07-19 | configure_audio: Implement highlighted overrides | lat9nq | 2 | -80/+87 | |
2020-07-19 | configuration_shared: Require name of the widget for highlighting | lat9nq | 3 | -16/+27 | |
Prevents mass-coloring of elements later on | |||||
2020-07-19 | configuration_shared: Use a highlight instead of background color | lat9nq | 2 | -6/+6 | |
Fixes visibility in the built-in dark theme | |||||
2020-07-19 | configure_general: Implement manual tristate buttons | lat9nq | 2 | -17/+27 | |
2020-07-19 | configuration_shared: Initial functions and data for manual tristate | lat9nq | 2 | -0/+58 | |
Sets up initial support for implementing colored tristate functions. These functions color a QWidget blue when it's overriding a global setting, and discolor it when not. The lack of color indicates it uses the global state, replacing the Qt::CheckState::PartiallyChecked state with the global state. | |||||
2020-07-19 | Fix axis thresholding while polling | ameerj | 1 | -5/+2 | |
axes were very sensitive when mapping controls. | |||||
2020-07-19 | swkbd: Return result for Calc request for inlined swkbd | David Marcec | 2 | -13/+49 | |
Fixes random swkbd popups in monster hunter | |||||
2020-07-19 | core/network: Add network abstraction | ReinUsesLisp | 5 | -0/+840 | |
This commit adds a network abstraction designed to implement bsd:s but at the same time work as a generic abstraction to implement any networking code we have to use from core. This is implemented on top of BSD sockets on Unix systems and winsock on Windows. The code is designed around winsocks having compatibility definitions to support both BSD and Windows sockets. | |||||
2020-07-19 | alignment: explicitly include <new> after 723edb4c0659 | Jan Beich | 1 | -0/+1 | |
In file included from src/core/hle/kernel/memory/page_table.cpp:5: src/./common/alignment.h:67:68: error: no member named 'align_val_t' in namespace 'std' return static_cast<T*>(::operator new (n * sizeof(T), std::align_val_t{Align})); ~~~~~^ src/./common/alignment.h:71:51: error: no member named 'align_val_t' in namespace 'std' ::operator delete (p, n * sizeof(T), std::align_val_t{Align}); ~~~~~^ | |||||
2020-07-18 | Address issues | David Marcec | 1 | -6/+3 | |
2020-07-18 | Address trivial review comments. | FearlessTobi | 1 | -1/+1 | |
2020-07-18 | configure_ui: Address some review comments from the previous PR | FearlessTobi | 2 | -16/+21 | |
2020-07-18 | yuzu: Port translation support from Citra | FearlessTobi | 10 | -84/+235 | |
Co-Authored-By: Weiyi Wang <wwylele@gmail.com> | |||||
2020-07-18 | frontend: Improve wait tree readability for dark themes | David Marcec | 1 | -11/+44 | |
2020-07-18 | gl_arb_decompiler: Use NV_shader_buffer_{load,store} on assembly shaders | ReinUsesLisp | 7 | -110/+173 | |
NV_shader_buffer_{load,store} is a 2010 extension that allows GL applications to use what in Vulkan is known as physical pointers, this is basically C pointers. On GLASM these is exposed through the LOAD/STORE/ATOM instructions. Up until now, assembly shaders were using NV_shader_storage_buffer_object. These work fine, but have a (probably unintended) limitation that forces us to have the limit of a single stage for all shader stages. In contrast, with NV_shader_buffer_{load,store} we can pass GPU addresses to the shader through local parameters (GLASM equivalent uniform constants, or push constants on Vulkan). Local parameters have the advantage of being per stage, allowing us to generate code without worrying about binding overlaps. | |||||
2020-07-18 | Fix style issues | David Marcec | 2 | -7/+13 | |
2020-07-18 | file_sys/nsp: Make SetTicketKeys actually do something | FearlessTobi | 2 | -32/+30 | |
Previously, the method wasn't modifying any class state and therefore not having any effects when called. Since this has been the case for a very long time now, I'm not sure if we couldn't just remove this method altogether. | |||||
2020-07-18 | vk_device: Fix build error on old MSVC versions | ReinUsesLisp | 1 | -3/+3 | |
Designated initializers on old MSVC versions fail to build when they take the address of a constant. | |||||
2020-07-17 | std::size_t where appropriate, make error message more clear if can't read | ameerj | 1 | -3/+4 | |
2020-07-17 | alignment: Simplify AlignmentAllocator implementation | Lioncash | 1 | -43/+4 | |
With C++20, much of the allocator interface has been simplified, so we can make the same adjustments. | |||||
2020-07-17 | Drop settings namespace | David Marcec | 1 | -2/+1 | |
2020-07-17 | Remove duplicate config | David Marcec | 2 | -2/+1 | |
2020-07-17 | Use conditional var | David Marcec | 2 | -9/+15 | |
2020-07-17 | Drop max workers from 8->2 for testing | David Marcec | 1 | -1/+1 | |
2020-07-17 | Rebase for per game settings | David Marcec | 9 | -1/+53 | |
2020-07-17 | async shaders | David Marcec | 16 | -64/+598 | |
2020-07-17 | macro_hle: Remove unnecessary static keywords | Lioncash | 1 | -7/+4 | |
These functions are already in an anonymous namespace which makes the functions internally linked. | |||||
2020-07-17 | core/CMakeLists: Add missing physical_memory.h header file | Lioncash | 1 | -0/+1 | |
Allows this header file to show up in IDE CMake generators. | |||||
2020-07-17 | macro_hle: Simplify shift expression in HLE_771BB18C62444DA0() | Lioncash | 1 | -2/+1 | |
Given the expression involves a 32-bit value, this simplifies down to just: 0x3ffffff. This is likely a remnant from testing that was never cleaned up. Resolves a -Wshift-overflow warning. | |||||
2020-07-17 | macro_hle: Remove unnecessary std::make_pair calls | Lioncash | 1 | -3/+3 | |
The purpose of make_pair is generally to deduce the types within the pair without explicitly specifying the types, so these usages were generally unnecessary, particularly when the type is enforced by the array declaration. | |||||
2020-07-17 | macro: Resolve missing parameter in doxygen comment | Lioncash | 1 | -1/+2 | |
Resolves a -Wdocumentation warning. | |||||
2020-07-17 | constants: Add missing <array> include | Lioncash | 1 | -0/+1 | |
Eliminates reliance on an indirect include. | |||||
2020-07-17 | mii/manager: Resolve sign mismatch warnings | Lioncash | 1 | -3/+3 | |
Previously the loop termination condition was testing variables of different signedness. | |||||
2020-07-17 | mii/manager: Make use of designated initializers | Lioncash | 1 | -53/+54 | |
Allows returning the structure in a more concise manner. | |||||
2020-07-17 | wrapper: Make use of designated initializers where applicable | Lioncash | 1 | -56/+64 | |
2020-07-17 | vk_texture_cache: Make use of designated initializers where applicable | Lioncash | 1 | -96/+135 | |
2020-07-17 | vk_texture_cache: Amend mismatched access masks and indices in UploadBuffer | Lioncash | 1 | -6/+4 | |
Discovered while converting relevant parts of the codebase over to designated initializers. | |||||
2020-07-17 | vk_swapchain: Make use of designated initializers where applicable | Lioncash | 1 | -43/+51 | |
2020-07-17 | vk_stream_buffer: Make use of designated initializers where applicable | Lioncash | 1 | -19/+16 | |
2020-07-17 | vk_staging_buffer_pool: Make use of designated initializers where applicable | Lioncash | 1 | -13/+12 | |
2020-07-17 | vk_shader_util: Make use of designated initializers where applicable | Lioncash | 1 | -7/+7 | |
2020-07-17 | vk_scheduler: Make use of designated initializers where applicable | Lioncash | 1 | -27/+30 | |
2020-07-17 | vk_sampler_cache: Make use of designated initializers where applicable | Lioncash | 1 | -24/+27 | |
2020-07-17 | vk_resource_manager: Make use of designated initializers where applicable | Lioncash | 1 | -15/+14 | |
2020-07-17 | vk_renderpass_cache: Make use of designated initializers where applicable | Lioncash | 1 | -59/+70 | |
2020-07-17 | vk_rasterizer: Make use of designated initializers where applicable | Lioncash | 1 | -41/+47 | |
2020-07-17 | vk_query_cache: Make use of designated initializers where applicable | Lioncash | 1 | -8/+8 | |
2020-07-17 | vk_pipeline_cache: Make use of designated initializers where applicable | Lioncash | 1 | -31/+35 | |
2020-07-17 | vk_memory_manager: Make use of designated initializers where applicable | Lioncash | 1 | -7/+6 | |
2020-07-17 | vk_image: Make use of designated initializers where applicable | Lioncash | 1 | -15/+23 | |
2020-07-17 | vk_descriptor_pool: Make use of designated initializers where applicable | Lioncash | 1 | -15/+18 | |
2020-07-17 | vk_graphics_pipeline: Resolve narrowing warnings | Lioncash | 1 | -2/+4 | |
For whatever reason, VK_TRUE and VK_FALSE aren't defined as having a VkBool32 type, so we need to cast to it explicitly. | |||||
2020-07-16 | vk_compute_pipeline: Make use of designated initializers where applicable | Lioncash | 1 | -63/+68 | |
2020-07-16 | vk_compute_pass: Make use of designated initializers where applicable | Lioncash | 1 | -95/+99 | |
Note: Some barriers can't be converted over yet, as they ICE MSVC. | |||||
2020-07-16 | vk_buffer_cache: Make use of designated initializers where applicable | Lioncash | 1 | -30/+33 | |
Note: An array within CopyFrom() cannot be converted over yet, as it ICEs MSVC when converted over. | |||||
2020-07-16 | decode/other: Implement S2R.LaneId | ReinUsesLisp | 1 | -2/+1 | |
This maps to host's thread id. - Fixes graphical issues on Paper Mario. | |||||
2020-07-16 | gl_arb_decompiler: Execute BAR even when inside control flow | ReinUsesLisp | 1 | -4/+0 | |
Unlike GLSL, GLASM allows us to call BAR inside control flow. - Fixes graphical artifacts in Paper Mario. | |||||
2020-07-16 | renderer_{opengl,vulkan}: Clamp shared memory to host's limit | ReinUsesLisp | 6 | -9/+42 | |
This stops shaders from failing to build when the exceed host's shared memory size limit. An error is logged. | |||||
2020-07-16 | kernel/thread: Remove unimplemented function prototype | Lioncash | 1 | -2/+0 | |
This isn't used, so it can be removed. | |||||
2020-07-16 | kernel: Remove unused variables | Lioncash | 3 | -7/+2 | |
Resolves some compiler warnings in the Linux build. | |||||
2020-07-16 | kernel: Add missing include | Lioncash | 1 | -0/+1 | |
2020-07-16 | cpu_manager: Mark function getters as static | Lioncash | 4 | -10/+11 | |
All these do are return std::function instances of static functions, so these can be used without an instance of the CPU manager. | |||||
2020-07-16 | cpu_manager: Remove unused preemption_count variable | Lioncash | 1 | -1/+0 | |
Shrinks the data structure by 8 bytes. | |||||
2020-07-16 | cpu_manager: Add missing includes | Lioncash | 1 | -0/+3 | |
Previously this header was relying on indirect inclusions that are no longer satisfied. | |||||
2020-07-16 | Refactor adapter code | Ameer | 2 | -179/+44 | |
2020-07-16 | hid: Only update keyboard & debug pad inputs if enabled | David Marcec | 2 | -33/+37 | |
Previously we would ignore this setting and would update the states regardless of the user setting | |||||
2020-07-16 | Check for empty section0 and CNMT prior to install | Morph | 1 | -3/+19 | |
2020-07-16 | Add comment to clarify the nullptr check | Morph | 1 | -0/+1 | |
2020-07-16 | filesystem: Create subdirectories prior to creating a file | Morph | 1 | -0/+3 | |
If subdirectories exist in the given path parameter and don't exist in the real filesystem create them prior to creating the files within. This fixes the softlocks upon save creation in The Legend of Zelda: Breath of the Wild | |||||
2020-07-16 | core_timing: Remove unused data member | Lioncash | 1 | -2/+0 | |
Shrinks the size of the CoreTiming class by 8 bytes. | |||||
2020-07-16 | core_timing: Make TimedCallback take std::chrono::nanoseconds | Lioncash | 16 | -58/+62 | |
Enforces our desired time units directly with a concrete type. | |||||
2020-07-16 | core_timing: Make use of std::chrono with ScheduleEvent | Lioncash | 13 | -49/+58 | |
2020-07-15 | settings: Resolve a sign conversion warning within GetTimeZoneString() | Lioncash | 1 | -5/+5 | |
A sign conversion warning was occurring due to an int < size_t comparison. | |||||
2020-07-15 | kernel/process: Move name and system context to the bottom of the member list | Lioncash | 1 | -6/+6 | |
These aren't directly important or commonly used within the process, so we can move these to the bottom to allow everything else to be more likely to be within a cache line. | |||||
2020-07-15 | kernel/handle_table: Remove usages of the global system instance | Lioncash | 4 | -8/+15 | |
Removes even more usages of the global system instance, trimming away more dependencies on global variables and making them explicit in the interface. | |||||
2020-07-15 | settings: Make use of std::string_view over std::string for logging | Lioncash | 1 | -33/+34 | |
In all usages of LogSetting(), string literals are provided. std::string_view is better suited here, as we won't churn a bunch of string allocations every time the settings are logged out. While we're at it, we can fold LogSetting() into LogSettings(), given it's only ever used there. | |||||
2020-07-15 | kernel/thread: Remove global GetCurrentThread() | Lioncash | 3 | -23/+7 | |
This is only used in one place, so we can fold it into the calling code, eliminating a place for the global system instance to be used. | |||||
2020-07-15 | clang format | Morph | 1 | -3/+3 | |
2020-07-15 | Use proper install result when overwriting files | Morph | 2 | -3/+3 | |
2020-07-15 | Remove global system instance and address feedback | Morph | 2 | -14/+10 | |
2020-07-15 | registered_cache: Remove previous update/dlc if it exists on install | Morph | 2 | -13/+83 | |
- This checks for and removes old updates or dlc based on title id. If a content meta nca exists within the registered cache, it will attempt to remove all the ncas associated with the content meta before installing a new update/dlc | |||||
2020-07-15 | clang-format | VolcaEM | 1 | -1/+2 | |
2020-07-15 | dmnt_cheat_vm: Implement opcode 0xC3 (ReadWriteStaticRegister) | VolcaEM | 2 | -1/+41 | |
This was based on Atmosphére's DMNT Cheat VM: - https://github.com/Atmosphere-NX/Atmosphere/blob/master/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.hpp - https://github.com/Atmosphere-NX/Atmosphere/blob/master/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.cpp From Atmosphére's documentation: "Code type 0xC3 reads or writes a static register with a given register" There are now only two remaining opcodes to implement (PauseProcess and BreakProcess) This is untested because I don't have any experience in testing cheats on yuzu | |||||
2020-07-14 | common/swap: Make use of std::endian | Lioncash | 1 | -42/+4 | |
Allows removing a bunch of defines in favor of a two liner. | |||||
2020-07-14 | shader_cache: Make use of std::erase_if | Lioncash | 1 | -2/+2 | |
Now that we use C++20, we can also make use of std::erase_if instead of needing to do the erase-remove idiom. | |||||
2020-07-14 | clang-format | lat9nq | 1 | -2/+1 | |
2020-07-14 | settings: Move settings sanitization to its own function | lat9nq | 4 | -4/+11 | |
Creates a new function that can be expanded later to fix other settings that are known to cause emulation errors across executables. | |||||
2020-07-14 | Fix crash if gc configured but adapter not connected | Ameer | 2 | -15/+25 | |
2020-07-14 | main: Set async gpu properly after loading per-game setting | lat9nq | 1 | -0/+4 | |
Another error that got pass me and only noticed when I was doing the per-game settings UI rework. This prevents asynchronous GPU emulation from being disabled while multi core is enabled as a result of a poorly put together per-game config. | |||||
2020-07-14 | configure_general: Explicitly guard use_multi_core when applying settings | lat9nq | 1 | -0/+2 | |
This is likely an oversight during a rebase. Guards use_multi_core to be only set when the global value is in use. It should not make a difference given the current code base, but makes the code sensible. | |||||
2020-07-14 | vk_device: Make use of designated initializers where applicable | Lioncash | 1 | -124/+152 | |
Avoids redundant repetitions of variable names, and allows assignment all in one statement. | |||||
2020-07-14 | input_common: drop unused libusb.h include | Ameer | 1 | -1/+0 | |
Remnant of an early implementation. | |||||
2020-07-14 | vk_graphics_pipeline: Make use of designated initializers where applicable | Lioncash | 1 | -198/+223 | |
Avoids redundant variable name repetitions. | |||||
2020-07-13 | input_common: make libusb private to gc_adapter | Jan Beich | 3 | -3/+7 | |
2020-07-13 | memory_layout: Remove unused data member | Lioncash | 1 | -2/+0 | |
This isn't used, so it can be removed entirely, shrinking the structure size by 8 bytes. | |||||
2020-07-13 | address_space_info: Use type alias to simplify code | Lioncash | 1 | -14/+13 | |
We can define an alias for the index arrays and then just reuse it to make the code nicer to read. | |||||
2020-07-13 | address_space_info: Make use of designated initializers | Lioncash | 2 | -46/+27 | |
We can alter the structure so that we can use designated initializers in the array, eliminating the comments that indicate their field names. | |||||
2020-07-13 | video_core: Rearrange pixel format names | ReinUsesLisp | 19 | -1179/+1077 | |
Normalizes pixel format names to match Vulkan names. Previous to this commit pixel formats had no convention, leading to confusion and potential bugs. | |||||
2020-07-13 | video_core: Fix DXT4 and RGB565 | ReinUsesLisp | 7 | -37/+31 | |
2020-07-13 | video_core/format_lookup_table: Add formats with existing PixelFormat | ReinUsesLisp | 1 | -1/+9 | |
2020-07-13 | video_core: Fix B5G6R5_UNORM render target format | ReinUsesLisp | 5 | -1/+10 | |
2020-07-13 | video_core: Fix B5G6R5U | ReinUsesLisp | 2 | -2/+2 | |
2020-07-13 | video_core: Implement RGBA32_SINT render target | ReinUsesLisp | 7 | -58/+71 | |
2020-07-13 | video_core: Implement RGBA32_SINT render target | ReinUsesLisp | 7 | -0/+13 | |
2020-07-13 | video_core: Implement RGBA16_SINT render target | ReinUsesLisp | 7 | -0/+13 | |
2020-07-13 | video_core: Implement RGBA8_SINT render target | ReinUsesLisp | 7 | -0/+13 | |
2020-07-13 | video_core: Implement RG32_SINT render target | ReinUsesLisp | 7 | -0/+13 | |
2020-07-13 | video_core: Implement RG8_SINT render target and fix RG8_UINT | ReinUsesLisp | 7 | -1/+14 | |
2020-07-13 | video_core: Implement R8_SINT render target | ReinUsesLisp | 7 | -0/+13 | |
2020-07-13 | video_core: Implement R8_SNORM render target | ReinUsesLisp | 7 | -0/+13 | |
2020-07-13 | video_core/surface: Remove explicit values on PixelFormat's definition | ReinUsesLisp | 1 | -80/+80 | |
2020-07-13 | video_core/surface: Reorder render target to pixel format switch | ReinUsesLisp | 1 | -53/+51 | |
2020-07-13 | kernel/scheduler: Use std::mutex instead of spin lock | ReinUsesLisp | 1 | -1/+1 | |
Profiling shows that this is a highly contested mutex, causing dimishing results compared to a OS lock. std::mutex implementations can spin for a while before falling back to an OS lock. This avoids wasting precious CPU cycles in a no-op. | |||||
2020-07-13 | vk_blit_screen: Make use of designated initializers where applicable | Lioncash | 1 | -334/+384 | |
Now that we make use of C++20, we can use designated initializers to make things a little nicer to read. | |||||
2020-07-13 | vk_state_tracker: Fix dirty flags for stencil_enable on VK_EXT_extended_dynamic_state | ReinUsesLisp | 1 | -0/+1 | |
Fixes a regression on any game using stencil on devices with VK_EXT_extended_dynamic_state. | |||||
2020-07-12 | udp: Silence a C++20 deprecation warning | Lioncash | 1 | -1/+1 | |
C++20 deprecates using the = lambda capture to implicitly capture the this pointer. Instead, we must specify it explicitly. | |||||
2020-07-12 | gc_poller: Mark GCButtonFactory::GetNextInput() as const | Lioncash | 2 | -2/+2 | |
This doesn't modify class instance state. | |||||
2020-07-12 | gc_poller: Get rid of undefined behavior in Create() | Lioncash | 1 | -0/+4 | |
Ensures that the function always has returns in all control paths. | |||||
2020-07-12 | gc_poller: Silence sign conversion warnings | Lioncash | 1 | -1/+1 | |
2020-07-12 | gc_adapter: Remove deprecated usage of = in lambda captures | Lioncash | 1 | -1/+1 | |
It's deprecated in C++20 to use = to capture the this pointer. Instead, we can simply pass this as an argument to the thread constructor. | |||||
2020-07-12 | gc_adapter: Silence sign conversion warnings | Lioncash | 2 | -7/+7 | |
2020-07-12 | configure_cpu: Split optimization settings off into Debug tab | MerryMage | 9 | -163/+302 | |
2020-07-12 | common/alignment: Fix compilation errors (#4303) | Tobias | 1 | -1/+3 | |
2020-07-12 | fs: Fix RomFS building when zero byte files are present | Morph | 4 | -10/+10 | |
When zero byte files are present, the key (offset) for that file is identical to the file right after. A std::map isn't able to fit key-value pairs with identical keys (offsets), therefore, the solution is to use std::multimap which permits multiple entries with the same key. This most prominently fixes Pokemon Sword and Shield weather with any RomFS mod applied. | |||||
2020-07-12 | hle: service: mii: Rewrite service to properly support creation of random and default miis. | bunnei | 9 | -914/+3270 | |
2020-07-12 | Revert "Port citra-emu/citra#5441: "Common: remove a mod from AlignUp"" | bunnei | 1 | -3/+1 | |
2020-07-11 | Common: remove a mod from AlignUp (#5441) | Marshall Mohror | 1 | -1/+3 | |
In cases where the size is not a known constant when inlining, AlignUp<std::size_t> currently generates two 64-bit div instructions. This generates one div and a cmov which is significantly cheaper. | |||||
2020-07-11 | configure_cpu: Add tooltips | MerryMage | 1 | -1/+54 | |
2020-07-11 | configure_cpu: Show/Hide debugging options | MerryMage | 7 | -46/+135 | |
2020-07-11 | main/profile_select: Don't prompt for profile selection when only one is available | FearlessTobi | 1 | -9/+13 | |
2020-07-11 | configuration: Add settings to enable/disable specific CPU optimizations | MerryMage | 16 | -29/+404 | |
2020-07-11 | CMakeLists: Make use of /std:c++latest on MSVC | Lioncash | 1 | -2/+2 | |
Provides the buildbot with one builder that is always tracking the latest version of the C++ standard, allowing us to progressively rectify our code and amend any differences between standards over time instead of waiting for a complete standard change, potentially breaking a lot of code all at once. | |||||
2020-07-10 | vk_rasterizer: Pass <pSizes> to CmdBindVertexBuffers2EXT | ReinUsesLisp | 1 | -6/+6 | |
This has been fixed in Nvidia's public beta driver 451.74. The previous beta driver will be broken, people using these will have to update. | |||||
2020-07-10 | Break out of scan loop if can't find adapter on first run | Ameer | 1 | -0/+3 | |
2020-07-10 | video_core/textures: Add and use SwizzleSliceToVoxel, and minor style changes | ReinUsesLisp | 5 | -84/+125 | |
Change GOB sizes from free-functions to constexpr constants. Add SwizzleSliceToVoxel, a function that swizzles a 2D array of pixels into a 3D texture and use it for 3D copies. | |||||
2020-07-10 | vfs_real: Fix MoveFile | Morph | 1 | -10/+17 | |
The file wasn't closed prior to being renamed / moved, throwing an error that states "The process cannot access the file because it is being used by another process." Fix this by closing the file prior to a rename / move operation. Fixes saving in Luigi's Mansion 3 and KATANA KAMI: A Way of the Samurai Story. | |||||
2020-07-10 | KeyManager: Prevent writing of invalid keys | Morph | 1 | -4/+8 | |
If the keys are zero, don't write them to the autogenerated file. | |||||
2020-07-10 | Add additional empty check for the QStringList returned by the InstallDialog | Morph | 1 | -0/+4 | |
2020-07-10 | Update the install and progress dialogs | Morph | 4 | -80/+65 | |
- Remove the overwrite files checkbox, it will always overwrite - The progressbar now reflects the progress in terms of data transferred. | |||||
2020-07-10 | Refactor batch installing files | Morph | 4 | -196/+238 | |
Key issues fixed: - Progress dialog showing up as white/hanging/getting stuck/unresponsive. Key changes: - Progress dialog now shows progress as a function of all files instead of per nca within a file. - Overwrite existing files will overwrite all files in the selection. | |||||
2020-07-10 | Add support for batch install to NAND | Morph | 6 | -124/+290 | |
This adds support to batch install files to NAND | |||||
2020-07-10 | bis_factory: Set User NAND free space to be 1 MiB less than total. | Morph | 1 | -1/+3 | |
2020-07-10 | sdmc_factory: Set the SDMC total size to 1 TiB | Morph | 1 | -1/+3 | |
We should not be limited by the SDMC's partition size, set this to 1 TiB. Hardware is limited to the max allowed by the MBR partition table which is 2 TiB. | |||||
2020-07-10 | bis_factory: Use hardware default NAND partition sizes | Morph | 1 | -10/+11 | |
Sets the total space of user and system partitions to their hardware defaults. Furthermore, return the total space as free space for the user partition to prevent it from reaching zero. Some games like Bioshock 2 check for the available free space prior to save creation, and we should not be limited by arbitrary limits. | |||||
2020-07-10 | settings: Remove storage size options | Morph | 5 | -214/+1 | |
2020-07-10 | cmake: Fix libfmt linking errors | David Marcec | 1 | -5/+1 | |
2020-07-10 | configuration: implement per-game configurations (#4098) | lat9nq | 57 | -835/+1942 | |
* Switch game settings to use a pointer In order to add full per-game settings, we need to be able to tell yuzu to switch to using either the global or game configuration. Using a pointer makes it easier to switch. * configuration: add new UI without changing existing funcitonality The new UI also adds General, System, Graphics, Advanced Graphics, and Audio tabs, but as yet they do nothing. This commit keeps yuzu to the same functionality as originally branched. * configuration: Rename files These weren't included in the last commit. Now they are. * configuration: setup global configuration checkbox Global config checkbox now enables/disables the appropriate tabs in the game properties dialog. The use global configuration setting is now saved to the config, defaulting to true. This also addresses some changes requested in the PR. * configuration: swap to per-game config memory for properties dialog Does not set memory going in-game. Swaps to game values when opening the properties dialog, then swaps back when closing it. Uses a `memcpy` to swap. Also implements saving config files, limited to certain groups of configurations so as to not risk setting unsafe configurations. * configuration: change config interfaces to use config-specific pointers When a game is booted, we need to be able to open the configuration dialogs without changing the settings pointer in the game's emualtion. A new pointer specific to just the configuration dialogs can be used to separate changes to just those config dialogs without affecting the emulation. * configuration: boot a game using per-game settings Swaps values where needed to boot a game. * configuration: user correct config during emulation Creates a new pointer specifically for modifying the configuration while emulation is in progress. Both the regular configuration dialog and the game properties dialog now use the pointer Settings::config_values to focus edits to the correct struct. * settings: split Settings::values into two different structs By splitting the settings into two mutually exclusive structs, it becomes easier, as a developer, to determine how to use the Settings structs after per-game configurations is merged. Other benefits include only duplicating the required settings in memory. * settings: move use_docked_mode to Controls group `use_docked_mode` is set in the input settings and cannot be accessed from the system settings. Grouping it with system settings causes it to be saved with per-game settings, which may make transferring configs more difficult later on, especially since docked mode cannot be set from within the game properties dialog. * configuration: Fix the other yuzu executables and a regression In main.cpp, we have to get the title ID before the ROM is loaded, else the renderer will reflect only the global settings and now the user's game specific settings. * settings: use a template to duplicate memory for each setting Replaces the type of each variable in the Settings::Values struct with a new class that allows basic data reading and writing. The new struct Settings::Setting duplicates the data in memory and can manage global overrides per each setting. * configuration: correct add-ons config and swap settings when apropriate Any add-ons interaction happens directly through the global values struct. Swapping bewteen structs now also includes copying the necessary global configs that cannot be changed nor saved in per-game settings. General and System config menus now update based on whether it is viewing the global or per-game settings. * settings: restore old values struct No longer needed with the Settings::Setting class template. * configuration: implement hierarchical game properties dialog This sets the apropriate global or local data in each setting. * clang format * clang format take 2 can the docker container save this? * address comments and style issues * config: read and write settings with global awareness Adds new functions to read and write settings while keeping the global state in focus. Files now generated per-game are much smaller since often they only need address the global state. * settings: restore global state when necessary Upon closing a game or the game properties dialog, we need to restore all global settings to the original global state so that we can properly open the configuration dialog or boot a different game. * configuration: guard setting values incorrectly This disables setting values while a game is running if the setting is overwritten by a per game setting. * config: don't write local settings in the global config Simple guards to prevent writing the wrong settings in the wrong files. * configuration: add comments, assume less, and clang format No longer assumes that a disabled UI element means the global state is turned off, instead opting to directly answer that question. Still however assumes a game is running if it is in that state. * configuration: fix a logic error Should not be negated * restore settings' global state regardless of accept/cancel Fixes loading a properties dialog and causing the global config dialog to show local settings. * fix more logic errors Fixed the frame limit would set the global setting from the game properties dialog. Also strengthened the Settings::Setting member variables and simplified the logic in config reading (ReadSettingGlobal). * fix another logic error In my efforts to guard RestoreGlobalState, I accidentally negated the IsPowered condition. * configure_audio: set toggle_stretched_audio to tristate * fixed custom rtc and rng seed overwriting the global value * clang format * rebased * clang format take 4 * address my own review Basically revert unintended changes * settings: literal instead of casting "No need to cast, use 1U instead" Thanks, Morph! Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com> * Revert "settings: literal instead of casting " This reverts commit 95e992a87c898f3e882ffdb415bb0ef9f80f613f. * main: fix status buttons reporting wrong settings after stop emulation * settings: Log UseDockedMode in the Controls group This should have happened when use_docked_mode was moved over to the controls group internally. This just reflects this in the log. * main: load settings if the file has a title id In other words, don't exit if the loader has trouble getting a title id. * use a zero * settings: initalize resolution factor with constructor instead of casting * Revert "settings: initalize resolution factor with constructor instead of casting" This reverts commit 54c35ecb46a29953842614620f9b7de1aa9d5dc8. * configure_graphics: guard device selector when Vulkan is global Prevents the user from editing the device selector if Vulkan is the global renderer backend. Also resets the vulkan_device variable when the users switches back-and-forth between global and Vulkan. * address reviewer concerns Changes function variables to const wherever they don't need to be changed. Sets Settings::Setting to final as it should not be inherited from. Sets ConfigurationShared::use_global_text to static. Co-Authored-By: VolcaEM <volcaem@users.noreply.github.com> * main: load per-game settings after LoadROM This prevents `Restart Emulation` from restoring the global settings *after* the per-game settings were applied. Thanks to BSoDGamingYT for finding this bug. * Revert "main: load per-game settings after LoadROM" This reverts commit 9d0d48c52d2dcf3bfb1806cc8fa7d5a271a8a804. * main: only restore global settings when necessary Loading the per-game settings cannot happen after the ROM is loaded, so we have to specify when to restore the global state. Again thanks to BSoD for finding the bug. * configuration_shared: address reviewer concerns except operator overrides Dropping operator override usage in next commit. Co-Authored-By: LC <lioncash@users.noreply.github.com> * settings: Drop operator overrides from Setting template Requires using GetValue and SetValue explicitly. Also reverts a change that broke title ID formatting in the game properties dialog. * complete rebase * configuration_shared: translate "Use global configuration" Uses ConfigurePerGame to do so, since its usage, at least as of now, corresponds with ConfigurationShared. * configure_per_game: address reviewer concern As far as I understand, it prevents the program from unnecessarily copying strings. Co-Authored-By: LC <lioncash@users.noreply.github.com> Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com> Co-authored-by: VolcaEM <volcaem@users.noreply.github.com> Co-authored-by: LC <lioncash@users.noreply.github.com> | |||||
2020-07-10 | vk_stream_buffer: set allocable_size to 9 MiB | lat9nq | 1 | -1/+1 | |
This solves the crash on Linux systems running the current Linux Long Lived branch nVidia driver. | |||||
2020-07-09 | cmake: fix fmt linking when found | John Galt | 1 | -1/+5 | |
This is a new attempt at #4206 that shouldn't break windows builds. If someone else could test on windows, it would be much appreciated. Previously, the build bot passed but the actual builds failed. | |||||
2020-07-09 | cmake: pass libusb include directory as well | Jan Beich | 1 | -0/+1 | |
In file included from src/input_common/gcadapter/gc_adapter.cpp:8: src/./input_common/gcadapter/gc_adapter.h:11:10: fatal error: 'libusb.h' file not found #include <libusb.h> ^~~~~~~~~~ | |||||
2020-07-08 | Address comments for better clarity/signed dev count | Ameer | 1 | -11/+15 | |
2020-07-08 | Add more libusb error checks | Ameer | 1 | -3/+18 | |
2020-07-08 | AM: fix GetDesiredLanguage: | CrazyMax | 1 | -1/+13 | |
try to get a control metadata from application update when is failed to get from the basic version. Tested on Kirby Star Allies | |||||
2020-07-08 | maxwell_dma: Rename registers to match official docs and reorder | ReinUsesLisp | 2 | -287/+355 | |
Rename registers in the MaxwellDMA class to match Nvidia's official documentation. This one can be found here: https://github.com/NVIDIA/open-gpu-doc/blob/master/classes/dma-copy/clb0b5.h While we are at it, reorganize the code in MaxwellDMA to be separated in different functions. | |||||
2020-07-07 | cpu_interrupt_handler: Remove #pragma once from .cpp file | MerryMage | 1 | -2/+0 | |
2020-07-07 | Address PR feedback, fix axis button thresholding | Ameer | 3 | -58/+22 | |
2020-07-07 | input_common/gcadapter: add missing C++11 header required by libc++ | Jan Beich | 1 | -0/+1 | |
In file included from src/input_common/gcadapter/gc_adapter.cpp:8: src/./input_common/gcadapter/gc_adapter.h:77:10: error: no template named 'unordered_map' in namespace 'std' std::unordered_map<int, bool> buttons; ~~~~~^ src/./input_common/gcadapter/gc_adapter.h:78:10: error: no template named 'unordered_map' in namespace 'std' std::unordered_map<int, u16> axes; ~~~~~^ | |||||
2020-07-07 | Brace the code! Fix compile error due to class member construction order | Ameer | 2 | -15/+31 | |
2020-07-07 | Recalibrate reconnected controllers | Ameer | 1 | -0/+5 | |
2020-07-07 | Save origin state of GC controller analog features, compare against origin for input detection | Ameer | 3 | -28/+72 | |
2020-07-07 | change shortcut context for other hotkeys with file open dialog | Ameer | 1 | -4/+4 | |
2020-07-07 | GetDisplayVersion should return a null-terminated version string. | CrazyMax | 1 | -4/+16 | |
also, in case of failed to get of the basic version, we will try get it from application update. | |||||
2020-07-06 | Fix ss crash on game menu, fix ss on windowed mode | Ameer | 2 | -4/+6 | |
2020-07-06 | configure_graphics: Make use of qOverload in signals/slots | Lioncash | 1 | -2/+2 | |
While we're in the same area, we can make use of qOverload to tidy up some function pointer casts. | |||||
2020-07-06 | configure_graphics: Prevent unnecessary string copies in UpdateDeviceComboBox() | Lioncash | 1 | -1/+1 | |
Unlikely to impact performance at all, but this is essentially a "free" transformation, so why not? | |||||
2020-07-05 | memory: Set page-table pointers before setting attribute = Memory | MerryMage | 1 | -2/+5 | |
2020-07-05 | AM/ISelfController: Stub CreateManagedDisplaySeparableLayer | Morph | 2 | -1/+20 | |
Stub this by sending 1 layer id instead of 2 as yuzu does not support multiple layers per display. No adverse side effects have been observed. - Used by Animal Crossing: New Horizons Update 1.3.0 | |||||
2020-07-04 | Fix for always firing triggers on some controllers, trigger threshold more universal | Ameer | 2 | -5/+5 | |
2020-07-03 | Address lioncash feedback: Log formatting, extern const PadButtonArray, little touch ups | Ameer | 3 | -24/+32 | |
2020-07-03 | Revert "cmake: fix fmt linking" | bunnei | 1 | -1/+1 | |
2020-07-02 | Fix unnecessary diffs | Ameer | 4 | -29/+27 | |
2020-07-02 | Add LR triggers as axes, half press to initiate a press, add GC axis id in config, clarify some code blocks for better readability | Ameer | 3 | -35/+80 | |
2020-07-02 | Rename two functions in NS | VolcaEM | 1 | -2/+2 | |
- Rename "GetShellEvent" to "GetShellEventHandle" - Rename "LaunchApplicationFromHost" to "LaunchApplication" | |||||
2020-07-02 | Rename GetApplicationArea2 to GetApplicationAreaSize | VolcaEM | 1 | -2/+2 | |
2020-07-02 | cmake: stop linking against QGL after c6a0ab979239 | Jan Beich | 1 | -1/+1 | |
2020-07-01 | shader_cache: Fix use-after-free and orphan invalidation cache entries | ReinUsesLisp | 1 | -29/+41 | |
This fixes some cases where entries could have been removed multiple times reading freed memory. To address this issue this commit removes duplicates from entries marked for removal and sorts out the removal process to fix another use-after-free situation. Another issue fixed in this commit is orphan invalidation cache entries. Previously only the entries that were invalidated in the current operations had its entries removed. This led to more use-after-free situations when these entries were actually invalidated but referenced an object that didn't exist. | |||||
2020-07-01 | Reset adapter state on init, fixes errors relating driver hang from unexpected unplug | Ameer | 2 | -0/+9 | |
2020-07-01 | Don't handle cycles late if stretcher is active | David Marcec | 1 | -1/+3 | |
Timestretcher seems to be broken | |||||
2020-07-01 | audio: Improving audio timing for multicore/single core | David Marcec | 2 | -20/+7 | |
Fixes the issue with needing the timestretcher for multicore. | |||||
2020-07-01 | externals: Track opus as submodule instead of using conan | David Marcec | 1 | -1/+1 | |
Supersedes #4068 see for details. | |||||
2020-07-01 | key_manager: Correct casing of instance() | Lioncash | 10 | -10/+10 | |
Our codebase uppercases member function names. | |||||
2020-07-01 | key_manager: Delete move operations | Lioncash | 1 | -0/+3 | |
Prevents the singleton from being moved from. | |||||
2020-07-01 | key_manager: Make use of canonical deleted operator= | Lioncash | 1 | -2/+2 | |
operator= typically returns a reference, it's not void. While we're at it, we can correct the parameter formatting to adhere to the codebase. | |||||
2020-07-01 | common: switch to nullptr for sysctl's empty new value | Jan Beich | 1 | -4/+4 | |
2020-06-30 | Address feedback regarding increments, const vars, and general cleanup | Ameer | 2 | -24/+21 | |
2020-06-30 | fix implicit conversion of size_t type to int | Ameer | 1 | -1/+1 | |
2020-06-30 | maxwell_to_gl: Implement MirrorOnceClampOGL using GL_MIRROR_CLAMP_EXT | Morph | 1 | -0/+6 | |
Like MirrorOnceBorder, this requires the GL_EXT_texture_mirror_clamp extension. This extension is unfortunately not available on Intel's drivers (both Windows proprietary and Linux Mesa). Use GL_MIRROR_CLAMP_TO_EDGE as a fallback if the extension is unavailable. | |||||
2020-06-30 | macro: Add support for "middle methods" on the code cache (#4112) | David | 1 | -8/+27 | |
Macro code is just uploaded sequentially from a starting address, however that does not mean the entry point for the macro is at that address. This PR adds preliminary support for executing macros in the middle of our cached code. | |||||
2020-06-30 | common: add sysconf() fallback | Jan Beich | 1 | -3/+16 | |
src/common/memory_detect.cpp:15:10: fatal error: 'sys/sysinfo.h' file not found #include <sys/sysinfo.h> ^~~~~~~~~~~~~~~ | |||||
2020-06-29 | maxwell_to_gl: Rename VertexType() to VertexFormat() | Morph | 2 | -4/+5 | |
2020-06-29 | cmake: fix fmt linking | John Galt | 1 | -1/+1 | |
On gcc/ld, and clang/lld, fmt::v6 symbols are excluded, so linking fails. This fixes the issue. Note: This was included in the FindBoost changes I shared with BlinkHawk, however only they were merged. I'm not sure if it was missed, or if there was an issue with this part of the change. | |||||
2020-06-29 | Remove duplicate functions | VolcaEM | 1 | -2/+0 | |
2020-06-29 | Use decimal instead of hexadecimal | VolcaEM | 1 | -3/+5 | |
Co-authored-by: David <25727384+ogniK5377@users.noreply.github.com> | |||||
2020-06-29 | Fix typo | VolcaEM | 1 | -1/+1 | |
2020-06-29 | Clang-format | VolcaEM | 1 | -1/+1 | |
2020-06-29 | service: Update function tables | VolcaEM | 27 | -157/+285 | |
2020-06-29 | core_timing,scheduler: Use std::scoped_lock when possible | ReinUsesLisp | 2 | -15/+12 | |
Simplifies the cognitive load of procedures using locks and makes locks safe against exceptions. | |||||
2020-06-28 | ldr: Cleanup NRO & NRR structs | David Marcec | 1 | -8/+8 | |
2020-06-28 | maxwell_to_vk: Reorder vertex formats and add A2B10G10R10 for all types except float | Morph | 1 | -75/+69 | |
2020-06-28 | am: Stub GetIndirectLayerConsumerHandle | David Marcec | 1 | -1/+13 | |
Needed by Monster Hunter Generations Ultimate | |||||
2020-06-28 | maxwell_to_gl: Add 32 bit component sizes to (un)signed scaled formats | Morph | 1 | -30/+4 | |
Add 32 bit component sizes to (un)signed scaled formats and group (un)signed normalized, scaled, and integer formats together. | |||||
2020-06-28 | acc: ListOpenContextStoredUsers partial stub | David Marcec | 5 | -4/+14 | |
Needed by Baldur's Gate 1/2 | |||||
2020-06-28 | Core/Common: Address Feedback. | Fernando Sahmkow | 21 | -58/+58 | |
2020-06-27 | NvFlinger: Clang Format. | Fernando Sahmkow | 1 | -1/+1 | |
2020-06-27 | Build System: Fix GCC & MINGW Build. | Fernando Sahmkow | 1 | -0/+4 | |
2020-06-27 | SVC: Implement 32-bits wrappers and update Dynarmic. | Fernando Sahmkow | 4 | -34/+282 | |
2020-06-27 | SVC: Add GetCurrentProcessorNumber32, CreateTransferMemory32, SetMemoryAttribute32 | Fernando Sahmkow | 2 | -6/+39 | |
2020-06-27 | ARM: Update Dynarmic and Setup A32 according to latest interface. | Fernando Sahmkow | 8 | -93/+174 | |
2020-06-27 | SVC: Add GetThreadPriority32 & SetThreadPriority32 | Fernando Sahmkow | 2 | -2/+30 | |
2020-06-27 | ArmDynarmic32: Setup CNTPCT correctly | Fernando Sahmkow | 1 | -1/+1 | |
2020-06-27 | Audio: Correct buffer release for host timing. | Fernando Sahmkow | 3 | -1/+22 | |
2020-06-27 | Common/Kernel: Corrections and small bug fixing. | Fernando Sahmkow | 2 | -8/+3 | |
2020-06-27 | Services/NvFlinger: Do vSync in a sepparate thread on Multicore. | Fernando Sahmkow | 4 | -5/+69 | |
2020-06-27 | Common/NativeClockx86: Reduce native clock accuracy further. | Fernando Sahmkow | 1 | -1/+1 | |
2020-06-27 | Tests/CoreTiming: Correct host timing tests. | Fernando Sahmkow | 2 | -157/+14 | |
2020-06-27 | ARMDynarmicInterface: Correct GCC Build Errors. | Fernando Sahmkow | 2 | -6/+6 | |
2020-06-27 | Common/AtomicOps: Correct GCC Intrinsic argument ordering. | Fernando Sahmkow | 1 | -5/+5 | |
2020-06-27 | Kernel: Correct Host Context on Threads and Scheduler. | Fernando Sahmkow | 4 | -11/+11 | |
2020-06-27 | YuzuQT: Hide Speed UI on Multicore. | Fernando Sahmkow | 1 | -1/+1 | |
2020-06-27 | Clang Format. | Fernando Sahmkow | 14 | -48/+49 | |
2020-06-27 | ARMInterface/Externals: Update dynarmic and fit to latest version. | Fernando Sahmkow | 1 | -7/+7 | |
2020-06-27 | ARMInterface: Correct rebase errors. | Fernando Sahmkow | 3 | -5/+5 | |
2020-06-27 | CoreTiming: Correct rebase bugs and other miscellaneous things. | Fernando Sahmkow | 2 | -4/+8 | |
2020-06-27 | Core: Split Microprofile Dynarmic timing per Core | Fernando Sahmkow | 1 | -3/+12 | |
2020-06-27 | General: Tune the priority of main emulation threads so they have higher priority than less important helper threads. | Fernando Sahmkow | 6 | -0/+60 | |
2020-06-27 | Dynarmic Interface: don't clear cache if JIT has not been created. | Fernando Sahmkow | 2 | -0/+6 | |
2020-06-27 | General: Correct rebase, sync gpu and context management. | Fernando Sahmkow | 9 | -32/+45 | |
2020-06-27 | CoreTiming/CycleTimer: Correct Idling. | Fernando Sahmkow | 1 | -2/+5 | |
2020-06-27 | SingleCore: Correct ticks reset to be on preemption. | Fernando Sahmkow | 1 | -1/+1 | |
2020-06-27 | General: Cleanup legacy code. | Fernando Sahmkow | 19 | -740/+8 | |
2020-06-27 | Kernel/svcBreak: Implement CacheInvalidation for Singlecore and correct svcBreak. | Fernando Sahmkow | 2 | -3/+13 | |
2020-06-27 | Bootmanager/CPU_Manager: Correct shader caches and sync GPU on OpenGL. | Fernando Sahmkow | 2 | -6/+13 | |
2020-06-27 | HLE_IPC: Correct HLE Event behavior on timeout. | Fernando Sahmkow | 3 | -1/+19 | |
2020-06-27 | SingleCore: Improve Cycle timing Behavior and replace mutex in global scheduler for spinlock. | Fernando Sahmkow | 3 | -2/+4 | |
2020-06-27 | FrameLimiting: Enable frame limiting for single core. | Fernando Sahmkow | 2 | -1/+2 | |
2020-06-27 | SingleCore: Use Cycle Timing instead of Host Timing. | Fernando Sahmkow | 15 | -80/+152 | |
2020-06-27 | Scheduler: Correct Reload/Unload | Fernando Sahmkow | 2 | -3/+5 | |
2020-06-27 | Thread: Release the ARM Interface on exitting. | Fernando Sahmkow | 3 | -1/+8 | |
2020-06-27 | General: Move ARM_Interface into Threads. | Fernando Sahmkow | 18 | -170/+136 | |
2020-06-27 | Core: Refactor ARM Interface. | Fernando Sahmkow | 10 | -42/+69 | |
2020-06-27 | X64 Clock: Reduce accuracy to be less or equal to guest accuracy. | Fernando Sahmkow | 3 | -1/+10 | |
2020-06-27 | ARM/WaitTree: Better track the CallStack for each thread. | Fernando Sahmkow | 3 | -11/+74 | |
2020-06-27 | SVC/ARM: Correct svcSendSyncRequest and cache ticks on arm interface. | Fernando Sahmkow | 3 | -5/+20 | |
2020-06-27 | SingleCore: Move Host Timing from a sepparate thread to main cpu thread. | Fernando Sahmkow | 7 | -10/+48 | |
2020-06-27 | GUI: Make multicore only work with Async and add GUI for multicore. | Fernando Sahmkow | 6 | -5/+63 | |
2020-06-27 | ARM: Addapt to new Exclusive Monitor Interface. | Fernando Sahmkow | 5 | -31/+24 | |
2020-06-27 | CPU_Manager: Correct stopping on SingleCore. | Fernando Sahmkow | 1 | -3/+8 | |
2020-06-27 | Scheduler: Correct yielding interaction with SetThreadActivity. | Fernando Sahmkow | 1 | -0/+15 | |
2020-06-27 | General: Fix microprofile on dynarmic/svc, fix wait tree showing which threads were running. | Fernando Sahmkow | 11 | -13/+87 | |
2020-06-27 | General: Fix Stop function | Fernando Sahmkow | 4 | -5/+25 | |
2020-06-27 | Kernel: Rewind on SVC change. | Fernando Sahmkow | 3 | -5/+16 | |
2020-06-27 | Kernel: Preempt Single core on redudant yields. | Fernando Sahmkow | 6 | -21/+42 | |
2020-06-27 | CPU_Manager: Unload/Reload threads on preemption on SingleCore | Fernando Sahmkow | 4 | -7/+64 | |
2020-06-27 | Synchronization: Correct wide Assertion. | Fernando Sahmkow | 1 | -2/+4 | |
2020-06-27 | General: Initial Setup for Single Core. | Fernando Sahmkow | 8 | -34/+228 | |
2020-06-27 | Scheduler: Set last running time on thread. | Fernando Sahmkow | 2 | -4/+2 | |
2020-06-27 | Kernel: Corrections to TimeManager, Scheduler and Mutex. | Fernando Sahmkow | 3 | -5/+5 | |
2020-06-27 | Kernel: Fixes, corrections and asserts to scheduler and different svcs. | Fernando Sahmkow | 8 | -38/+38 | |
2020-06-27 | Scheduler: Correct yields. | Fernando Sahmkow | 2 | -7/+25 | |
2020-06-27 | Mutex: Revert workaround due to poor exclusive memory. | Fernando Sahmkow | 1 | -9/+2 | |
2020-06-27 | ARM/Memory: Correct Exclusive Monitor and Implement Exclusive Memory Writes. | Fernando Sahmkow | 12 | -24/+325 | |
2020-06-27 | SVC: WaitSynchronization add Termination Pending Result. | Fernando Sahmkow | 2 | -1/+5 | |
2020-06-27 | Scheduler: Remove arm_interface lock and a few corrections. | Fernando Sahmkow | 2 | -17/+3 | |
2020-06-27 | Yuzu/Debuggers: Correct Wait Tree for Paused threads. | Fernando Sahmkow | 1 | -2/+10 | |
2020-06-27 | SVC: Correct SetThreadActivity. | Fernando Sahmkow | 4 | -38/+59 | |
2020-06-27 | SCC: Small corrections to CancelSynchronization | Fernando Sahmkow | 3 | -2/+14 | |
2020-06-27 | Scheduler: Correct locking for hle threads. | Fernando Sahmkow | 1 | -1/+2 | |
2020-06-27 | Scheduler: Fix HLE Threads on guard | Fernando Sahmkow | 1 | -4/+6 | |
2020-06-27 | Scheduler: Protect on closed threads. | Fernando Sahmkow | 1 | -7/+17 | |
2020-06-27 | Scheduler: Correct assert. | Fernando Sahmkow | 1 | -4/+2 | |
2020-06-27 | Core: Correct rebase. | Fernando Sahmkow | 2 | -18/+11 | |
2020-06-27 | Scheduler: Release old thread fiber before trying to switch to the next thread fiber. | Fernando Sahmkow | 2 | -11/+35 | |
2020-06-27 | NVDRV: Remove frame limiting as Host Timing already takes care. | Fernando Sahmkow | 1 | -1/+0 | |
2020-06-27 | Mutex: Correct Result writting to clear exclusivity. | Fernando Sahmkow | 1 | -3/+11 | |
2020-06-27 | SVC: Correct svcWaitForAddress and svcSignalToAddress. | Fernando Sahmkow | 4 | -68/+161 | |
2020-06-27 | Scheduler: Correct Select Threads Step 2. | Fernando Sahmkow | 1 | -0/+1 | |
2020-06-27 | Kernel: Corrections to Scheduling. | Fernando Sahmkow | 5 | -19/+23 | |
2020-06-27 | Kernel: Correct Signal on Thread Death and Setup Sync Objects on Thread for Debugging | Fernando Sahmkow | 3 | -15/+17 | |
2020-06-27 | Core: Correct HLE Event Callbacks and other issues. | Fernando Sahmkow | 5 | -37/+39 | |
2020-06-27 | Process: Protect TLS region and Modules. | Fernando Sahmkow | 1 | -0/+4 | |
2020-06-27 | General: Add Asserts | Fernando Sahmkow | 4 | -0/+24 | |
2020-06-27 | General: Add better safety for JIT use. | Fernando Sahmkow | 5 | -7/+39 | |
2020-06-27 | SVC: Correct races on physical core switching. | Fernando Sahmkow | 2 | -10/+10 | |
2020-06-27 | NVFlinger: Lock race condition between CPU, Host Timing, VSync. | Fernando Sahmkow | 3 | -0/+11 | |
2020-06-27 | SVC: Add locks to the memory management. | Fernando Sahmkow | 1 | -0/+21 | |
2020-06-27 | SVC: Correct WaitSynchronization, WaitProcessWideKey, SignalProcessWideKey. | Fernando Sahmkow | 9 | -33/+84 | |
2020-06-27 | SVC: Cleanup old methods. | Fernando Sahmkow | 1 | -13/+9 | |
2020-06-27 | CPU_Manager: Reconfigre guest threads for dynamrmic downsides | Fernando Sahmkow | 3 | -1/+7 | |
2020-06-27 | SVC: Correct SendSyncRequest. | Fernando Sahmkow | 8 | -54/+116 | |
2020-06-27 | SVC: Correct ArbitrateUnlock | Fernando Sahmkow | 3 | -33/+37 | |
2020-06-27 | SVC: Correct SignalEvent, ClearEvent, ResetSignal, WaitSynchronization, CancelSynchronization, ArbitrateLock | Fernando Sahmkow | 8 | -90/+134 | |
2020-06-27 | SVC: Remove global HLE Lock. | Fernando Sahmkow | 1 | -3/+0 | |
2020-06-27 | SVC: Correct GetThreadPriority, SetThreadPriority, GetThreadCoreMask, SetThreadCoreMask, GetCurrentProcessorNumber | Fernando Sahmkow | 5 | -15/+26 | |
2020-06-27 | SVC: Correct CreateThread, StartThread, ExitThread, SleepThread. | Fernando Sahmkow | 3 | -37/+31 | |
2020-06-27 | HostTiming: Pause the hardware clock on pause. | Fernando Sahmkow | 7 | -1/+23 | |
2020-06-27 | AudioCore: Use nanoseconds instead of cycles for buffer time. | Fernando Sahmkow | 2 | -6/+6 | |
2020-06-27 | General: Setup yuzu threads' microprofile, naming and registry. | Fernando Sahmkow | 7 | -9/+25 | |
2020-06-27 | CPU_Manager: remove debugging code. | Fernando Sahmkow | 1 | -8/+4 | |
2020-06-27 | YuzuCMD/Tester: Correct execution | Fernando Sahmkow | 2 | -6/+8 | |
2020-06-27 | General: Recover Prometheus project from harddrive failure | Fernando Sahmkow | 57 | -816/+1341 | |
This commit: Implements CPU Interrupts, Replaces Cycle Timing for Host Timing, Reworks the Kernel's Scheduler, Introduce Idle State and Suspended State, Recreates the bootmanager, Initializes Multicore system. | |||||
2020-06-27 | nfc: Update function table | VolcaEM | 1 | -3/+3 | |
This was based on Switchbrew page: https://switchbrew.org/wiki/NFC_services | |||||
2020-06-27 | ncm: Update function table | VolcaEM | 1 | -10/+10 | |
This was based on Switchbrew page: https://switchbrew.org/wiki/NCM_services ILocationResolver's 16, 17, 18 and 19 have unofficial names | |||||
2020-06-27 | mm: Update function table | VolcaEM | 1 | -16/+16 | |
This was based on Switchbrew page: https://switchbrew.org/wiki/Display_services | |||||
2020-06-27 | mig: Update function table | VolcaEM | 1 | -0/+6 | |
This was based on Switchbrew page: https://switchbrew.org/wiki/Migration_services | |||||
2020-06-27 | ldn: Update function table | VolcaEM | 1 | -0/+1 | |
This was based on Switchbrew page: https://switchbrew.org/wiki/LDN_services | |||||
2020-06-27 | Oops (fix typo) | VolcaEM | 1 | -1/+1 | |
2020-06-27 | lbl: Update function table | VolcaEM | 1 | -0/+1 | |
This was based on Switchbrew page: https://switchbrew.org/wiki/Backlight_services | |||||
2020-06-27 | grc: Update function table | VolcaEM | 1 | -0/+3 | |
This was based on Switchbrew page: https://switchbrew.org/wiki/GRC_services | |||||
2020-06-27 | friend: Update function table | VolcaEM | 1 | -0/+6 | |
2020-06-27 | Fix issues caused when changing the fullscreen hotkey | Kewlan | 1 | -4/+5 | |
2020-06-27 | left const auto&, comment punctuation. | Ameer J | 1 | -2/+2 | |
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com> | |||||
2020-06-27 | Use better names for "Unknown"s | VolcaEM | 1 | -39/+39 | |
2020-06-27 | Update function names | VolcaEM | 1 | -4/+4 | |
2020-06-27 | btm: Give better names for unknown functions | David Marcec | 1 | -5/+5 | |
2020-06-27 | btdrv: Update function table (#4174) | VolcaEM | 1 | -83/+84 | |
* btdrv: Update function table | |||||
2020-06-27 | bpc: Update function tables (#4173) | VolcaEM | 1 | -7/+13 | |
* bpc: Update function tables This was based on Switchbrew page: https://switchbrew.org/wiki/PCV_services | |||||
2020-06-27 | bcat: Update function tables and add missing classes (#4172) | VolcaEM | 2 | -0/+5 | |
* bcat: Update function tables and add missing classes | |||||
2020-06-27 | am: Update function tables and add missing classes (#4169) | VolcaEM | 3 | -17/+19 | |
* am: Update function tables and add missing classes * Remove comments (1/5) * Remove comments (2/5) * Remove comments (3/5) * Remove comments (4/5) * Remove comments (5/5) * Remove unused classes (1/2) * Remove unused classes (2/2) | |||||
2020-06-27 | aoc: Update function table (#4170) | VolcaEM | 1 | -0/+1 | |
* aoc: Update function table * Remove comments | |||||
2020-06-27 | eupld: Update function table | VolcaEM | 1 | -0/+1 | |
This was based on Switchbrew page: https://switchbrew.org/wiki/Error_Upload_services | |||||
2020-06-27 | es: Update function table | VolcaEM | 1 | -2/+41 | |
This was based on Switchbrew page: https://switchbrew.org/wiki/ETicket_services | |||||
2020-06-27 | Update FAQ function name (2/2) | VolcaEM | 1 | -2/+2 | |
2020-06-27 | Update FAQ function name (1/2) | VolcaEM | 1 | -1/+1 | |
2020-06-27 | btm: Update function tables | VolcaEM | 1 | -71/+76 | |
This was based on Switchbrew page: https://switchbrew.org/wiki/BTM_services "No comment" edition | |||||
2020-06-27 | vk_rasterizer: Use nullptr for <pSizes> in CmdBindVertexBuffers2EXT | ReinUsesLisp | 1 | -6/+6 | |
Disable this temporarily. | |||||
2020-06-27 | vk_pipeline_cache: Avoid hashing and comparing dynamic state when possible | ReinUsesLisp | 6 | -23/+51 | |
With extended dynamic states, some bytes don't have to be collected from the pipeline key, hence we can avoid hashing and comparing them on lookups. | |||||
2020-06-27 | vulkan/fixed_pipeline_state: Move state out of individual structures | ReinUsesLisp | 4 | -121/+84 | |
2020-06-27 | vk_rasterizer: Use VK_EXT_extended_dynamic_state | ReinUsesLisp | 5 | -46/+356 | |
2020-06-27 | renderer_vulkan/wrapper: Add VK_EXT_extended_dynamic_state functions | ReinUsesLisp | 2 | -0/+64 | |
2020-06-27 | fixed_pipeline_state: Add requirements for VK_EXT_extended_dynamic_state | ReinUsesLisp | 7 | -155/+143 | |
This moves dynamic state present in VK_EXT_extended_dynamic_state to a separate structure in FixedPipelineState. This is structure is at the bottom allowing us to hash and memcmp only when the extension is not supported. | |||||
2020-06-27 | vk_device: Enable VK_EXT_extended_dynamic_state when available | ReinUsesLisp | 2 | -0/+32 | |
2020-06-27 | texture_cache: Test format compatibility before copying | ReinUsesLisp | 2 | -6/+21 | |
Avoid illegal copies. This intercepts the last step of a copy to avoid generating validation errors or corrupting the driver on some instances. We can create views and emit copies accordingly in future commits and remove this last-step validation. | |||||
2020-06-27 | video_core/compatible_formats: Table to test if two formats are legal to view or copy | ReinUsesLisp | 3 | -0/+196 | |
Add a flat table to test if it's legal to create a texture view between two formats or copy betweem them. This table is based on ARB_copy_image and ARB_texture_view. Copies are more permissive than views. | |||||
2020-06-26 | gl_buffer_cache: Copy to buffers created as STREAM_READ before downloading | ReinUsesLisp | 5 | -18/+24 | |
After marking buffers as resident, Nvidia's driver seems to take a slow path. To workaround this issue, copy to a STREAM_READ buffer and then call GetNamedBufferSubData on it. This is a temporary solution until we have asynchronous flushing. | |||||
2020-06-26 | Update function name again | VolcaEM | 1 | -1/+1 | |
2020-06-26 | Update function name (2/2) | VolcaEM | 1 | -1/+1 | |
2020-06-26 | Update function name (1/2) | VolcaEM | 1 | -1/+1 | |
2020-06-26 | Common: Fix non-conan build | Fernando Sahmkow | 1 | -1/+2 | |
2020-06-26 | caps_u: Fix GetAlbumContentsFileListForApplication stub | Morph | 1 | -9/+15 | |
2020-06-26 | caps: Use enum classes and check struct sizes on compile time | Morph | 1 | -34/+40 | |
2020-06-26 | caps: Update copyright headers | Morph | 14 | -14/+14 | |
Updated to "yuzu Emulator Project" | |||||
2020-06-26 | Add a "Mute Audio" hotkey | Kewlan | 6 | -3/+17 | |
2020-06-26 | const& to button in button array | Ameer J | 1 | -2/+2 | |
Co-authored-by: VolcaEM <63682805+VolcaEM@users.noreply.github.com> | |||||
2020-06-26 | Stop reading loop if error is encountered | Ameer | 1 | -4/+4 | |
2020-06-25 | Clang-format again | VolcaEM | 1 | -1/+1 | |
2020-06-25 | Clang-format | VolcaEM | 1 | -1/+2 | |
2020-06-25 | Remove unnecessary newline | VolcaEM | 1 | -1/+0 | |
2020-06-25 | Fix typo 2: electric boogaloo | VolcaEM | 1 | -1/+1 | |
2020-06-25 | Use QUrl (2/2) | VolcaEM | 1 | -6/+5 | |
2020-06-25 | Use QUrl (1/2) | VolcaEM | 1 | -1/+1 | |
2020-06-25 | Fix formatting | VolcaEM | 1 | -2/+2 | |
2020-06-25 | Fix typo | VolcaEM | 1 | -1/+1 | |
2020-06-25 | Add "Open Quickstart Guide" and "FAQ" buttons to the Help menu | VolcaEM | 3 | -0/+48 | |
While we're at it, also refactor the function used by OnOpenModsPage to be compatible with other URLs | |||||
2020-06-25 | gl_device: Fix IsASTCSupported | David Marcec | 1 | -1/+1 | |
Other targets were never actually checked | |||||
2020-06-25 | memory_manager: Remove useless assertion | David Marcec | 1 | -1/+0 | |
num_pages is an std::size_t. It will always be >= 0 | |||||
2020-06-25 | gl_device: Enable NV_vertex_buffer_unified_memory on Turing devices | ReinUsesLisp | 1 | -19/+1 | |
Once we make sure not to corrupt Nvidia's driver, we can safely use resident buffers on Turing devices. See GitHub pull request #4156 | |||||
2020-06-24 | hid: Stub a series of "SevenSixAxisSensor" service commands | Morph | 2 | -21/+85 | |
- Used by Captain Toad: Treasure Tracker Update 1.3.0 While we're at it, fix the input parameters for SetIsPalmaAllConnectable and SetPalmaBoostMode | |||||
2020-06-24 | padbutton enum class and struct initiailization | Ameer | 3 | -36/+32 | |
2020-06-24 | Prevent nullptr dereference on swkbd error case | David Marcec | 1 | -1/+1 | |
2020-06-24 | prepo: : Don't read extra buffer from report unless passed | David Marcec | 1 | -1/+6 | |
Prepo doesn't always pass a secondary buffer, we assume it always does which leads to a bad read. | |||||
2020-06-24 | Mark invalid IPC buffers as ASSERT_OR_EXECUTE_MSG | David Marcec | 1 | -25/+22 | |
Previously if applications would send faulty buffers(example homebrew) it would lead to us returning uninitalized data. Switching from ASSERT_MSG to ASSERT_OR_EXECUTE_MSG allows us to have a fail safe to prevent crashes but also continue execution without introducing undefined behavior | |||||
2020-06-24 | buffer_cache: Use buffer methods instead of cache virtual methods | ReinUsesLisp | 5 | -99/+90 | |
2020-06-24 | gl_stream_buffer: Use InvalidateBufferData instead unmap and map | ReinUsesLisp | 2 | -15/+5 | |
Making the stream buffer resident increases GPU usage significantly on some games. This seems to be addressed invalidating the stream buffer with InvalidateBufferData instead of using a Unmap + Map (with invalidation flags). | |||||
2020-06-24 | gl_rasterizer: Use NV_vertex_buffer_unified_memory for vertex buffer robustness | ReinUsesLisp | 3 | -9/+39 | |
Switch games are allowed to bind less data than what they use in a vertex buffer, the expected behavior here is that these values are read as zero. At the moment of writing this only D3D12, OpenGL and NVN through NV_vertex_buffer_unified_memory support vertex buffer with a size limit. In theory this could be emulated on Vulkan creating a new VkBuffer for each (handle, offset, length) tuple and binding the expected data to it. This is likely going to be slow and memory expensive when used on the vertex buffer and we have to do it on all draws because we can't know without analyzing indices when a game is going to read vertex data out of bounds. This is not a problem on OpenGL's BufferAddressRangeNV because it takes a length parameter, unlike Vulkan's CmdBindVertexBuffers that only takes buffers and offsets (the length is implicit in VkBuffer). It isn't a problem on D3D12 either, because D3D12_VERTEX_BUFFER_VIEW on IASetVertexBuffers takes SizeInBytes as a parameter (although I am not familiar with robustness on D3D12). Currently this only implements buffer ranges for vertex buffers, although indices can also be affected. A KHR_robustness profile is not created, but Nvidia's driver reads out of bound vertex data as zero anyway, this might have to be changed in the future. - Fixes SMO random triangles when capturing an enemy, getting hit, or looking at the environment on certain maps. | |||||
2020-06-24 | gl_buffer_cache: Mark buffers as resident | ReinUsesLisp | 10 | -67/+111 | |
Make stream buffer and cached buffers as resident and query their address. This allows us to use GPU addresses for several proprietary Nvidia extensions. | |||||
2020-06-24 | gl_device: Expose NV_vertex_buffer_unified_memory except on Turing | ReinUsesLisp | 2 | -1/+30 | |
Expose NV_vertex_buffer_unified_memory when the driver supports it. This commit adds a function the determine if a GL_RENDERER is a Turing GPU. This is required because on Turing GPUs Nvidia's driver crashes when the buffer is marked as resident or on DeleteBuffers. Without a synchronous debug output (single threaded driver), it's likely that the driver will crash in the first blocking call. | |||||
2020-06-24 | gl_stream_buffer: Always use a non-coherent buffer | ReinUsesLisp | 2 | -14/+10 | |
2020-06-24 | gl_stream_buffer: Always use persistent memory maps | ReinUsesLisp | 2 | -30/+14 | |
yuzu no longer supports platforms without persistent maps. | |||||
2020-06-24 | Move GetKeyCodeMapImpl to an anonymous namespace | David Marcec | 1 | -19/+19 | |
2020-06-24 | addressed issues | David Marcec | 2 | -4/+7 | |
2020-06-24 | clear mme draw mode | David Marcec | 1 | -0/+3 | |
We already draw, so we can clear it | |||||
2020-06-24 | Addressed issues | David Marcec | 5 | -13/+17 | |
2020-06-24 | Fix constbuffer for 0217920100488FF7 | David Marcec | 1 | -6/+6 | |
2020-06-24 | Macro HLE support | David Marcec | 9 | -10/+209 | |
2020-06-24 | Fixed logging output | David Marcec | 1 | -1/+1 | |
2020-06-24 | Implement GetKeyCodeMap & GetKeyCodeMap2 | David Marcec | 2 | -2/+72 | |
Closes #3919 | |||||
2020-06-24 | gl_shader_cache: Avoid use after move for program size | ReinUsesLisp | 2 | -6/+7 | |
All programs had a size of zero due to this bug, skipping invalidations. While we are at it, remove some unused forward declarations. | |||||
2020-06-23 | cleanup check access, read, and factory GetNextInput funcs. Use size rather than magic number | Ameer | 4 | -151/+101 | |
2020-06-23 | Fix deallocation of GC Adapter | Ameer | 3 | -4/+10 | |
2020-06-23 | yuzu_tester: Silence type conversion warning | Morph | 1 | -1/+1 | |
2020-06-23 | lm: Silence no return value warning | Morph | 1 | -1/+2 | |
2020-06-23 | Small quality of life indication that mapped button is GC | Ameer | 1 | -2/+2 | |
2020-06-23 | shader/half_set: Implement HSET2_IMM | ReinUsesLisp | 2 | -21/+75 | |
Add HSET2_IMM. Due to the complexity of the encoding avoid using BitField unions and read the relevant bits from the code itself. This is less error prone. | |||||
2020-06-23 | std::array and const reference passing of non-trivial objects | Ameer | 2 | -14/+13 | |
2020-06-22 | Update src/input_common/main.cpp | ameerj | 1 | -1/+1 | |
Co-authored-by: LC <mathew1800@gmail.com> update libusb submodule (hopefully windows build error fixed) | |||||
2020-06-22 | account: Update function tables and add missing classes (#4145) | VolcaEM | 5 | -42/+384 | |
* account: Update function tables and add missing classes * clang-format * Add missing "public" * Add missing public again * Add missing final | |||||
2020-06-22 | TextureCache: Fix case where layer goes off bound. | Fernando Sahmkow | 1 | -0/+3 | |
The returned layer is expected to be between 0 and the depth of the surface, anything larger is off bounds. | |||||
2020-06-22 | Reorder variables to comply with the Auzure build pipeline | unknown | 1 | -2/+2 | |
2020-06-22 | arm_dynarmic_64: Log the instruction when an exception is raised | Morph | 1 | -2/+2 | |
2020-06-22 | arm_dynarmic_32: Log under Core_ARM instead of HW_GPU | Morph | 1 | -1/+1 | |
2020-06-22 | renderer_vulkan: Update validation layer name and test before enabling | ReinUsesLisp | 3 | -5/+43 | |
Update validation layer string to VK_LAYER_KHRONOS_validation. While we are at it, properly check for available validation layers before enabling them. | |||||
2020-06-22 | Tidy up the pointers, use pair over tuple where appropriate | Ameer | 4 | -24/+22 | |
2020-06-22 | fix for sleep using stl | Ameer | 1 | -1/+3 | |
2020-06-22 | shared_ptr for the GC adapter class, constexpr constants | Ameer | 5 | -66/+52 | |
2020-06-22 | std::arrays where appropriate, clear q in adapter class, other touch ups | Ameer | 5 | -27/+15 | |
2020-06-22 | fix include thread | Ameer | 1 | -0/+1 | |
2020-06-22 | Singleton GC Adapter class, remove globals, fix naming convention | Ameer | 8 | -228/+283 | |
Fix clang formatting Manual fix for configure_input_player formatting Add missing lib usb cmake command | |||||
2020-06-21 | hid: Implement Get/ResetGyroscopeZeroDriftMode | Morph | 4 | -6/+56 | |
- Used by Captain Toad Treasure Tracker | |||||
2020-06-21 | Clang Formatting | Ameer | 9 | -182/+184 | |
2020-06-21 | Cleanup after linter | Ameer | 9 | -167/+98 | |
2020-06-21 | GC Adapter Implementation | Ameer | 18 | -161/+1159 | |
2020-06-21 | Correct function name (2/2) | VolcaEM | 1 | -2/+2 | |
2020-06-21 | Correct function name (1/2) | VolcaEM | 1 | -1/+1 | |
2020-06-21 | Clang-format | VolcaEM | 1 | -1/+1 | |
2020-06-21 | Remove unnecessary conversion | VolcaEM | 1 | -3/+2 | |
2020-06-21 | Address review comment by Lioncash | VolcaEM | 1 | -1/+1 | |
Co-authored-by: LC <mathew1800@gmail.com> | |||||
2020-06-21 | Add a "Open Mods Page" button to the GUI | VolcaEM | 3 | -0/+20 | |
2020-06-21 | gl_shader_decompiler: Enable GL_EXT_texture_shadow_lod if available | Morph | 1 | -7/+43 | |
Enable GL_EXT_texture_shadow_lod if available. If this extension is not available, such as on Intel/AMD proprietary drivers, use textureGrad as a workaround. | |||||
2020-06-21 | gl_device: Check for GL_EXT_texture_shadow_lod | Morph | 2 | -0/+7 | |
2020-06-21 | Fix: fatal error CVT1100 when compiling manifest file | FearlessTobi | 3 | -3/+3 | |
Occurs when doing a local compile in MSVC build. The compiler I'm using is as below: Microsoft Visual Studio Community 2019 Preview Version 16.6.0 Preview 5.0 Fixes this error: CVTRES : fatal error CVT1100: duplicate resource. type:MANIFEST, name:1, language:0x0409 LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt I have put 0 since previous name was 1. If have other names in mind, please let me know. Co-Authored-By: dragios <dragios@users.noreply.github.com> | |||||
2020-06-20 | macro_jit_x64: Use ecx for shift register | MerryMage | 1 | -2/+2 | |
shl/shr only accept cl as their second argument | |||||
2020-06-20 | texture_cache: Fix incorrect address used in a DeduceSurface() call | Lioncash | 1 | -1/+1 | |
Previously the source was being deduced twice in a row. | |||||
2020-06-20 | software_keyboard: Eliminate trivial redundant copies | Lioncash | 1 | -2/+2 | |
We can just make use of moves here to get rid of two redundant copies | |||||
2020-06-20 | main: Append AVX and FMA instructions to cpu string | Morph | 1 | -1/+14 | |
Append AVX and FMA instructions to cpu string if the host cpu supports them | |||||
2020-06-20 | common/telemetry: Add AVX512 to telemetry | Morph | 1 | -0/+1 | |
2020-06-20 | common/cpu_detect: Add AVX512 detection | Morph | 2 | -0/+6 | |
2020-06-20 | decode/image: Implement B10G11R11F | Morph | 1 | -9/+17 | |
- Used by Kirby Star Allies | |||||
2020-06-20 | gl_arb_decompiler: Avoid several string copies | Lioncash | 1 | -32/+31 | |
Variables that are marked as const cannot have the move constructor invoked when returning from a function (the move constructor requires a non-const variable so it can "steal" the resources from it. | |||||
2020-06-20 | vulkan/wrapper: Remove noexcept from GetSurfaceCapabilitiesKHR() | Lioncash | 2 | -3/+2 | |
Check() can throw an exception if the Vulkan result isn't successful. We remove the check so that std::terminate isn't outright called and allows for better debugging (should it ever actually fail). | |||||
2020-06-20 | macro_jit_x64: Correct readability of Compile_ExtractShiftLeftImmediate() | Lioncash | 1 | -3/+3 | |
Previously dst wasn't being used. | |||||
2020-06-20 | macro_jit_x64: Correct readability of Compile_ExtractShiftLeftRegister() | Lioncash | 1 | -3/+4 | |
Previously dst wasn't being used. | |||||
2020-06-20 | macro_jit_x64: Remove unused variable | Lioncash | 1 | -2/+1 | |
Removes a completely unused label and marks another variable as unused, given it seems like it has potential uses in the future. | |||||
2020-06-20 | memory_manager: Eliminate variable shadowing | Lioncash | 2 | -24/+28 | |
Renames some variables to prevent ones in inner scopes from shadowing outer-scoped variables. The Copy* functions have no shadowing, but we rename them anyways to remain consistent with the other functions. | |||||
2020-06-20 | Add translation of "Current Boxcat Events" | David Marcec | 1 | -3/+2 | |
2020-06-20 | macro_jit_x64: Eliminate variable shadowing in Compile_ProcessResult() | Lioncash | 1 | -2/+2 | |
We can reduce the capture scope so that it's not possible for both "reg" variables to clash with one another. While we're at it, we can prevent unnecessary copies while we're at it. | |||||
2020-06-20 | buffer_cache: Eliminate local variable shadowing | Lioncash | 1 | -2/+1 | |
We can just make use of the instance in the scope above this one. | |||||
2020-06-19 | input_common/motion_emu: Remove redundant move | MerryMage | 1 | -1/+1 | |
Named return value optimization automatically applies here. | |||||
2020-06-19 | input_common/keyboard: Remove redundant move | MerryMage | 1 | -1/+1 | |
Named return value optimization automatically applies here. | |||||
2020-06-19 | mii_model: Remove redundant std::move | MerryMage | 1 | -1/+1 | |
Named return value optimization automatically applies here. | |||||
2020-06-19 | Fix compilation when not building with boxcat | David Marcec | 2 | -2/+7 | |
Fixes compilation when trying to build without boxcat enabled | |||||
2020-06-19 | macro_jit_x64: Remove unused function Read | MerryMage | 1 | -8/+4 | |
2020-06-18 | vk_rasterizer: Don't preserve contents on full screen clears | ReinUsesLisp | 2 | -7/+58 | |
There's no need to load contents from the CPU when a clear resets all the contents of the underlying memory. This is already implemented on OpenGL and the texture cache. | |||||
2020-06-18 | vk_update_descriptor: Upload descriptor sets data directly | ReinUsesLisp | 3 | -42/+30 | |
Instead of copying to a temporary payload before sending the update task to the worker thread, insert elements to the payload directly. | |||||
2020-06-18 | Tests/HostTiming: Correct GCC Compile error. | Fernando Sahmkow | 1 | -15/+14 | |
2020-06-18 | Common/Fiber: Address Feedback and Correct Memory leaks. | Fernando Sahmkow | 2 | -34/+41 | |
2020-06-18 | Common/Fiber: Implement Rewind on Boost Context. | Fernando Sahmkow | 2 | -2/+39 | |
2020-06-18 | Common/uint128: Correct MSVC Compilation in old versions. | Fernando Sahmkow | 1 | -0/+4 | |
2020-06-18 | Common/Fiber: Document fiber interexchange. | Fernando Sahmkow | 1 | -1/+4 | |
2020-06-18 | Common/Fiber: Implement Rewinding. | Fernando Sahmkow | 3 | -2/+84 | |
2020-06-18 | Common/Fiber: Additional corrections to f_context. | Fernando Sahmkow | 1 | -4/+4 | |
2020-06-18 | Common/Fiber: Correct f_context based Fibers. | Fernando Sahmkow | 1 | -6/+8 | |
2020-06-18 | Host Timing: Correct clang format. | Fernando Sahmkow | 1 | -1/+0 | |
2020-06-18 | HostTiming: Correct rebase and implement AddTicks. | Fernando Sahmkow | 2 | -1/+19 | |
2020-06-18 | Core/HostTiming: Allow events to be advanced manually. | Fernando Sahmkow | 4 | -31/+47 | |
2020-06-18 | Common/Tests: Address Feedback | Fernando Sahmkow | 9 | -39/+51 | |
2020-06-18 | Common: Make MinGW build use Windows Fibers instead of fcontext_t | Fernando Sahmkow | 2 | -4/+4 | |
2020-06-18 | Common/Tests: Clang Format. | Fernando Sahmkow | 7 | -31/+41 | |
2020-06-18 | Common: Correct fcontext fibers. | Fernando Sahmkow | 1 | -5/+4 | |
2020-06-18 | Common: Refactor & Document Wall clock. | Fernando Sahmkow | 6 | -51/+50 | |
2020-06-18 | Common: Implement WallClock Interface and implement a native clock for x64 | Fernando Sahmkow | 10 | -40/+378 | |
2020-06-18 | Tests: Add base tests to host timing | Fernando Sahmkow | 5 | -43/+243 | |
2020-06-18 | Core: Implement a Host Timer. | Fernando Sahmkow | 5 | -0/+295 | |
2020-06-18 | Common: Polish Fiber class, add comments, asserts and more tests. | Fernando Sahmkow | 5 | -25/+147 | |
2020-06-18 | Tests: Add tests for fibers and refactor/fix Fiber class | Fernando Sahmkow | 4 | -19/+247 | |
2020-06-18 | Common: Implement a basic Fiber class. | Fernando Sahmkow | 3 | -0/+204 | |
2020-06-18 | Common: Implement a basic SpinLock class | Fernando Sahmkow | 3 | -0/+68 | |
2020-06-18 | arm_dynarmic_32: Fix implicit conversion error in SetTPIDR_EL0 | ReinUsesLisp | 1 | -1/+1 | |
On MSVC builds we treat conversion warnings as errors. | |||||
2020-06-18 | bootmanager: Remove references to OpenGL for macOS | MerryMage | 2 | -2/+19 | |
OpenGL macOS headers definitions clash heavily with each other | |||||
2020-06-18 | memory_manager: Explicitly specifcy std::min<size_t> | MerryMage | 1 | -2/+2 | |
2020-06-18 | shared_font: Service::NS::EncryptSharedFont takes a size_t& | MerryMage | 1 | -1/+1 | |
2020-06-18 | vk_rasterizer: BindTransformFeedbackBuffersEXT accepts a size of type VkDeviceSize | MerryMage | 1 | -1/+1 | |
2020-06-18 | renderer_vulkan: Fix macOS GetBundleDirectory reference | MerryMage | 1 | -1/+3 | |
2020-06-18 | memory_util: boost hashes are size_t | MerryMage | 1 | -2/+2 | |
* boost::hash_value returns a size_t * boost::hash_combine takes a size_t& argument | |||||
2020-06-18 | Rename PAGE_SHIFT to PAGE_BITS | MerryMage | 2 | -10/+10 | |
macOS header files #define PAGE_SHIFT | |||||
2020-06-18 | Move SHA256Hash to its original position | VolcaEM | 1 | -2/+2 | |
It's not needed to have it in its previous position anymore | |||||
2020-06-18 | vk_sampler_cache: Emulate GL_LINEAR/NEAREST minification filters | Morph | 1 | -2/+4 | |
Emulate GL_LINEAR/NEAREST minification filters using minLod = 0 and maxLod = 0.25 during sampler creation | |||||
2020-06-18 | maxwell_to_vk: Reorder filter cases and correct mipmap_filter=None | Morph | 1 | -17/+15 | |
maxwell_to_vk: Reorder filtering modes to start with None, then Nearest, then Linear. maxwell_to_vk: Logs filter modes under UNREACHABLE_MSG instead of UNIMPLEMENTED_MSG, since any unknown filter modes are invalid and not unimplemented. maxwell_to_vk: Return VK_SAMPLER_MIPMAP_MODE_NEAREST instead of VK_SAMPLER_MIPMAP_MODE_LINEAR when mipmap_filter is None with the description from the VkSamplerCreateInfo(3) man page. | |||||
2020-06-18 | maxwell_to_gl: Miscellaneous changes | Morph | 1 | -48/+34 | |
maxwell_to_gl: Log unimplemented features under UNIMPLEMENTED_MSG instead of LOG_ERROR to bring into parity with maxwell_to_vk maxwell_to_gl: Deduplicate logging in VertexType(), merging them into one. maxwell_to_gl: Return GL_NEAREST instead of GL_LINEAR if an unknown texture filter mode is encountered. maxwell_to_gl: Log the mipmap filter mode if an unknown value is passed in. maxwell_to_gl: Reorder filtering modes to start with None, then Nearest, then Linear. | |||||
2020-06-17 | macro_jit_x64: Inline Engines::Maxwell3D::GetRegisterValue | MerryMage | 2 | -6/+18 | |
2020-06-17 | arm_dynarmic_cp15: Implement CNTPCT | MerryMage | 1 | -0/+13 | |
2020-06-17 | arm_dynarmic_cp15: Update CP15 | MerryMage | 4 | -142/+73 | |
2020-06-17 | arm_dynarmic_32: InterpreterFallback should never happen | MerryMage | 1 | -2/+3 | |
2020-06-17 | macro_jit_x64: Optimization implicitly assumes same destination | MerryMage | 1 | -1/+2 | |
2020-06-17 | macro_jit_x64: Should not skip zero registers for certain ALU ops | MerryMage | 1 | -1/+3 | |
The code generated for these ALU ops assume src_a and src_b are always valid. | |||||
2020-06-17 | Fix framebuffer size on fractional scaling display. | Kaiwen Xu | 1 | -1/+1 | |
2020-06-16 | Remove unnecessary pragmas | VolcaEM | 1 | -8/+0 | |
2020-06-16 | Revert IsValidNRO refactor but make it more readable | VolcaEM | 1 | -26/+13 | |
2020-06-16 | Update assert string | VolcaEM | 1 | -1/+1 | |
2020-06-16 | gl_device: Reserve at least 4 image bindings for fragment stage | Morph | 1 | -6/+14 | |
Due to the limitation of GL_MAX_IMAGE_UNITS being low (8) on Intel's and Nvidia's proprietary drivers, we have to reserve an appropriate amount of image bindings for each of the stages. So far games have been observed to use 4 image bindings on the fragment stage (Kirby Star Allies) and 1 on the vertex stage (TWD series). No games thus far in my limited testing used more than 4 images concurrently and across all currently active programs. This fixes shader compilation errors on Kirby Star Allies on OpenGL (GLSL/GLASM) | |||||
2020-06-15 | macro_jit_x64: Remove NEXT_PARAMETER | MerryMage | 1 | -5/+2 | |
Not required, as PARAMETERS can just be incremented directly. | |||||
2020-06-15 | macro_jit_x64: Remove unused function Compile_WriteCarry | MerryMage | 2 | -9/+0 | |
2020-06-15 | macro_jit_x64: Select better registers | MerryMage | 1 | -8/+8 | |
All registers are now callee-save registers. RBX and RBP selected for STATE and RESULT because these are most commonly accessed; this is to avoid the REX prefix. RBP not used for STATE because there are some SIB restrictions, RBX emits smaller code. | |||||
2020-06-15 | macro_jit_x64: Remove REGISTERS | MerryMage | 1 | -7/+3 | |
Unnecessary since this is just an offset from STATE. | |||||
2020-06-15 | macro_jit_x64: Remove JITState::parameters | MerryMage | 2 | -6/+3 | |
This can be passed in as an argument instead. | |||||
2020-06-15 | macro_jit_x64: Remove METHOD_ADDRESS_64 | MerryMage | 1 | -2/+1 | |
Unnecessary variable. | |||||
2020-06-15 | macro_jit_x64: Remove RESULT_64 | MerryMage | 2 | -16/+3 | |
This Reg64 codepath has the exact same behaviour as the Reg32 one. | |||||
2020-06-15 | xbyak_abi: Prefer returning a struct to using out parameters in ABI_CalculateFrameSize | MerryMage | 1 | -17/+19 | |
2020-06-15 | xbyak_abi: Register indexes should be unsigned | MerryMage | 1 | -11/+12 | |
2020-06-15 | xbyak_abi: Remove *GPS variants of stack manipulation functions | MerryMage | 2 | -42/+6 | |
2020-06-15 | xbyak_abi: Fix ABI_PushRegistersAndAdjustStack | MerryMage | 1 | -6/+2 | |
Pushing GPRs twice. | |||||
2020-06-15 | video_core/macro_jit_x64: Remove initializer in member variable | ReinUsesLisp | 1 | -2/+2 | |
Fix build time issues on gcc. Confirmed through asan that avoiding this initialization is safe. | |||||
2020-06-14 | Clang-format again | VolcaEM | 1 | -2/+2 | |
2020-06-14 | Use consistent variable names | VolcaEM | 1 | -4/+4 | |
2020-06-14 | Clang-format | VolcaEM | 1 | -1/+2 | |
2020-06-14 | Make assert strings consistent | VolcaEM | 1 | -3/+3 | |
2020-06-14 | Attempt to fix crashes in SSBU and refactor IsValidNRO | VolcaEM | 1 | -36/+59 | |
2020-06-13 | audren: Implement RendererInfo | David Marcec | 2 | -6/+26 | |
Fixes ZLA softlock | |||||
2020-06-12 | gl_arb_decompiler: Implement FSwizzleAdd | ReinUsesLisp | 1 | -4/+27 | |
2020-06-12 | gl_arb_decompiler: Implement an assembly shader decompiler | ReinUsesLisp | 7 | -1/+2093 | |
Emit code compatible with NV_gpu_program5. This should emit code compatible with Fermi, but it wasn't tested on that architecture. Pascal has some issues not present on Turing GPUs. | |||||
2020-06-11 | yuzu/configuration: Show assembly shaders check box | ReinUsesLisp | 1 | -3/+0 | |
2020-06-10 | nvdrv: Fix GetTPCMasks for ioctl3 | David Marcec | 2 | -21/+22 | |
Fixes animal crossing svcBreak on launch | |||||
2020-06-10 | kernel: Account for system resource size for memory usage | David Marcec | 1 | -2/+4 | |
GetTotalPhysicalMemoryAvailableWithoutSystemResource & GetTotalPhysicalMemoryUsedWithoutSystemResource seem to subtract the resource size from the usage. | |||||
2020-06-09 | buffer_cache: Avoid passing references of shared pointers and misc style changes | ReinUsesLisp | 9 | -174/+150 | |
Instead of using as template argument a shared pointer, use the underlying type and manage shared pointers explicitly. This can make removing shared pointers from the cache more easy. While we are at it, make some misc style changes and general improvements (like insert_or_assign instead of operator[] + operator=). | |||||
2020-06-09 | gl_rasterizer: Mark vertex buffers as dirty after buffer cache invalidation | ReinUsesLisp | 1 | -1/+10 | |
Vertex buffers bindings become invalid after the stream buffer is invalidated. We were originally doing this, but it got lost at some point. - Fixes Animal Crossing: New Horizons, but it affects everything. | |||||
2020-06-09 | buffer_cache: Return stream buffer invalidation in Map instead of Unmap | ReinUsesLisp | 1 | -7/+9 | |
We have to invalidate whatever cache is being used before uploading the data, hence it makes more sense to return this on Map instead of Unmap. | |||||
2020-06-08 | Add game versio to title bar | unknown | 2 | -13/+17 | |
2020-06-08 | texture_cache: Port original code management for 2D vs 3D textures | ReinUsesLisp | 2 | -16/+35 | |
Handle blits to images as 2D, even when they have block depth. - Fixes rendering issues on Luigi's Mansion 3 | |||||
2020-06-08 | texture_cache: Simplify blit code | ReinUsesLisp | 1 | -9/+7 | |
2020-06-08 | texture_cache: Handle 3D texture blits with one layer | ReinUsesLisp | 3 | -5/+10 | |
2020-06-08 | texture_cache: Implement rendering to 3D textures | ReinUsesLisp | 10 | -139/+191 | |
This allows rendering to 3D textures with more than one slice. Applications are allowed to render to more than one slice of a texture using gl_Layer from a VTG shader. This also requires reworking how 3D texture collisions are handled, for now, this commit allows rendering to slices but not to miplevels. When a render target attempts to write to a mipmap, we fallback to the previous implementation (copying or flushing as needed). - Fixes color correction 3D textures on UE4 games (rainbow effects). - Allows Xenoblade games to render to 3D textures directly. | |||||
2020-06-07 | rasterizer_cache: Remove files and includes | ReinUsesLisp | 7 | -269/+3 | |
The rasterizer cache is no longer used. Each cache has its own generic implementation optimized for the cached data. | |||||
2020-06-07 | vk_pipeline_cache: Use generic shader cache | ReinUsesLisp | 5 | -58/+55 | |
Trivial port the generic shader cache to Vulkan. | |||||
2020-06-07 | gl_shader_cache: Use generic shader cache | ReinUsesLisp | 4 | -93/+80 | |
Trivially port the generic shader cache to OpenGL. | |||||
2020-06-07 | shader_cache: Implement a generic shader cache | ReinUsesLisp | 2 | -0/+229 | |
Implement a generic shader cache for fast lookups and invalidations. Invalidations are cheap but expensive when a shader is invalidated. Use two mutexes instead of one to avoid locking invalidations for lookups and vice versa. When a shader has to be removed, lookups are locked as expected. | |||||
2020-06-06 | yuzu/frontend: Remove internal resolution option | Morph | 9 | -113/+3 | |
2020-06-06 | gl_device: Black list NVIDIA 443.24 for fast buffer uploads | ReinUsesLisp | 1 | -2/+10 | |
Skip fast buffer uploads on Nvidia 443.24 Vulkan beta driver on OpenGL. This driver throws the following error when calling BufferSubData or BufferData on buffers that are candidates for fast constant buffer uploads. This is the equivalens to push constants on Vulkan, except that they can access the full buffer. The error: Unknown internal debug message. The NVIDIA OpenGL driver has encountered an out of memory error. This application might behave inconsistently and fail. If this error persists on future drivers, we might have to look deeper into this issue. For now, we can black list it and log it as a temporary solution. | |||||
2020-06-06 | renderer_opengl: Only enable DEBUG_OUTPUT when graphics debugging is enabled | ReinUsesLisp | 1 | -4/+2 | |
Avoids logging when it's not relevant. This can potentially reduce driver's internal thread overhead. | |||||
2020-06-05 | shader/texture: Join separate image and sampler pairs offline | ReinUsesLisp | 16 | -88/+234 | |
Games using D3D idioms can join images and samplers when a shader executes, instead of baking them into a combined sampler image. This is also possible on Vulkan. One approach to this solution would be to use separate samplers on Vulkan and leave this unimplemented on OpenGL, but we can't do this because there's no consistent way of determining which constant buffer holds a sampler and which one an image. We could in theory find the first bit and if it's in the TIC area, it's an image; but this falls apart when an image or sampler handle use an index of zero. The used approach is to track for a LOP.OR operation (this is done at an IR level, not at an ISA level), track again the constant buffers used as source and store this pair. Then, outside of shader execution, join the sample and image pair with a bitwise or operation. This approach won't work on games that truly use separate samplers in a meaningful way. For example, pooling textures in a 2D array and determining at runtime what sampler to use. This invalidates OpenGL's disk shader cache :) - Used mostly by D3D ports to Switch | |||||
2020-06-05 | service: nvhost_vic: Ignore Submit commands. | bunnei | 2 | -1/+18 | |
2020-06-05 | nvdrv: Stub nvdec/vic ioctls to bypass nvdec movies | Zach Hilman | 4 | -3/+239 | |
2020-06-05 | shader/track: Move bindless tracking to a separate function | ReinUsesLisp | 2 | -25/+39 | |
2020-06-04 | Downgrade "handle not signaled" error to trace | David Marcec | 1 | -1/+1 | |
clogs logs quite a bit | |||||
2020-06-04 | Default init labels and use initializer list for macro engine | David Marcec | 2 | -2/+2 | |
2020-06-04 | gl_rasterizer: Use NV_transform_feedback for XFB on assembly shaders | ReinUsesLisp | 3 | -1/+96 | |
NV_transform_feedback, NV_transform_feedback2 and ARB_transform_feedback3 with NV_transform_feedback interactions allows implementing transform feedbacks as dynamic state. Maxwell implements transform feedbacks as dynamic state, so using these extensions with TransformFeedbackStreamAttribsNV allows us to properly emulate transform feedbacks without having to recompile shaders when the state changes. | |||||
2020-06-03 | Mark parameters as const | David Marcec | 8 | -11/+11 | |
2020-06-03 | Actually save the input when clearing/resetting to default | FearlessTobi | 1 | -0/+3 | |
Co-Authored-By: xperia64 <xperiancedapps@gmail.com> | |||||
2020-06-02 | Address review comments | VolcaEM | 1 | -4/+4 | |
2020-06-02 | Pass by reference instead of copying parameters | David Marcec | 4 | -7/+9 | |
2020-06-02 | vk_shader_decompiler: Implement atomic image operations | ReinUsesLisp | 1 | -40/+24 | |
Implement atomic operations on images. On GLSL these are atomicImage* functions (e.g. atomicImageAdd). | |||||
2020-06-02 | vk_rasterizer: Implement storage texels | ReinUsesLisp | 8 | -52/+120 | |
This is the equivalent of an image buffer on OpenGL. - Used by Octopath Traveler | |||||
2020-06-02 | maxwell_to_vk: Add R16UI image format | ReinUsesLisp | 2 | -71/+74 | |
- Used by Octopath Traveler | |||||
2020-06-01 | gl_shader_decompiler: Declare gl_Layer and gl_ViewportIndex within gl_PerVertex for vertex and tessellation shaders | Morph | 1 | -6/+16 | |
2020-06-01 | gl_shader_decompiler: Fix geometry shader outputs for Intel drivers | Morph | 1 | -13/+15 | |
On Intel's proprietary drivers, gl_Layer and gl_ViewportIndex are not allowed members of gl_PerVertex block, causing the shader to fail to compile. Fix this by declaring these variables outside of gl_PerVertex. | |||||
2020-06-01 | Clang-format | VolcaEM | 1 | -2/+1 | |
2020-06-01 | hid: Stub GetXpadIDs | VolcaEM | 2 | -1/+14 | |
Allows Minecraft: Nintendo Switch Edition (a.k.a. old Minecraft) to boot and go ingame | |||||
2020-06-01 | gl_device: Avoid devices with CAVEAT_SUPPORT on ASTC | ReinUsesLisp | 2 | -8/+19 | |
This avoids using Nvidia's ASTC decoder on OpenGL. The last time it was profiled, it was slower than yuzu's decoder. While we are at it, fix a bug in the texture cache when native ASTC is not supported. | |||||
2020-06-01 | glsl: Squash constant buffers into a single SSBO when we hit the limit | ReinUsesLisp | 7 | -79/+173 | |
Avoids compilation errors at the cost of shader build times and runtime performance when a game hits the limit of uniform buffers we can use. | |||||
2020-05-31 | Add comment to nrr_kind | VolcaEM | 1 | -1/+1 | |
According to Atmosphére (https://github.com/Atmosphere-NX/Atmosphere/blob/c7026b90940a1d88f9c10a6d98263bf22e654fa5/libraries/libstratosphere/include/stratosphere/ro/ro_types.hpp), nrr_kind (Atmosphére calls it "type") is 7.0.0+ | |||||
2020-05-31 | ldr: Update NRR/NRO structs | VolcaEM | 1 | -40/+72 | |
This was based on Switchbrew pages: https://switchbrew.org/wiki/NRR https://switchbrew.org/wiki/NRO | |||||
2020-05-31 | gl_device: Enable compute shaders for Intel proprietary drivers | Morph | 3 | -13/+0 | |
Previously we were disabling compute shaders on Intel's proprietary driver due to broken compute. This has been fixed in the latest Intel drivers. Re-enable compute for Intel proprietary drivers and remove the check for broken compute. | |||||
2020-05-30 | shader/other: Fix hardcoded value in S2R INVOCATION_INFO | ReinUsesLisp | 1 | -1/+1 | |
Geometry shaders built from Nvidia's compiler check for bits[16:23] to be less than or equal to 0 with VSETP to default to a "safe" value of 0x8000'0000 (safe from hardware's perspective). To avoid hitting this path in the shader, return 0x00ff'0000 from S2R INVOCATION_INFO. This seems to be the maximum number of vertices a geometry shader can emit in a primitive. | |||||
2020-05-30 | texture_cache: More relaxed reconstruction | ReinUsesLisp | 1 | -13/+9 | |
Only reupload textures when they've not been modified from the GPU. | |||||
2020-05-30 | Favor switch case over jump table | David Marcec | 2 | -18/+26 | |
Easier to read and will emit a jump table automatically. | |||||
2020-05-30 | Implement macro JIT | David Marcec | 15 | -189/+1034 | |
2020-05-30 | Add xbyak external | David Marcec | 4 | -2/+317 | |
2020-05-30 | texture_cache: Only copy textures that were modified from host | ReinUsesLisp | 1 | -2/+6 | |
2020-05-30 | texture_cache: Reload textures when number of resources mismatch | ReinUsesLisp | 1 | -0/+9 | |
2020-05-29 | vk_rasterizer: Skip transform feedbacks when extension is unavailable | ReinUsesLisp | 1 | -0/+7 | |
Avoids calling transform feedback procedures when VK_EXT_transform_feedback is not available. | |||||
2020-05-29 | texture_cache: Handle overlaps with multiple subresources | ReinUsesLisp | 1 | -27/+33 | |
Implement more surface reconstruct cases. Allow overlaps with more than one layer and mipmap and copies all of them to the new texture. - Fixes textures moving around objects on Xenoblade games | |||||
2020-05-29 | kernel: ResourceLimit::Reserve remove useless while loop | David Marcec | 1 | -5/+1 | |
Timeout is a u64, it will always be >= 0 | |||||
2020-05-28 | maxwell_3d: Reduce severity of logs that can be spammed | ReinUsesLisp | 1 | -6/+7 | |
These logs were killing performance on some games when they were spammed. Reduce them to Debug severity. | |||||
2020-05-28 | format_lookup_table: Implement G24S8 format as S8Z24 | ReinUsesLisp | 1 | -1/+2 | |
2020-05-28 | Make copying directory string more concise | lat9nq | 1 | -2/+1 | |
2020-05-28 | Address requested changes | lat9nq | 2 | -4/+4 | |
2020-05-28 | *nix systems can read any-case patch directories | lat9nq | 2 | -8/+32 | |
Changes many patch_manager functions to use a case-less variant of GetSubdirectory. Fixes patches not showing up on *nix systems when patch directories are named with odd cases, i.e. `exeFS'. | |||||
2020-05-28 | buffer_cache: Avoid copying twice on certain cases | ReinUsesLisp | 1 | -17/+23 | |
Avoid copying to a staging buffer on non-granular memory addresses. Add a callable argument to StreamBufferUpload to be able to copy to the staging buffer directly from ReadBlockUnsafe. | |||||
2020-05-27 | texture_cache: Use unordered_map::find instead of operator[] on hot code | ReinUsesLisp | 1 | -15/+19 | |
2020-05-27 | texture_cache: Use small vector for surface vectors | ReinUsesLisp | 1 | -9/+10 | |
This avoids most heap allocations when collecting surfaces into a vector. | |||||
2020-05-27 | maxwell_3d: Initialize line widths | ReinUsesLisp | 1 | -0/+2 | |
Initialize line widths to avoid setting a line width of zero. | |||||
2020-05-27 | maxwell_3d: Initialize polygon modes | ReinUsesLisp | 1 | -0/+2 | |
NVN expects this to be initialized as Fill, otherwise games that never bind a rasterizer state will log an invalid polygon mode. | |||||
2020-05-27 | Fix macOS code and change "Swapfile" to "Swap" | Morph | 2 | -3/+6 | |
2020-05-27 | shader/other: Implement MEMBAR.CTS | ReinUsesLisp | 4 | -9/+27 | |
This silences an assertion we were hitting and uses workgroup memory barriers when the game requests it. | |||||
2020-05-26 | texture_cache: Fix layered null surfaces | ReinUsesLisp | 1 | -1/+3 | |
Null texture cubes were not considered arrays, causing issues on Vulkan and OpenGL when creating views. | |||||
2020-05-26 | gl_texture_cache: Implement small texture view cache for swizzles | ReinUsesLisp | 3 | -37/+44 | |
This fixes cases where the texture swizzle was applied twice on the same draw to a texture bound to two different slots. | |||||
2020-05-26 | texture_cache: Implement depth stencil texture swizzles | ReinUsesLisp | 3 | -36/+42 | |
Stop ignoring image swizzles on depth and stencil images. This doesn't fix a known issue on Xenoblade Chronicles 2 where an OpenGL texture changes swizzles twice before being used. A proper fix would be having a small texture view cache for this like we do on Vulkan. | |||||
2020-05-26 | gl_rasterizer: Port front face flip check from Vulkan | ReinUsesLisp | 1 | -5/+20 | |
While Vulkan was assuming we had no negative viewports, OpenGL code was assuming we had them. Port the old code from Vulkan to OpenGL, checking if the first viewport is negative before flipping faces. This is not a complete implementation since we only check for the first viewport to be negative. That said, unless a game is using Vulkan, OpenGL and NVN games should be fine here, and we can always compare with our Vulkan backend to see if there's a difference. | |||||
2020-05-26 | fixed_pipeline_state: Remove unnecessary check for front faces flip | ReinUsesLisp | 1 | -2/+1 | |
The check to flip faces when viewports are negative were a left over from the old OpenGL code. This is not required on Vulkan where we have negative viewports. | |||||
2020-05-26 | gl_shader_manager: Unbind GLSL program when binding a host pipeline | ReinUsesLisp | 1 | -0/+4 | |
Fixes regression in Link's Awakening caused by 420cc13248350ef5c2d19e0b961cb4185cd16a8a | |||||
2020-05-22 | yuzu/discord_impl: Update the applicationID (#3977) | Tobias | 1 | -1/+1 | |
2020-05-22 | shader/other: Implement BAR.SYNC 0x0 | ReinUsesLisp | 4 | -0/+33 | |
Trivially implement this particular case of BAR. Unless games use OpenCL or CUDA barriers, we shouldn't hit any other case here. | |||||
2020-05-22 | shader/memory: Implement non-addition operations in RED | ReinUsesLisp | 1 | -2/+1 | |
Trivially implement these instructions. They are used in Astral Chain. | |||||
2020-05-22 | shader/other: Implement thread comparisons (NV_shader_thread_group) | ReinUsesLisp | 4 | -0/+72 | |
Hardware S2R special registers match gl_Thread*MaskNV. We can trivially implement these using Nvidia's extension on OpenGL or naively stubbing them with the ARB instructions to match. This might cause issues if the host device warp size doesn't match Nvidia's. That said, this is unlikely on proper shaders. Refer to the attached url for more documentation about these flags. https://www.khronos.org/registry/OpenGL/extensions/NV/NV_shader_thread_group.txt | |||||
2020-05-22 | shader_decompiler: Visit source nodes even when they assign to RZ | ReinUsesLisp | 2 | -2/+6 | |
Some operations like atomicMin were ignored because they returned were being stored to RZ. This operations have a side effect and it was being ignored. | |||||
2020-05-22 | vk_shader_decompiler: Don't assert for void returns | ReinUsesLisp | 1 | -2/+1 | |
Atomic instructions can be used without returning anything and this is valid code. Remove the assert. | |||||
2020-05-21 | buffer_cache: Remove unused boost headers | ReinUsesLisp | 1 | -2/+0 | |
2020-05-21 | map_interval: Add interval allocator and drop hack | ReinUsesLisp | 4 | -3/+79 | |
Drop the std::list hack to allocate memory indefinitely. Instead use a custom allocator that keeps references valid until destruction. This allocates fixed chunks of memory and puts pointers in a free list. When an allocation is no longer used put it back to the free list, this doesn't heap allocate because std::vector doesn't change the capacity. If the free list is empty, allocate a new chunk. | |||||
2020-05-21 | buffer_cache: Use boost::container::small_vector for maps in range | ReinUsesLisp | 1 | -13/+15 | |
Most overlaps in the buffer cache only contain one mapped address. We can avoid close to all heap allocations once the buffer cache is warmed up by using a small_vector with a stack size of one. | |||||
2020-05-21 | buffer_cache: Use boost::intrusive::set for caching | ReinUsesLisp | 6 | -30/+48 | |
Instead of using boost::icl::interval_map for caching, use boost::intrusive::set. interval_map is intended as a container where the keys can overlap with one another; we don't need this for caching buffers and a std::set-like data structure that allows us to search with lower_bound is enough. | |||||
2020-05-21 | buffer_cache: Remove shared pointers | ReinUsesLisp | 2 | -70/+72 | |
Removing shared pointers is a first step to be able to use intrusive objects and keep allocations close to one another in memory. | |||||
2020-05-21 | buffer_cache: Minor style changes | ReinUsesLisp | 2 | -129/+65 | |
Minor style changes. Mostly done so I avoid editing it while doing other changes. | |||||
2020-05-21 | clang-format | VolcaEM | 1 | -1/+2 | |
2020-05-21 | nifm: correct assert in CreateTemporaryNetworkProfile | VolcaEM | 1 | -1/+1 | |
This has been wrong since https://github.com/yuzu-emu/yuzu/commit/0432af5ad1ec34f02071f6fdc5fc78149b059f18 I haven't found a game that called this function (and I haven't tried this on a real Switch), and because of this I haven't been able to check if the number in assert OR the string in the assert is wrong, but one of the two is wrong: NetworkProfileData is 0x18E, while SfNetworkProfileData is 0x17C, according to Switchbrew Switchbrew doesn't officially say that NetworkProfileData's size is 0x18E but it's possible to calculate its size since Switchbrew provides the size and the offset of all the components of NetworkProfileData (which isn't currently implemented in yuzu, alongside SfNetworkProfileData) NetworkProfileData documentation: https://switchbrew.org/wiki/Network_Interface_services#NetworkProfileData SfNetworkProfileData documentation: https://switchbrew.org/wiki/Network_Interface_services#SfNetworkProfileData Since I trust ogniK's work on reversing NIFM, I'd assume this was just a typo in the string | |||||
2020-05-20 | crypto: Make KeyManager a singleton class | FearlessTobi | 13 | -21/+27 | |
Previously, we were reading the keys everytime a KeyManager object was created, causing yuzu to reread the keys file multiple hundreds of times when loading the game list. With this change, it is only loaded once. On my system, this decreased game list loading times by a factor of 20. | |||||
2020-05-19 | renderer_opengl: Add assembly program code paths | ReinUsesLisp | 12 | -109/+339 | |
Add code required to use OpenGL assembly programs based on NV_gpu_program5. Decompilation for ARB programs is intended to be added in a follow up commit. This does **not** include ARB decompilation and it's not in an usable state. The intention behind assembly programs is to reduce shader stutter significantly on drivers supporting NV_gpu_program5 (and other required extensions). Currently only Nvidia's proprietary driver supports these extensions. Add a UI option hidden for now to avoid people enabling this option accidentally. This code path has some limitations that OpenGL compatibility doesn't have: - NV_shader_storage_buffer_object is limited to 16 entries for a single OpenGL context state (I don't know if this is an intended limitation, an specification issue or I am missing something). Currently causes issues on The Legend of Zelda: Link's Awakening. - NV_parameter_buffer_object can't bind buffers using an offset different to zero. The used workaround is to copy to a temporary buffer (this doesn't happen often so it's not an issue). On the other hand, it has the following advantages: - Shaders build a lot faster. - We have control over how floating point rounding is done over individual instructions (SPIR-V on Vulkan can't do this). - Operations on shared memory can be unsigned and signed. - Transform feedbacks are dynamic state (not yet implemented). - Parameter buffers (uniform buffers) are per stage, matching NVN and hardware's behavior. - The API to bind and create assembly programs makes sense, unlike ARB_separate_shader_objects. | |||||
2020-05-19 | yuzu: Add frontend settings for assembly shaders | ReinUsesLisp | 8 | -0/+29 | |
Add settings for assembly shaders. Currently hidden to avoid users from accidentally enabled them. | |||||
2020-05-18 | maxwell_to_vk: Add format B8G8R8A8_SRGB | Morph | 2 | -2/+3 | |
Add format B8G8R8A8_SRGB and add Attachable capability for B8G8R8A8_UNORM Used by Bravely Default II | |||||
2020-05-18 | OpenGL: Enable Debug Context and Synchronous debugging when graphics debugging is enabled. | Fernando Sahmkow | 3 | -0/+9 | |
This commit aims to help easing debugging of driver crashes without having to modify existing code. | |||||
2020-05-17 | main: Log host system memory parameters | Morph | 4 | -0/+86 | |
Logs both physical memory and swapfile sizes, this is useful for support. | |||||
2020-05-16 | file_sys: Update SystemVersion archive to version 10.0.2 | David Marcec | 1 | -7/+7 | |
2020-05-16 | nv_flinger: Use enum for pixel format instead of u32 | David Marcec | 2 | -3/+11 | |
2020-05-16 | DmaPusher: Remove dead code in step | David Marcec | 2 | -9/+1 | |
2020-05-16 | vk_rasterizer: Match OpenGL's FlushAndInvalidate behavior | ReinUsesLisp | 1 | -1/+3 | |
Match OpenGL's behavior. This can fix or simplify bisecting issues on Vulkan. | |||||
2020-05-15 | frontend: Set minimum window size to 640x360 instead of 1280x720 (#3413) | Morph | 6 | -8/+36 | |
2020-05-13 | vk_rasterizer: Implement constant attributes | ReinUsesLisp | 4 | -13/+26 | |
Constant attributes (in OpenGL known disabled attributes) are not supported on Vulkan, even with extensions. To emulate this behavior we return zero on reads from disabled vertex attributes in shader code. This has no caching cost because attribute formats are not dynamic state on Vulkan and we have to store it in the pipeline cache anyway. - Fixes Animal Crossing: New Horizons terrain borders | |||||
2020-05-13 | vk_rasterizer: Remove buffer check in attribute selection | ReinUsesLisp | 1 | -4/+0 | |
This was a left over from OpenGL when disabled buffers where not properly emulated. We no longer have to assert this as it is checked in vertex buffer initialization. | |||||
2020-05-13 | time_zone: Use std::chrono::seconds for strong typing. | bunnei | 3 | -4/+5 | |
2020-05-12 | Frontend: Remove tracking for context wrapper | James Rowe | 1 | -8/+8 | |
2020-05-12 | hid: Clear keyboard states & fix logic issue | David Marcec | 1 | -3/+4 | |
Previously we never cleared the states of the entries and the key would stay held down, also looping over the key bytes for each key lead to setting every bit for the key state instead of the key we wanted | |||||
2020-05-11 | hle: service: time_zone_manager: Use current time zone setting. | bunnei | 2 | -3/+32 | |
2020-05-11 | common: Add module to get the current time zone. | bunnei | 3 | -0/+68 | |
2020-05-11 | core: settings: Add a setting for time zone. | bunnei | 8 | -10/+282 | |
2020-05-11 | fix logic error & scale sample volume based on voice volume | David Marcec | 1 | -7/+9 | |
2020-05-11 | pass by const ref instead | David Marcec | 1 | -8/+7 | |
2020-05-11 | audio_renderer: Better voice mixing and 6 channel downmixing | David Marcec | 3 | -11/+96 | |
Supersedes #3738 and #3321 | |||||
2020-05-11 | service: fsp_srv: Stub implementation of OpenMultiCommitManager. | bunnei | 2 | -1/+38 | |
2020-05-11 | yuzu: game_list: Fix 'Open Save Data Location' for device saves. | bunnei | 4 | -27/+49 | |
2020-05-11 | file_sys: savefata_factory: Update to support DeviceSaveData. | bunnei | 1 | -3/+6 | |
2020-05-11 | file_sys: control_metadata: Expose device_save_data_size. | bunnei | 2 | -0/+5 | |
2020-05-11 | Stub SendKeyboardLockKeyEvent | David Marcec | 2 | -1/+11 | |
Needed for Puchikon 4 SmileBASIC 1.0.0 | |||||
2020-05-10 | gl_shader_decompiler: Properly emulate NaN behaviour on NE | ReinUsesLisp | 1 | -0/+9 | |
"Not equal" operators on GLSL seem to behave as unordered when we expect an ordered comparison. Manually emulate this checking for LGE values (numbers, not-NaNs). | |||||
2020-05-10 | RasterizerCache: Correct documentation. | Fernando Sahmkow | 1 | -2/+2 | |
2020-05-10 | VkPipelineCache: Use a null shader on invalid address. | Fernando Sahmkow | 1 | -2/+1 | |
2020-05-10 | VideoCore: Use SyncGuestMemory mechanism for Shader/Pipeline Cache invalidation. | Fernando Sahmkow | 3 | -5/+61 | |
2020-05-09 | shader_ir: Separate float-point comparisons in ordered and unordered | ReinUsesLisp | 7 | -135/+163 | |
This allows us to use native SPIR-V instructions without having to manually check for NAN. | |||||
2020-05-08 | Replace externals with Conan (#3735) | James Rowe | 7 | -9/+10 | |
* Remove git submodules that will be loaded through conan * Move custom Find modules to their own folder * Use conan for downloading missing external dependencies * CI: Change the yuzu source folder user to the user that the containers run on * Attempt to remove dirty mingw build hack * Install conan on the msvc build * Only set release build type when using not using multi config generator * Re-add qt bundled to workaround an issue with conan qt not downloading prebuilt binaries * Add workaround for submodules that use legacy CMAKE variables * Re-add USE_BUNDLED_QT on the msvc build bot | |||||
2020-05-06 | Menubar: fix mouse tracking bug | FearlessTobi | 1 | -4/+0 | |
Co-Authored-By: Vitor K <vitor-k@users.noreply.github.com> | |||||
2020-05-05 | Update src/video_core/gpu.cpp | bunnei | 1 | -1/+1 | |
Co-authored-by: David <25727384+ogniK5377@users.noreply.github.com> | |||||
2020-05-05 | Update src/video_core/gpu.cpp | bunnei | 1 | -1/+1 | |
Co-authored-by: David <25727384+ogniK5377@users.noreply.github.com> | |||||
2020-05-05 | vk_sampler_cache: Use VK_EXT_custom_border_color when available | ReinUsesLisp | 3 | -2/+44 | |
This should fix grass interactions on Breath of the Wild on Vulkan. It is currently untested against validation layers. Nvidia's Windows 443.09 beta driver or Linux 440.66.12 is required for now. | |||||
2020-05-04 | vk_graphics_pipeline: Implement viewport swizzles with NV_viewport_swizzle | ReinUsesLisp | 8 | -0/+84 | |
2020-05-04 | gl_rasterizer: Implement viewport swizzles with NV_viewport_swizzle | ReinUsesLisp | 2 | -0/+13 | |
2020-05-04 | maxwell_3d: Add viewport swizzles | ReinUsesLisp | 2 | -1/+24 | |
2020-05-03 | kernel/memory: Remove #pragma once within cpp file | Lioncash | 1 | -2/+0 | |
This isn't necessary in a cpp file and will cause warnings on clang. | |||||
2020-05-03 | kernel/memory: Remove unused includes | Lioncash | 7 | -8/+1 | |
Prevents header churn and needing to recompile these files if these headers are ever changed in the future. | |||||
2020-05-03 | kernel/memory: Remove unused variables in memory_block_manager | Lioncash | 1 | -3/+0 | |
Prevents unused variable warnings. | |||||
2020-05-03 | kernel/memory: Make use of std::array consistently in address_space_info | Lioncash | 1 | -6/+6 | |
This allows tuning standard library implementations to enable or disable range checks at runtime, which is nicer for debugging. | |||||
2020-05-03 | kernel/memory: Resolve -Wshadow warnings | Lioncash | 1 | -4/+4 | |
Prevents variable name clashing. | |||||
2020-05-03 | kernel/memory: Amend potential encoding warnings | Lioncash | 6 | -12/+12 | |
While èis generally representable in some language encodings, in some it isn't and will result in compilation warnings occurring. To remain friendly with other language's codepages on Windows, we normalize it to an ASCII e. | |||||
2020-05-03 | hle_ipc: Eliminate core memory globals | Lioncash | 3 | -10/+16 | |
We can just pass the required instances into the constructor of the request, eliminating all usages of the global system accessor. | |||||
2020-05-03 | settings: Add anisotropic filtering level to the yuzu configuration log (#3875) | Morph | 1 | -0/+1 | |
2020-05-03 | Update src/core/hle/service/am/am.cpp | bunnei | 1 | -1/+1 | |
Co-authored-by: Mat M. <mathew1800@gmail.com> | |||||
2020-05-02 | input_common: fix build when SDL2 is disabled | FearlessTobi | 1 | -0/+6 | |
2020-05-02 | readable_event: Remove unnecessary semicolon in Signal() | Lioncash | 1 | -4/+6 | |
Resolves a -Wextra-semi warning. While we're at it, we can invert the branch to form a guard clause, unindenting all of the contained code. | |||||
2020-05-02 | vk_graphics_pipeline: Implement rasterizer_enable on Vulkan | ReinUsesLisp | 3 | -1/+3 | |
We can simply enable rasterizer discard matching the current pipeline key. | |||||
2020-05-02 | fixed_pipeline_state: explicitly use template keyword after 1f345ebe3a55 | Jan Beich | 1 | -2/+4 | |
In file included from src/video_core/renderer_opengl/renderer_opengl.cpp:25: In file included from src/./video_core/renderer_opengl/gl_rasterizer.h:26: In file included from src/./video_core/renderer_opengl/gl_fence_manager.h:11: src/./video_core/fence_manager.h:91:32: error: use 'template' keyword to treat 'Write' as a dependent template name memory_manager.Write<u32>(current_fence->GetAddress(), current_fence->GetPayload()); ^ template src/./video_core/fence_manager.h:137:32: error: use 'template' keyword to treat 'Write' as a dependent template name memory_manager.Write<u32>(current_fence->GetAddress(), current_fence->GetPayload()); ^ template | |||||
2020-05-01 | nvdrv: Fix GetGpuTime stack corruption | David Marcec | 1 | -2/+3 | |
IoctlGetGpuTime should be 16 bytes, not 8. | |||||
2020-05-01 | am: IHomeMenuFunctions:GetPopFromGeneralChannelEvent | David Marcec | 3 | -4/+20 | |
QLaunch 1.0.0 | |||||
2020-04-30 | maxwell_to_vk: implement missing signed int formats | Dan | 1 | -2/+14 | |
2020-04-30 | caps:su Stub out SetShimLibraryVersion | Jason Parker | 2 | -1/+13 | |
Used by Animal Crossing: New Horizons when trying to take a picture. | |||||
2020-04-30 | texture: Implement R8G8UI | Morph | 8 | -38/+52 | |
- Used by The Walking Dead: The Final Season | |||||
2020-04-30 | fs-srv: GetFreeSpaceSize & GetTotalSpaceSize | David Marcec | 1 | -2/+2 | |
Closes #3533 Turns out the functions were already implemented but just never added | |||||
2020-04-30 | nim: CreateServerInterface, CreateAccessorInterface, CreateAsyncInterface | David Marcec | 1 | -1/+69 | |
Closes #3026 | |||||
2020-04-30 | caps: Add missing service names to caps:su | David Marcec | 1 | -0/+3 | |
SetShimLibraryVersion, SaveScreenShotEx1 & SaveScreenShotEx2 were missing | |||||
2020-04-30 | am: GetFriendInvitationStorageChannelEvent | David Marcec | 2 | -1/+14 | |
Closes #3829 | |||||
2020-04-29 | psm: Mark as debug instead of warning | David Marcec | 1 | -7/+14 | |
No point to emulate battery life. However options are broken out if we ever want to add a setting for it | |||||
2020-04-29 | am: Properly implement GetDisplayVersion | David Marcec | 1 | -3/+14 | |
Properly implement IApplicationFunctions::GetDisplayVersion | |||||
2020-04-29 | am: IsVrModeEnabled & SetVrModeEnabled fixes | David Marcec | 2 | -16/+6 | |
Return the proper state of vr mode for IsVrModeEnabled We should not return an error for SetVrModeEnabled. When VR Mode is turned on, it signals to lbl to turn vr mode on, not return an error code | |||||
2020-04-29 | acc: Return a unique value per account for GetAccountId | David Marcec | 2 | -5/+13 | |
2020-04-29 | acc: Fix InitializeApplicationInfo | David Marcec | 2 | -22/+15 | |
We're not suppose to pop a u64, should just read the sent pid and check that | |||||
2020-04-29 | kernel: Don't fail silently | David Marcec | 7 | -0/+51 | |
2020-04-29 | vulkan: Remove unnecessary includes | Lioncash | 31 | -59/+3 | |
Reduces some header churn and reduces rebuilds when some header internals change. While we're at it we can also resolve a missing include in buffer_cache. | |||||
2020-04-29 | Don't fail silently for vi, sm, set and ns services | David Marcec | 4 | -3/+27 | |
2020-04-28 | shader/arithmetic_integer: Fix tracking issue in temporary | ReinUsesLisp | 1 | -4/+0 | |
This temporary is not needed as we mark Rd.CC + IADD.X as unimplemented. It caused issues when tracking global buffers. | |||||
2020-04-28 | Clang Format and Documentation. | Fernando Sahmkow | 10 | -10/+20 | |
2020-04-28 | MaxwellDMA: Optimize micro copies. | Fernando Sahmkow | 3 | -0/+57 | |
2020-04-28 | kernel: Bad GetInfo ids should not be marked as stubs | David Marcec | 1 | -2/+2 | |
As we currently match hardware and don't return a successful result, these should be marked as errors instead of warnings and as stubs. | |||||
2020-04-28 | Updated comment to reflect ListQualifiedUsers better | David Marcec | 1 | -1/+3 | |
2020-04-28 | style: Change AMs & Glues error codes to be dec instead of hex | David Marcec | 2 | -7/+7 | |
Consistency for the rest of the error codes in the codebase | |||||
2020-04-28 | marked stubs | David Marcec | 1 | -4/+5 | |
2020-04-28 | account: ListQualifiedUsers | David Marcec | 5 | -3/+13 | |
Closes #2844 | |||||
2020-04-28 | Audin:u ListAudioIns, OpenAudioIn, ListAudioInsAuto, OpenAudioInAuto, ListAudioInsAutoFiltered, OpenAudioInProtocolSpecified | David Marcec | 2 | -5/+93 | |
Closes #2874 | |||||
2020-04-28 | vk_rasterizer: Skip index buffer setup when vertices are zero | ReinUsesLisp | 1 | -0/+3 | |
Xenoblade 2 invokes a draw call with zero vertices. This is likely due to indirect drawing (glDrawArraysIndirect). This causes a crash in the staging buffer pool when trying to create a buffer with a size of zero. To workaround this, skip index buffer setup entirely when the number of indices is zero. | |||||
2020-04-28 | {maxwell_3d,buffer_cache}: Implement memory barriers using 3D registers | ReinUsesLisp | 13 | -16/+57 | |
Drop MemoryBarrier from the buffer cache and use Maxwell3D's register WaitForIdle. To implement this on OpenGL we just call glMemoryBarrier with the necessary bits. Vulkan lacks this synchronization primitive, so we set an event and immediately wait for it. This is not a pretty solution, but it's what Vulkan can do without submitting the current command buffer to the queue (which ends up being more expensive on the CPU). | |||||
2020-04-28 | VideoCore/GPU: Delegate subchannel engines to the dma pusher. | Fernando Sahmkow | 3 | -4/+49 | |
2020-04-28 | VideoCore/Engines: Refactor Engines CallMethod. | Fernando Sahmkow | 13 | -62/+82 | |
2020-04-28 | maxwell_3d: Fix depth clamping register | ReinUsesLisp | 5 | -8/+5 | |
Using deko3d as reference: https://github.com/devkitPro/deko3d/blob/4e47ba0013552e592a86ab7a2510d1e7dadf236a/source/maxwell/gpu_3d_state.cpp#L42 We were using bits 3 and 4 to determine depth clamping, but these are the same both enabled and disabled: state->depthClampEnable ? 0x101A : 0x181D The same happens on Nvidia's OpenGL driver, where they do something like this (default capabilities, GL 4.5 compatibility): (state & DEPTH_CLAMP) != 0 ? 0x201a : 0x281c There's always a difference between the first bits in this register, but bit 11 is consistently disabled on both deko3d/NVN and OpenGL. This commit changes yuzu's behaviour to use bit 11 to determine depth clamping. - Fixes depth issues on Super Mario Odyssey's intro. | |||||
2020-04-27 | texture_cache: Reintroduce preserve_contents accurately | ReinUsesLisp | 4 | -41/+81 | |
This reverts commit 94b0e2e5dae4e0bd0021ac2d8fe1ff904a93ee69. preserve_contents proved to be a meaningful optimization. This commit reintroduces it but properly implemented on OpenGL. We have to make sure the clear removes all the previous contents of the image. It's not currently implemented on Vulkan because we can do smart things there that's preferred to be introduced in a separate commit. | |||||
2020-04-26 | shader/memory_util: Deduplicate code | ReinUsesLisp | 9 | -159/+153 | |
Deduplicate code shared between vk_pipeline_cache and gl_shader_cache as well as shader decoder code. While we are at it, fix a bug in gl_shader_cache where compute shaders had an start offset of a stage shader. | |||||
2020-04-26 | shader/arithmetic_integer: Fix edge case and mark IADD.X Rd.CC as unimplemented | ReinUsesLisp | 1 | -1/+6 | |
IADD.X Rd.CC requires some extra logic that is not currently implemented. Abort when this is hit. | |||||
2020-04-26 | shader/arithmetic_integer: Change IAdd to UAdd to avoid signed overflow | ReinUsesLisp | 1 | -2/+2 | |
Signed integer addition overflow might be undefined behavior. It's free to change operations to UAdd and use unsigned integers to avoid potential bugs. | |||||
2020-04-26 | shader/arithmetic_integer: Implement IADD.X | ReinUsesLisp | 2 | -0/+10 | |
IADD.X takes the carry flag and adds it to the result. This is generally used to emulate 64-bit operations with 32-bit registers. | |||||
2020-04-26 | shader/arithmetic_integer: Implement CC for IADD | ReinUsesLisp | 4 | -3/+42 | |
2020-04-26 | decode/register_set_predicate: Implement CC | ReinUsesLisp | 1 | -9/+14 | |
P2R CC takes the state of condition codes and puts them into a register. We already have this implemented for PR (predicates). This commit implements CC over that. | |||||
2020-04-26 | decode/register_set_predicate: Use move for shared pointers | ReinUsesLisp | 1 | -16/+17 | |
Avoid atomic counters used by shared pointers. | |||||
2020-04-26 | services: hid: Stub StopSevenSixAxisSensor. | M&M | 2 | -1/+13 | |
- Used by The Legend of Zelda: Breath of the Wild v1.6.0 | |||||
2020-04-25 | Fix the mistake in the port and update the comment for clarity | Vitor Kiguchi | 1 | -7/+7 | |
2020-04-25 | vk_rasterizer: Pack texceptions and color formats on invalid formats | ReinUsesLisp | 2 | -5/+19 | |
Sometimes for unknown reasons NVN games can bind a render target format of 0. This may be a yuzu bug. With the commits before this the formats were specified without being "packed", assuming all formats and texceptions will be written like in the color_attachments vector. To address this issue, iterate all render targets and pack them as they are valid. This way they will match color_attachments. - Fixes validation errors and graphical issues on Breath of the Wild. | |||||
2020-04-24 | Add Restore Defaults and Clear options to hotkeys | Kewlan | 5 | -18/+116 | |
2020-04-24 | Revert: shader_decode: Fix LD, LDG when track constant buffer. | Fernando Sahmkow | 1 | -14/+6 | |
2020-04-24 | Fix -Wdeprecated-copy warning. | Markus Wick | 1 | -0/+1 | |
2020-04-24 | Fix -Werror=conversion error. | Markus Wick | 2 | -2/+2 | |
2020-04-24 | vi: Don't let uninitialized data pass as a response for SetBufferCount | David Marcec | 1 | -1/+9 | |
Currently SetBufferCount doesn't write to the out buffer which then contains uninitialized data. This leads to non-zero data which leads to responding with different error codes | |||||
2020-04-24 | physical_core: Make use of std::make_unique instead of std::make_shared in ctor | Lioncash | 4 | -8/+15 | |
We can also allow unicorn to be constructed in 32-bit mode or 64-bit mode to satisfy the need for both interpreter instances. Allows this code to compile successfully of non x86-64 architectures. | |||||
2020-04-24 | shared_memory: Amend doxygen reference | Lioncash | 2 | -5/+5 | |
Amends the parameter to match the documentation reference. Resolves a -Wdocumentation warning with clang. | |||||
2020-04-24 | svc: Re-add MapProcessCodeMemory/UnmapProcessCodeMemory | Lioncash | 1 | -2/+138 | |
These were lost in the re-implementation of the virtual memory manager. | |||||
2020-04-23 | svc: Remove unused variable | Lioncash | 1 | -3/+0 | |
Since the VMM refactor, this is no longer used or needed. | |||||
2020-04-23 | page_table: Remove unused captures | Lioncash | 1 | -2/+2 | |
Any time the lambda function is called, the permission being used in the capture would be passed in as an argument to the lambda, so the capture is unnecessary. | |||||
2020-04-23 | decode/arithmetic_half: Fix HADD2 and HMUL2 absolute and negation bits | ReinUsesLisp | 2 | -16/+37 | |
The encoding for negation and absolute value was wrong. Extracting is now done manually. Similar instructions having different encodings is the rule, not the exception. To keep sanity and readability I preferred to extract the desired bit manually. This is implemented against nxas: https://github.com/ReinUsesLisp/nxas/blob/8dbc38995711cc12206aa370145a3a02665fd989/table.h#L68 That is itself tested against nvdisasm (Nvidia's official disassembler). | |||||
2020-04-23 | shader/texture: Support multiple unknown sampler properties | ReinUsesLisp | 2 | -62/+87 | |
This allows deducing some properties from the texture instruction before asking the runtime. By doing this we can handle type mismatches in some instructions from the renderer instead of the shader decoder. Fixes texelFetch issues with games using 2D texture instructions on a 1D sampler. | |||||
2020-04-23 | shader_ir: Turn classes into data structures | ReinUsesLisp | 13 | -299/+197 | |
2020-04-23 | vk_rasterizer: Fix framebuffer creation validation errors | ReinUsesLisp | 1 | -2/+4 | |
Framebuffer creation was ignoring the number of color attachments. | |||||
2020-04-23 | vk_pipeline_cache: Unify pipeline cache keys into a single operation | ReinUsesLisp | 5 | -47/+59 | |
This allows us to call Common::CityHash and std::memcmp only once for GraphicsPipelineCacheKey. While we are at it, do the same for compute. | |||||
2020-04-23 | vk_renderpass_cache: Pack renderpass cache key to 12 bytes | ReinUsesLisp | 4 | -84/+59 | |
2020-04-23 | kernel: memory: Improve implementation of device shared memory. (#3707) | bunnei | 6 | -16/+110 | |
* kernel: memory: Improve implementation of device shared memory. * fixup! kernel: memory: Improve implementation of device shared memory. * fixup! kernel: memory: Improve implementation of device shared memory. | |||||
2020-04-23 | Clang Format. | Fernando Sahmkow | 6 | -11/+19 | |
2020-04-23 | GPU: Add Fast GPU Time Option. | Fernando Sahmkow | 7 | -1/+21 | |
2020-04-23 | Maxwell3D: Process Macros on MultiMethod. | Fernando Sahmkow | 1 | -25/+47 | |
2020-04-23 | DMAPusher: Propagate multimethod writes into the engines. | Fernando Sahmkow | 14 | -14/+164 | |
2020-04-23 | Update src/yuzu/main.cpp with missing const | Ben Russell | 1 | -1/+1 | |
Co-Authored-By: Mat M. <mathew1800@gmail.com> | |||||
2020-04-23 | Dump RomFS command to include Updates | Ben Russell | 1 | -1/+3 | |
Patch the RomFS with the selected updates before dumping. Previously the resulting RomFS only contained data from the original title. To dump the RomFS without updates the user can disable the update under Properties before choosing Dump RomFS. | |||||
2020-04-23 | Edit modifier_scale with the deadzone slider | Kewlan | 3 | -30/+52 | |
2020-04-23 | Fix format error in performance statistics | H27CK | 1 | -3/+4 | |
Formatting | |||||
2020-04-23 | vk_pipeline_cache: Fix unintentional memcpy into optional | ReinUsesLisp | 1 | -2/+4 | |
The intention behind this was to assign a float to from an uint32_t, but it was unintentionally being copied directly into the std::optional. Copy to a temporary and assign that temporary to std::optional. This can be replaced with std::bit_cast<float> once we are in C++20. | |||||
2020-04-23 | GL_Fence_Manager: use GL_TIMEOUT_IGNORED instead of a loop, | Fernando Sahmkow | 1 | -2/+1 | |
2020-04-22 | Add missing ; | H27CK | 1 | -1/+1 | |
2020-04-22 | Address Feedback. | Fernando Sahmkow | 3 | -24/+18 | |
2020-04-22 | Async GPU: Correct flushing behavior to be similar to old async GPU behavior. | Fernando Sahmkow | 3 | -0/+11 | |
2020-04-22 | MaxwellDMA: Correct copying on accuracy level. | Fernando Sahmkow | 1 | -2/+7 | |
2020-04-22 | ShaderCache/PipelineCache: Cache null shaders. | Fernando Sahmkow | 4 | -8/+31 | |
2020-04-22 | Address Feedback. | Fernando Sahmkow | 13 | -132/+117 | |
2020-04-22 | Fix GCC error. | Fernando Sahmkow | 2 | -6/+5 | |
2020-04-22 | Correct Linux Compile Error. | Fernando Sahmkow | 2 | -7/+10 | |
2020-04-22 | Clang format. | Fernando Sahmkow | 1 | -1/+2 | |
2020-04-22 | QueryCache: Only do async flushes on async gpu. | Fernando Sahmkow | 1 | -1/+4 | |
2020-04-22 | Async GPU: Only do reactive flushing on Extreme Level. | Fernando Sahmkow | 1 | -1/+1 | |
2020-04-22 | vk_fence_manager: Initial implementation | ReinUsesLisp | 8 | -12/+222 | |
2020-04-22 | QueryCache: Implement Async Flushes. | Fernando Sahmkow | 5 | -12/+77 | |
2020-04-22 | OpenGL: Guarantee writes to Buffers. | Fernando Sahmkow | 3 | -4/+2 | |
2020-04-22 | GPU: Implement Flush Requests for Async mode. | Fernando Sahmkow | 6 | -8/+70 | |
2020-04-22 | FenceManager: Manage syncpoints and rename fences to semaphores. | Fernando Sahmkow | 11 | -25/+123 | |
2020-04-22 | BufferCache: Refactor async managing. | Fernando Sahmkow | 2 | -10/+27 | |
2020-04-22 | FenceManager: Implement async buffer cache flushes on High settings | Fernando Sahmkow | 6 | -10/+69 | |
2020-04-22 | Rasterizer: Document SignalFence & ReleaseFences and setup skeletons on Vulkan. | Fernando Sahmkow | 5 | -4/+35 | |
2020-04-22 | GPU: Fix rebase errors. | Fernando Sahmkow | 2 | -4/+4 | |
2020-04-22 | Rasterizer: Disable fence managing in synchronous gpu. | Fernando Sahmkow | 2 | -1/+11 | |
2020-04-22 | ThreadManager: Sync async reads on accurate gpu. | Fernando Sahmkow | 9 | -8/+48 | |
2020-04-22 | FenceManager: Implement should wait. | Fernando Sahmkow | 2 | -2/+17 | |
2020-04-22 | GPU: Implement a Fence Manager. | Fernando Sahmkow | 6 | -23/+208 | |
2020-04-22 | OpenGL: Implement Fencing backend. | Fernando Sahmkow | 12 | -19/+94 | |
2020-04-22 | TextureCache: Flush linear textures after finishing rendering. | Fernando Sahmkow | 1 | -2/+8 | |
2020-04-22 | GPU: Delay Fences. | Fernando Sahmkow | 6 | -2/+20 | |
2020-04-22 | BufferCache: Implement OnCPUWrite and SyncGuestHost | Fernando Sahmkow | 6 | -7/+67 | |
2020-04-22 | GPU: Refactor synchronization on Async GPU | Fernando Sahmkow | 11 | -7/+56 | |
2020-04-22 | Texture Cache: Implement OnCPUWrite and SyncGuestHost | Fernando Sahmkow | 2 | -3/+63 | |
2020-04-22 | UI: Replasce accurate GPU option for GPU Accuracy Level | Fernando Sahmkow | 12 | -28/+77 | |
2020-04-22 | Add a trailing separator to the string path | Morph | 1 | -1/+1 | |
Fixes #3643 | |||||
2020-04-22 | Init SDL info structure and add dummy context | H27CK | 2 | -1/+4 | |
2020-04-22 | vk_memory_manager: Remove unified memory model flag | ReinUsesLisp | 5 | -35/+6 | |
All drivers (even Intel) seem to have a device local memory type that is not host visible. Remove this flag so all devices follow the same path. This fixes a crash when trying to map to host device local memory on integrated devices. | |||||
2020-04-22 | vk_rasterizer: Add lazy default buffer maker and use it for empty buffers | ReinUsesLisp | 3 | -4/+40 | |
Introduce a default buffer getter that lazily constructs an empty buffer. This is intended to match OpenGL's buffer 0. Use this for disabled vertex and uniform buffers. While we are at it, include vertex buffer usages for staging buffers to silence validation errors. | |||||
2020-04-22 | gl_rasterizer: Fix buffers without size | ReinUsesLisp | 3 | -8/+13 | |
On NVN buffers can be enabled but have no size. According to deko3d and the behavior we see in Animal Crossing: New Horizons these buffers get the special address of 0x1000 and limit themselves to 0xfff. Implement buffers without a size by binding a null buffer to OpenGL without a side. https://github.com/devkitPro/deko3d/blob/1d1930beea093b5a663419e93b0649719a3ca5da/source/maxwell/gpu_3d_vbo.cpp#L62-L63 | |||||
2020-04-21 | audio_renderer: Preliminary BehaviorInfo (#3736) | David | 7 | -13/+249 | |
* audio_renderer: Preliminary BehaviorInfo * clang format * Fixed IsRevisionSupported * fixed IsValidRevision * Fixed logic error & spelling errors & crash * Addressed issues | |||||
2020-04-21 | shader/arithmetic_integer: Fix LEA_IMM encoding | ReinUsesLisp | 1 | -2/+2 | |
The operand order in LEA_IMM was flipped compared to nvdisasm. Fix that using nxas as reference: https://github.com/ReinUsesLisp/nxas/blob/8dbc38995711cc12206aa370145a3a02665fd989/table.h#L122 | |||||
2020-04-21 | loader: nro: Fix process initialization using ProgramMetadata default. | bunnei | 2 | -11/+14 | |
2020-04-21 | loader: elf: Fix process initialization using ProgramMetadata default. | bunnei | 1 | -0/+5 | |
2020-04-21 | file_sys: program_metadata: Add a helper function for generating reasonable default metadata. | bunnei | 2 | -1/+16 | |
- We need this for homebrew process initialization. | |||||
2020-04-20 | service: Update function tables | Lioncash | 19 | -7/+108 | |
Keeps the service function tables up to date. Updated based off information on SwitchBrew. | |||||
2020-04-20 | npad: Lower log level for VibrateController to Debug | FearlessTobi | 1 | -1/+1 | |
2020-04-20 | audren: Lower log level for RequestUpdateImpl to Debug | FearlessTobi | 1 | -1/+1 | |
2020-04-20 | dynarmic: Add option to disable CPU JIT optimizations | MerryMage | 7 | -2/+26 | |
2020-04-20 | yuzu: Option to hide mouse on inactivity | FearlessTobi | 7 | -0/+78 | |
Co-Authored-By: Vitor K <vitor-k@users.noreply.github.com> | |||||
2020-04-20 | Initialize quad_indexed_pass before uint8_pass | Amit Prakash Ambasta | 1 | -1/+1 | |
Fixes Werror=reorder in gcc | |||||
2020-04-19 | service/time: Remove reliance on the global system accessor | Lioncash | 1 | -24/+26 | |
Eliminates usages of the global system accessor and instead passes the existing system instance into the interfaces. | |||||
2020-04-19 | dma_pusher: Remove reliance on the global system instance | Lioncash | 3 | -6/+11 | |
With this, the video core is now has no calls to the global system instance at all. | |||||
2020-04-19 | thread: FPCR.FZ is likely not 1 | MerryMage | 1 | -2/+1 | |
2020-04-19 | core: arm_unicorn: Fix interpret fallback by temporarily mapping instruction page. | bunnei | 1 | -0/+11 | |
2020-04-19 | renderer_vulkan: assume X11 if not Windows/macOS after bf1d66b7c074 | Jan Beich | 1 | -3/+3 | |
Render.Vulkan <Error> video_core/renderer_vulkan/renderer_vulkan.cpp:CreateInstance:131: Presentation not supported on this platform Render.Vulkan <Error> video_core/renderer_vulkan/renderer_vulkan.cpp:CreateSurface:378: Presentation not supported on this platform Core <Critical> core/core.cpp:Load:199: Failed to initialize system (Error 5)! | |||||
2020-04-19 | vulkan/wrapper: Sort physical devices | ReinUsesLisp | 1 | -1/+20 | |
Sort discrete GPUs over the rest, Nvidia over AMD, AMD over Intel, Intel over the rest. This gives us a somewhat consistent order when Optimus is removed (renderdoc does this when it's attached). This can break the configuration of users with an Intel GPU that manually remove Optimus on yuzu. That said, it's a very unlikely to happen. | |||||
2020-04-19 | fixed_pipeline_state: Hash and compare the whole structure | ReinUsesLisp | 2 | -105/+9 | |
Pad FixedPipelineState's size to 384 bytes to be a multiple of 16. Compare the whole struct with std::memcmp and hash with CityHash. Using CityHash instead of a naive hash should reduce the number of collisions. Improve used type traits to ensure this operation is safe. With these changes the improvements to the hashable pipeline state are: Optimized structure Hash: 89 ns Comparison: 103 ns Construction*: 164 ns Struct size: 384 bytes Original structure Hash: 148 ns Equal: 174 ns Construction*: 281 ns Size: 1384 bytes * Attribute state initialization is not measured These measures are averages taken with std::chrono::high_accuracy_clock on MSVC shipped on Visual Studio 16.6.0 Preview 2.1. | |||||
2020-04-19 | fixed_pipeline_state: Pack blending state | ReinUsesLisp | 3 | -98/+227 | |
Reduce FixedPipelineState's size to 364 bytes. | |||||
2020-04-19 | fixed_pipeline_state: Pack rasterizer state | ReinUsesLisp | 4 | -163/+155 | |
Reduce FixedPipelineState's size to 600 bytes. | |||||
2020-04-19 | fixed_pipeline_state: Pack depth stencil state | ReinUsesLisp | 3 | -97/+140 | |
Reduce FixedPipelineState's size to 632 bytes. | |||||
2020-04-19 | fixed_pipeline_state: Pack attribute state | ReinUsesLisp | 6 | -101/+85 | |
Reduce FixedPipelineState's size from 1384 to 664 bytes | |||||
2020-04-18 | video_core: gl_shader_decompiler: Fix implicit fallthrough errors. | bunnei | 1 | -0/+1 | |
2020-04-18 | service: hid: npad: Fix implicit fallthrough errors. | bunnei | 1 | -0/+2 | |
2020-04-18 | gl_shader_decompiler: Avoid copies where applicable | Lioncash | 1 | -3/+3 | |
Avoids unnecessary reference count increments where applicable and also avoids reallocating a vector. Unlikely to make a huge difference, but given how trivial of an amendment it is, why not? | |||||
2020-04-18 | time/system_clock_core: Remove unnecessary initializer | Lioncash | 1 | -1/+1 | |
This is already initialized within the class body. | |||||
2020-04-18 | service/time: Mark IsStandardNetworkSystemClockAccuracySufficient as const | Lioncash | 1 | -1/+1 | |
This doesn't modify internal member state. | |||||
2020-04-18 | service/time: Add virtual destructors where applicable | Lioncash | 3 | -2/+3 | |
Many of these implementations are used to implement a polymorphic interface. While not directly used polymorphically, this prevents virtual destruction from ever becoming an issue. | |||||
2020-04-18 | service: Remove unused RequestParser instances | Lioncash | 2 | -3/+0 | |
These aren't used, so they should be removed to reduce compilation warnings. | |||||
2020-04-18 | memory/slab_heap: Make use of static_cast over reinterpret_cast | Lioncash | 1 | -2/+2 | |
Casting from void* with static_cast is permitted by the standard, so we can just make use of that instead. | |||||
2020-04-18 | loader/nso: Resolve moves not occurring in DecompressSegment | Lioncash | 1 | -1/+1 | |
Given the std::vector was const, an automatic move out of the function could not occur. We can allow automatic return value optimizations to occur by making the buffer non-const. | |||||
2020-04-18 | am: Resolve ineffective moves | Lioncash | 1 | -2/+2 | |
Previously const objects were being std::moved, which results in no move actually occurring. This resolves that. | |||||
2020-04-17 | video_code: Fix implicit switch fallthrough. | Markus Wick | 1 | -0/+2 | |
Since yesterday, this breaks the build on linux. So let's fix it. | |||||
2020-04-17 | vk_stream_buffer: Fix out of memory on boot on recent Nvidia drivers | ReinUsesLisp | 2 | -33/+48 | |
Nvidia recently introduced a new memory type for data streaming (awesome!), but yuzu was assuming that all heaps had enough memory for the assumed stream buffer size (256 MiB). This worked fine on AMD but Nvidia's new memory heap was smaller than 256 MiB. This commit changes this assumption and allocates a bit less than the size of the preferred heap, with a maximum of 256 MiB (to avoid allocating all system memory on integrated devices). - Fixes a crash on NVIDIA 450.82.0.0 | |||||
2020-04-17 | Revert "gl_shader_cache: Use CompileDepth::FullDecompile on GLSL" | Rodrigo Locatti | 1 | -3/+1 | |
2020-04-17 | core: hle: Address various feedback & code cleanup. | bunnei | 11 | -251/+153 | |
- Should be no functional changes. | |||||
2020-04-17 | core: device_memory: Remove incorrect usage of constexpr. | bunnei | 1 | -2/+6 | |
2020-04-17 | memory: Add copyright notice for Atmosphere where applicable. | bunnei | 6 | -0/+18 | |
2020-04-17 | kernel: Remove old VMManager class. | bunnei | 3 | -1973/+0 | |
2020-04-17 | loader: nso: Fix loader size and arguments. | bunnei | 3 | -25/+47 | |
2020-04-17 | loader: elf/kip/nro: Updates for new VMM. | bunnei | 3 | -5/+7 | |
2020-04-17 | service: ldr: Updates for new VMM. | bunnei | 1 | -150/+215 | |
- Includes removing some service impls. that are untested. | |||||
2020-04-17 | kernel: memory: page_table: Simplify GetPhysicalAddr impl. | bunnei | 4 | -19/+6 | |
2020-04-17 | kernel: svc: Updates for new VMM. | bunnei | 1 | -488/+116 | |
- Includes removing some SVC impls. that are untested. | |||||
2020-04-17 | core: memory: Fix memory access on page boundaries. | bunnei | 1 | -6/+39 | |
- Fixes Super Smash Bros. Ultimate. | |||||
2020-04-17 | video_core: memory_manager: Updates for Common::PageTable changes. | bunnei | 2 | -67/+34 | |
2020-04-17 | core: memory: Updates for new VMM. | bunnei | 2 | -114/+53 | |
2020-04-17 | common: page_table: Update to use VirtualBuffer and simplify. | bunnei | 2 | -53/+18 | |
2020-04-17 | core: gdbstub: Updates for new VMM. | bunnei | 1 | -2/+2 | |
2020-04-17 | core: reporter: Updates for new VMM. | bunnei | 1 | -3/+5 | |
2020-04-17 | memory: cheat_engine: Updates for new VMM. | bunnei | 1 | -5/+8 | |
2020-04-17 | arm_test_common: Updates for new VMM. | bunnei | 1 | -6/+2 | |
2020-04-17 | kernel: process: Updates for new VMM. | bunnei | 2 | -79/+151 | |
2020-04-17 | service: pl_u: Update for new shared memory layout. | bunnei | 1 | -7/+5 | |
2020-04-17 | service: time: Update for new shared memory layout. | bunnei | 1 | -3/+2 | |
2020-04-17 | service: hid: Update for new shared memory layout. | bunnei | 1 | -3/+2 | |
2020-04-17 | service: irs: Update for new shared memory layout. | bunnei | 1 | -3/+3 | |
2020-04-17 | kernel: resource_limit: Reserve physical memory. | bunnei | 1 | -1/+6 | |
2020-04-17 | kernel: Initialize memory layout for new VMM. | bunnei | 2 | -0/+159 | |
2020-04-17 | core: system: Rename GetDeviceManager -> DeviceManager. | bunnei | 3 | -7/+7 | |
- More consistent with other system components. | |||||
2020-04-17 | kernel: transfer_memory: Refactor for new VMM. | bunnei | 2 | -130/+16 | |
2020-04-17 | core: Construct/Destruct DeviceMemory on Init/Shutdown. | bunnei | 1 | -4/+7 | |
2020-04-17 | kernel: shared_memory: Refactor for new VMM. | bunnei | 2 | -220/+58 | |
2020-04-17 | core: device_memory: Update to use VirtualBuffer class. | bunnei | 2 | -39/+12 | |
2020-04-17 | common: Add VirtualBuffer class, to abstract memory virtualization. | bunnei | 3 | -0/+112 | |
2020-04-17 | kernel: errors: Add ERR_OUT_OF_RESOURCES. | bunnei | 1 | -0/+1 | |
2020-04-17 | kernel: process_capability: Update to use Memory::PageTable. | bunnei | 2 | -23/+25 | |
2020-04-17 | kernel: memory: Add PageTable class, to manage process address space. | bunnei | 3 | -0/+1510 | |
2020-04-17 | kernel: memory: Add MemoryLayout class, to build physical memory layout. | bunnei | 2 | -0/+74 | |
2020-04-17 | kernel: memory: Add MemoryManager class, to manage page heaps. | bunnei | 3 | -0/+276 | |
2020-04-17 | kernel: memory: Add MemoryBlockManager class, to manage memory blocks. | bunnei | 3 | -0/+256 | |
2020-04-17 | kernel: memory: Add PageHeap class, to manage a heap of pages. | bunnei | 3 | -0/+483 | |
2020-04-17 | kernel: memory: Add PageLinkedList class, to manage a list of pages. | bunnei | 2 | -0/+94 | |
2020-04-17 | kernel: memory: Add system_control code, which will be used for ASLR support. | bunnei | 3 | -0/+61 | |
2020-04-17 | physical_memory: Add missing include for <vector>. | bunnei | 1 | -0/+2 | |
2020-04-17 | kernel: memory: Add MemoryBlock class, for managing memory blocks and their state. | bunnei | 2 | -0/+316 | |
2020-04-17 | kernel: memory: Add memory_types.h, for things that are commonly used in memory code. | bunnei | 2 | -0/+19 | |
2020-04-17 | kernel: memory: Add SlabHeap class, for managing memory heaps. | bunnei | 2 | -0/+162 | |
- This will be used for TLS pages, among other things. | |||||
2020-04-17 | kernel: memory: Add AddressSpaceInfo class, for managing the memory address space. | bunnei | 3 | -0/+166 | |
2020-04-17 | core: device_manager: Add a simple class to manage device RAM. | bunnei | 5 | -1/+118 | |
2020-04-17 | dynarmic: Enable strict alignment checks. | bunnei | 1 | -1/+4 | |
- Also add a missing include. | |||||
2020-04-17 | common: scope_exit: Implement mechanism for canceling a scope exit. | bunnei | 1 | -1/+8 | |
2020-04-17 | core: memory: Move to Core::Memory namespace. | bunnei | 37 | -98/+100 | |
- helpful to disambiguate Kernel::Memory namespace. | |||||
2020-04-17 | common: alignment: Add a helper function for generic alignment checking. | bunnei | 1 | -0/+7 | |
2020-04-17 | core: kernel: Add svc_types header to include SVC-specific types. | bunnei | 3 | -0/+70 | |
2020-04-17 | core: kernel: Move SVC to its own namesapce. | bunnei | 5 | -9/+9 | |
2020-04-17 | kernel: resource_limit: Improvements to implementation. | bunnei | 2 | -12/+50 | |
2020-04-17 | loader: nso: Fix loading of static objects to be properly sized and aligned. | bunnei | 1 | -19/+9 | |
2020-04-17 | common: common_funcs: Add a macro for defining enum flag operators. | bunnei | 1 | -0/+32 | |
2020-04-17 | process: SetupMainThread: Zero out argument on process start. | bunnei | 1 | -0/+2 | |
2020-04-17 | arm_interface: Ensure ThreadContext is zero'd out. | bunnei | 1 | -16/+16 | |
2020-04-17 | CMakeLists: Make missing declarations a compile-time error | Lioncash | 1 | -0/+1 | |
Ensures that our code always has its linkage explicit. | |||||
2020-04-17 | General: Resolve warnings related to missing declarations | Lioncash | 9 | -24/+25 | |
2020-04-17 | gdbstub: Fix some gdbstub jankiness | MerryMage | 1 | -4/+3 | |
1. Ensure that register information available to gdbstub is most up-to-date. 2. There's no reason to check for current_thread == thread when emitting a trap. Doing this results in random hangs whenever a step happens upon a thread switch. | |||||
2020-04-17 | key_manager: Resolve missing field initializer warning | Lioncash | 1 | -1/+2 | |
2020-04-17 | decode/memory: Resolve unused variable warning | Lioncash | 1 | -1/+1 | |
Only the first element of the returned pair is ever used. | |||||
2020-04-17 | decode/texture: Resolve unused variable warnings. | Lioncash | 1 | -5/+7 | |
Some variables aren't used, so we can remove these. Unfortunately, diagnostics are still reported on structured bindings even when annotated with [[maybe_unused]], so we need to unpack the elements that we want to use manually. | |||||
2020-04-17 | decode/texture: Collapse loop down into std::generate | Lioncash | 1 | -3/+1 | |
Same behavior, less code. | |||||
2020-04-17 | decode/texture: Eliminate trivial missing field initializer warnings | Lioncash | 1 | -3/+4 | |
We can just specify the initializers. | |||||
2020-04-17 | time_zone_manager: Resolve sign conversion warnings | Lioncash | 1 | -2/+2 | |
ttis and ats will never exceed the length of INT32_MAX in our case, so this is safe. | |||||
2020-04-17 | CMakeLists: Enable -Wmissing-declarations on Linux builds | Lioncash | 1 | -0/+1 | |
Allows catching cases where internal linkage isn't specified for helper functions when they should be marked as such. | |||||
2020-04-17 | hle_ipc: Remove std::size_t casts where applicable | Lioncash | 2 | -21/+23 | |
These were added in the change that enabled -Wextra on linux builds so as not to introduce interface changes in the same change as a build-system flag addition. Now that the flags are enabled, we can freely change the interface to make these unnecessary. | |||||
2020-04-17 | maxwell_3d: Initialize format attributes constant as one | ReinUsesLisp | 1 | -0/+4 | |
nouveau expects this to be true but it doesn't set it. | |||||
2020-04-17 | vk_compute_pass: Implement indexed quads | ReinUsesLisp | 5 | -12/+280 | |
Implement indexed quads (GL_QUADS used with glDrawElements*) with a compute pass conversion. The compute shader converts from uint8/uint16/uint32 indices to uint32. The format is passed through push constants to avoid having different variants of the same shader. - Used by Fast RMX - Used by Xenoblade Chronicles 2 (it still has graphical due to synchronization issues on Vulkan) | |||||
2020-04-16 | externals: Move LibreSSL linking to httplib. | Markus Wick | 2 | -11/+3 | |
Neither core nor web_services use OpenSSL nor LibreSSL. However they need to link them as it's a requirement of httplib. So let's declare this within httplib instead of core and web_services. | |||||
2020-04-16 | input_common: Use the CMake target instead of the variable. | Markus Wick | 1 | -1/+1 | |
2020-04-16 | buffer_cache: Return handles instead of pointer to handles | ReinUsesLisp | 14 | -228/+90 | |
The original idea of returning pointers is that handles can be moved. The problem is that the implementation didn't take that in mind and made everything harder to work with. This commit drops pointer to handles and returns the handles themselves. While it is still true that handles can be invalidated, this way we get an old handle instead of a dangling pointer. This problem can be solved in the future with sparse buffers. | |||||
2020-04-16 | decode/shift: Remove unused variable within Shift() | Lioncash | 1 | -1/+0 | |
Removes a redundant variable that is already satisfied by the IsFull() utility function. | |||||
2020-04-16 | surface_view: Add missing operator!= to ViewParams | Lioncash | 2 | -0/+5 | |
Provides logical symmetry to the interface. | |||||
2020-04-16 | surface_base: Make IsInside() a const member function | Lioncash | 1 | -2/+2 | |
This doesn't modify internal state, so this can be made const. | |||||
2020-04-16 | texture_cache/format_lookup_table: Fix incorrect green, blue, and alpha indices | Lioncash | 1 | -3/+3 | |
Previously these were all using the red component to derive the indices, which is definitely not intentional. | |||||
2020-04-16 | control_flow: Make use of std::move in TryInspectAddress() | Lioncash | 1 | -3/+3 | |
Eliminates redundant atomic reference count increments and decrements. | |||||
2020-04-16 | video_core: Amend doxygen comment references | Lioncash | 2 | -5/+5 | |
Fixes broken documentation references. | |||||
2020-04-16 | decode/image: Fix typo in assert in GetComponentSize() | Lioncash | 1 | -3/+3 | |
2020-04-16 | gl_query_cache: Resolve use-after-move in CachedQuery move assignment operator | Lioncash | 1 | -1/+1 | |
Avoids potential invalid junk data from being read. | |||||
2020-04-16 | decoder/image: Fix incorrect G24R8 component sizes in GetComponentSize() | Lioncash | 1 | -2/+2 | |
The components' sizes were mismatched. This corrects that. | |||||
2020-04-16 | gl_device: Mark stage_swizzle as constexpr | Lioncash | 1 | -1/+1 | |
Previously this was mutable even though it shouldn't be. | |||||
2020-04-16 | track: Eliminate redundant copies | Lioncash | 1 | -5/+6 | |
Two variables can be references, while two others can be std::moved. Makes for 4 less atomic reference count increments and decrements. | |||||
2020-04-16 | CMakeLists: Specify -Wextra on linux builds | Lioncash | 26 | -70/+93 | |
Allows reporting more cases where logic errors may exist, such as implicit fallthrough cases, etc. We currently ignore unused parameters, since we currently have many cases where this is intentional (virtual interfaces). While we're at it, we can also tidy up any existing code that causes warnings. This also uncovered a few bugs as well. | |||||
2020-04-15 | file_util: Early-exit in WriteArray and ReadArray if specified lengths are zero | Lioncash | 2 | -9/+33 | |
It's undefined behavior to pass a null pointer to std::fread and std::fwrite, even if the length passed in is zero, so we must perform the precondition checking ourselves. A common case where this can occur is when passing in the data of an empty std::vector and size, as an empty vector will typically have a null internal buffer. While we're at it, we can move the implementation out of line and add debug checks against passing in nullptr to std::fread and std::fwrite. | |||||
2020-04-15 | CMakeLists: Make -Wreorder a compile-time error | Lioncash | 4 | -5/+7 | |
This can result in silent logic bugs within code, and given the amount of times these kind of warnings are caused, they should be flagged at compile-time so no new code is submitted with them. | |||||
2020-04-15 | kernel/thread: Resolve -Wswitch warnings | Lioncash | 1 | -0/+2 | |
2020-04-15 | Texture Cache: Read current data when flushing a 3D segment. | Fernando Sahmkow | 1 | -0/+6 | |
This PR corrects flushing of 3D segments when data of other segments is mixed, this aims to preserve the data in place. | |||||
2020-04-15 | maxwell_to_vk: Add uint16 vertex formats | ReinUsesLisp | 1 | -0/+8 | |
2020-04-15 | maxwell_to_vk: Add missing breaks | ReinUsesLisp | 1 | -0/+2 | |
Avoid invalid fallbacks. | |||||
2020-04-15 | vk_blit_screen: Initialize all members in VkPipelineViewportStateCreateInfo | ReinUsesLisp | 1 | -0/+2 | |
When the dynamic state is specified, pViewports and pScissors are ignored, quoting the specification: pViewports is a pointer to an array of VkViewport structures, defining the viewport transforms. If the viewport state is dynamic, this member is ignored. That said, AMD's proprietary driver itself seem to read it regardless of what the specification says. | |||||
2020-04-15 | Texture Cache: Only do buffer copies on accurate GPU. (#3634) | Fernando Sahmkow | 1 | -1/+3 | |
This is a simple optimization as Buffer Copies are mostly used for texture recycling. They are, however, useful when games abuse undefined behavior but most 3D APIs forbid it. | |||||
2020-04-15 | service: time: Implement CalculateStandardUserSystemClockDifferenceByUser. | bunnei | 3 | -1/+25 | |
- Used by Animal Crossing: New Horizons. | |||||
2020-04-15 | Revert "gl_shader_decompiler: Implement merges with bitfieldInsert" | ReinUsesLisp | 1 | -2/+4 | |
This reverts commit 05cf27083608bebd3ee4c38f2f948c8f2030f881. Apparently the first approach using floats instead of bitfieldInert worked better for Fire Emblem: Three Houses. Reverting to get that behavior back. | |||||
2020-04-15 | shader/arithmetic: Add FCMP_CR variant | ReinUsesLisp | 2 | -3/+6 | |
Adds another variant of FCMP. | |||||
2020-04-14 | gl_rasterizer: Implement constant vertex attributes | ReinUsesLisp | 2 | -2/+6 | |
Credits go to gdkchan from Ryujinx for finding constant attributes are used in retail games. | |||||
2020-04-14 | file_sys: patch_manager: Return early when there are no layers to apply. | bunnei | 1 | -0/+6 | |
2020-04-14 | service: friend: Stub IFriendService::GetBlockedUserListIds. | bunnei | 1 | -1/+10 | |
- This is safe to stub, as there should be no adverse consequences from reporting no blocked users. | |||||
2020-04-14 | vk_rasterizer: Default to 1 viewports with a size of 0 | ReinUsesLisp | 1 | -3/+6 | |
Silence validation layer errors. | |||||
2020-04-14 | gl_shader_cache: Use CompileDepth::FullDecompile on GLSL | ReinUsesLisp | 1 | -1/+3 | |
From my testing on a Splatoon 2 shader that takes 3800ms on average to compile changing to FullDecompile reduces it to 900ms on average. The shader decoder will automatically fallback to a more naive method if it can't use full decompile. | |||||
2020-04-14 | renderer_vulkan: Integrate Nvidia Nsight Aftermath on Windows | ReinUsesLisp | 9 | -22/+360 | |
Adds optional support for Nsight Aftermath. It is enabled through ENABLE_NSIGHT_AFTERMATH in cmake. A path to the SDK has to be provided by the environment variable NSIGHT_AFTERMATH_SDK. Nsight Aftermath allows an application to generate "minidumps" of the GPU state when a device loss happens. By analysing these on Nsight we can know what a game was doing and why it triggered a device loss. The dump is generated inside %APPDATA%\yuzu\log\gpucrash and this directory is deleted every time a new instance is initialized with Nsight enabled. To enable it on yuzu there has a to be a driver and device capable of running Nsight Aftermath on Vulkan. That means only Turing based GPUs on the latest stable driver, beta drivers won't work for now. It is manually enabled in Configuration>Debug>Enable Graphics Debugging because when using all debugging capabilities there is a runtime cost. | |||||
2020-04-14 | yuzu/main: Add better popup texts and remove duplicated actions | FearlessTobi | 3 | -64/+18 | |
Makes popup texts more compact and clear and also links our quickstart guide now. Also removes OnMenuSelectEmulatedDirectory from the File dropdown, as the action already exists in the Filesystem tab and provides better visual feedback there. | |||||
2020-04-13 | gl_texture_cache: Fix layered texture attachment base level | ReinUsesLisp | 1 | -1/+1 | |
The base level is already included in the texture view. If we specify the base level in the texture again, this will end up in the incorrect level and potentially out of bounds. | |||||
2020-04-13 | renderer_vulkan: Remove Nvidia checkpoints | ReinUsesLisp | 4 | -34/+0 | |
2020-04-13 | renderer_vulkan: Catch device losses in more places | ReinUsesLisp | 3 | -21/+29 | |
2020-04-13 | gl_rasterizer: Implement line widths and smooth lines | ReinUsesLisp | 5 | -2/+33 | |
Implements "legacy" features from OpenGL present on hardware such as smooth lines and line width. | |||||
2020-04-13 | gl_shader_decompiler: Implement merges with bitfieldInsert | ReinUsesLisp | 1 | -4/+2 | |
This also fixes Turing issues but it avoids doing more bitcasts. This should improve the generated code while also avoiding more points where compilers can flush floats. | |||||
2020-04-12 | gl_shader_decompiler: Improve generated code in HMergeH* | ReinUsesLisp | 1 | -6/+8 | |
Avoiding bitwise expressions, this fixes Turing issues in shaders using half float merges that affected several games. | |||||
2020-04-12 | shader/video: Partially implement VMNMX | ReinUsesLisp | 3 | -0/+116 | |
Implements the common usages for VMNMX. Inputs with a different size than 32 bits are not supported and sign mismatches aren't supported either. VMNMX works as follows: It grabs Ra and Rb and applies a maximum/minimum on them (this is defined by .MX), having in mind the input sign. This result can then be saturated. After the intermediate result is calculated, it applies another operation on it using Rc. These operations are merges, accumulations or another min/max pass. This instruction allows to implement with a more flexible approach GCN's min3 and max3 instructions (for instance). | |||||
2020-04-12 | video_core: Add MSAA registers in 3D engine and TIC | ReinUsesLisp | 2 | -6/+76 | |
This adds the registers used for multisampling. It doesn't implement anything for now. | |||||
2020-04-11 | texture_cache: Remove preserve_contents | ReinUsesLisp | 3 | -47/+31 | |
preserve_contents was always true. We can't assume we don't have to preserve clears because scissored and color masked clears exist. This removes preserve_contents and assumes it as true at all times. | |||||
2020-04-11 | renderer_vulkan: Drop Vulkan-Hpp | ReinUsesLisp | 51 | -2272/+2881 | |
2020-04-10 | Buffer queue: Correct behavior of free buffer. | Fernando Sahmkow | 2 | -9/+33 | |
This corrects the behavior of free buffer after witnessing it in an unrelated hardware test. I haven't found any games affected by it but in name of better accuracy we'll correct such behavior. | |||||
2020-04-10 | service/vi: Partially implement BufferQueue disconnect | ReinUsesLisp | 3 | -10/+44 | |
2020-04-10 | shader/texture: Remove type mismatches management from shader decoder | ReinUsesLisp | 1 | -14/+0 | |
Since commit e22816a5bb we handle type mismatches from the CPU. We don't need to hack our shader decoder due to game bugs anymore. Removed in this commit. | |||||
2020-04-09 | astc: Hard code bit depth changes to 8 and use fast replicate | ReinUsesLisp | 1 | -21/+15 | |
2020-04-09 | common/file_util: Allow access to files on network shares | Ben Russell | 1 | -1/+8 | |
On Windows, network shares use paths like \\server\share\file which were being broken by FileUtil::SanitizePath() removing double slashes. Changed the code in SanitizePath to permit a double-backslash if it occurs at the start of a filepath (on Windows only). | |||||
2020-04-09 | astc: Use boost's static_vector to avoid heap allocations | ReinUsesLisp | 1 | -10/+14 | |
2020-04-09 | astc: Implement a fast precompiled alternative for Replicate | ReinUsesLisp | 1 | -2/+57 | |
2020-04-09 | astc: Move Replicate to a constexpr LUT when possible | ReinUsesLisp | 1 | -8/+38 | |
2020-04-09 | astc: Make InputBitStream constexpr | ReinUsesLisp | 1 | -11/+11 | |
2020-04-09 | astc: OutputBitStream style changes and make it constexpr | ReinUsesLisp | 1 | -32/+26 | |
2020-04-09 | gl_texture_cache: Attach view instead of base texture for layered attachments | ReinUsesLisp | 1 | -2/+2 | |
This way we are not ignoring the base layer of the current texture. | |||||
2020-04-09 | VkRasterizer: Eliminate Legacy code. | Fernando Sahmkow | 1 | -1/+0 | |
2020-04-09 | Memory: Correct GCC errors. | Fernando Sahmkow | 2 | -2/+3 | |
2020-04-08 | Memory: Address Feedback. | Fernando Sahmkow | 4 | -4/+75 | |
2020-04-08 | GPUMemoryManager: Improve safety of memory reads. | Fernando Sahmkow | 3 | -55/+47 | |
2020-04-08 | Place SL and SR in the right most column. | Kewlan | 1 | -2/+2 | |
2020-04-08 | qt/bootmanager: Remove unnecessary glBindFramebuffer | ReinUsesLisp | 1 | -1/+0 | |
Presentation context always has GL_DRAW_FRAMEBUFFER_BINDING as zero. There is no need to bind the default framebuffer constantly. According to Nsight this was using ~0.7ms per frame and it broke renderdoc captures. | |||||
2020-04-08 | video_core/textures: Move GetMaxAnisotropy to cpp file | ReinUsesLisp | 2 | -19/+23 | |
2020-04-08 | video_core/texture: Use a LUT to convert sRGB texture borders | ReinUsesLisp | 3 | -9/+61 | |
This is a reversed look up table extracted from https://gist.github.com/rygorous/2203834#file-gistfile1-cpp-L41-L62 that is used in https://github.com/devkitPro/deko3d/blob/04d4e9e587fa3dc5447b43d273bc45f440226e41/source/maxwell/tsc_generate.cpp#L38 Games usually bind 0xFD expecting a float texture border of 1.0f. The conversion previous to this commit was multiplying the uint8 sRGB texture border color by 255. This is close to 1.0f but when that difference matters, some graphical glitches appear. This look up table is manually changed in the edges, clamping towards 0.0f and 1.0f. While we are at it, move this logic to its own translation unit. | |||||
2020-04-07 | Addressed feedback: switched to snake case and fixed clang-format errors | SilverBeamx | 2 | -5/+6 | |
2020-04-07 | Addressed feedback: removed CMake hack in favor of building the necessary strings via the supplied title format | SilverBeamx | 2 | -2/+14 | |
2020-04-07 | yuzu: Drop SDL2 and Qt frontend Vulkan requirements | ReinUsesLisp | 16 | -314/+371 | |
Create Vulkan instances and surfaces from the Vulkan backend. | |||||
2020-04-07 | address nit. | Nguyen Dac Nam | 1 | -1/+1 | |
2020-04-07 | renderer_vulkan: Query device names from the backend | ReinUsesLisp | 4 | -35/+79 | |
2020-04-07 | common/dynamic_library: Import and adapt helper from Dolphin | ReinUsesLisp | 3 | -0/+183 | |
2020-04-07 | shader/conversion: Implement I2I sign extension, saturation and selection | ReinUsesLisp | 2 | -14/+101 | |
Reimplements I2I adding sign extension, saturation (clamp source value to the destination), selection and destination sizes that are not 32 bits wide. It doesn't implement CC yet. | |||||
2020-04-07 | Apply suggestions from code review | Nguyen Dac Nam | 1 | -9/+9 | |
Co-Authored-By: Rodrigo Locatti <reinuseslisp@airmail.cc> | |||||
2020-04-07 | file_sys: fix LayeredFS error when loading some games made with… (#3602) | enler | 1 | -1/+2 | |
* fix LayeredFS error when loading some games made with the Unity | |||||
2020-04-06 | Clang Format. | Fernando Sahmkow | 1 | -6/+3 | |
2020-04-06 | Shader/Pipeline Cache: Use VAddr instead of physical memory for addressing. | Fernando Sahmkow | 7 | -87/+62 | |
2020-04-06 | Query Cache: Use VAddr instead of physical memory for adressing. | Fernando Sahmkow | 3 | -23/+22 | |
2020-04-06 | Buffer Cache: Use vAddr instead of physical memory. | Fernando Sahmkow | 12 | -106/+254 | |
2020-04-06 | Texture Cache: Use vAddr instead of physical memory for caching. | Fernando Sahmkow | 5 | -130/+81 | |
2020-04-06 | GPU: Setup Flush/Invalidate to use VAddr instead of CacheAddr | Fernando Sahmkow | 14 | -67/+77 | |
2020-04-06 | shader_decode: SULD.D using std::pair instead of out parameter | namkazy | 2 | -19/+15 | |
2020-04-06 | shader_decode: SULD.D avoid duplicate code block. | namkazy | 1 | -39/+2 | |
2020-04-06 | shader_decode: SULD.D fix conversion error. | namkazy | 1 | -3/+3 | |
2020-04-06 | shader_decode: SULD.D implement bits64 and reverse shader ir init method to removed shader stage. | namkazy | 5 | -46/+105 | |
2020-04-06 | shader/memory: Implement RED.E.ADD | ReinUsesLisp | 5 | -28/+99 | |
Implements a reduction operation. It's an atomic operation that doesn't return a value. This commit introduces another primitive because some shading languages might have a primitive for reduction operations. | |||||
2020-04-06 | shader/memory: Add "using std::move" | ReinUsesLisp | 1 | -11/+13 | |
2020-04-06 | shader/memory: Minor fixes in ATOM | ReinUsesLisp | 1 | -32/+30 | |
2020-04-06 | yuzu: Fixes to game list sorting | FearlessTobi | 2 | -8/+22 | |
Should fix citra-emu/citra#4593. As the issue might not be entirely clear, I'll offer a short explanation from what I understood from it and found from experimentation. Currently yuzu offers the user the option to change the text that's displayed in the "Name" column in the game list. Generally, it is expected that the items are sorted based on the displayed text, but yuzu would sort them by title instead. Made it so that an access to SortRole returns the same as DisplayRole. There shouldn't be any UI changes, only change in behaviour. Also fixes a bug with directory sorting, where having the directories out of order would enable you to try to "move up" to the addDirectory button, which would crash the emulator. Co-Authored-By: Vitor K <vitor-k@users.noreply.github.com> | |||||
2020-04-05 | silent warning (conversion error) | namkazy | 1 | -3/+2 | |
2020-04-05 | shader_decode: SULD.D -> SINT actually same as UNORM. | namkazy | 1 | -5/+4 | |
2020-04-05 | shader_decode: SULD.D fix decode SNORM component | namkazy | 1 | -10/+9 | |
2020-04-05 | clang-format | namkazy | 1 | -2/+2 | |
2020-04-05 | shader_decode: get sampler descriptor from registry. | namkazy | 1 | -77/+93 | |
2020-04-05 | yuzu/configuration: Only assert that all buttons exist when we are handling the click for a button device | FearlessTobi | 2 | -14/+16 | |
This fixes failed assertions that were present in yuzu master code for 18 months. | |||||
2020-04-05 | yuzu/configure_input_simple: Fix "Docked Joycons" controller profile | FearlessTobi | 1 | -4/+5 | |
This was incorrectly using PlayerIndex 1 when calling the ConfigureDialog. | |||||
2020-04-05 | tweaking. | namkazy | 1 | -3/+3 | |
2020-04-05 | clang-format | Nguyen Dac Nam | 1 | -2/+1 | |
2020-04-05 | cleanup unuse params | namkazy | 1 | -8/+6 | |
2020-04-05 | cleanup debug code. | namkazy | 1 | -14/+3 | |
2020-04-05 | reimplement get component type, uncomment mistaken code | namkazy | 1 | -18/+93 | |
2020-04-05 | remove disable optimize | namkazy | 1 | -2/+0 | |
2020-04-05 | [wip] reimplement SULD.D | namkazy | 1 | -22/+229 | |
2020-04-05 | add shader stage when init shader ir | namkazy | 4 | -9/+12 | |
2020-04-05 | clang-fix | Nguyen Dac Nam | 1 | -1/+1 | |
2020-04-05 | shader: image - import PredCondition | Nguyen Dac Nam | 1 | -0/+1 | |
2020-04-05 | shader: SULD.D bits32 implement more complexer method. | Nguyen Dac Nam | 1 | -4/+28 | |
2020-04-05 | shader: SULD.D import StoreType | Nguyen Dac Nam | 1 | -0/+1 | |
2020-04-05 | shader: implement SULD.D bits32 | Nguyen Dac Nam | 1 | -11/+27 | |
2020-04-04 | shader/other: Add error message for some S2R registers | ReinUsesLisp | 1 | -0/+6 | |
2020-04-04 | shader_bytecode: Rename MOV_SYS to S2R | ReinUsesLisp | 2 | -5/+5 | |
2020-04-04 | shader_bytecode: Add encoding for BAR | ReinUsesLisp | 1 | -0/+2 | |
2020-04-04 | shader_ir: Add error message for EXIT.FCSM_TR | ReinUsesLisp | 1 | -0/+3 | |
2020-04-04 | shader_bytecode: Add encoding for VOTE.VTG | ReinUsesLisp | 1 | -0/+2 | |
2020-04-04 | Revert "Merge pull request #3499 from ReinUsesLisp/depth-2d-array" | ReinUsesLisp | 1 | -4/+2 | |
This reverts commit 41905ee467b24172ba93e3fcd665bb4e4806a45a, reversing changes made to 35145bd529c3517e2c366efc764a762092d96edf. It causes regressions in several games. | |||||
2020-04-02 | shader/memory: Silence no return value warning | ReinUsesLisp | 1 | -0/+3 | |
Silences a warning about control paths not all returning a value. | |||||
2020-04-02 | shader_decompiler: Remove FragCoord.w hack and change IPA implementation | ReinUsesLisp | 4 | -68/+74 | |
Credits go to gdkchan and Ryujinx. The pull request used for this can be found here: https://github.com/Ryujinx/Ryujinx/pull/1082 yuzu was already using the header for interpolation, but it was missing the FragCoord.w multiplication described in the linked pull request. This commit finally removes the FragCoord.w == 1.0f hack from the shader decompiler. While we are at it, this commit renames some enumerations to match Nvidia's documentation (linked below) and fixes component declaration order in the shader program header (z and w were swapped). https://github.com/NVIDIA/open-gpu-doc/blob/master/Shader-Program-Header/Shader-Program-Header.html | |||||
2020-04-01 | gl_texture_cache: Fix software ASTC fallback | ReinUsesLisp | 1 | -7/+12 | |
2020-04-01 | vk_device: Add missing ASTC queries | ReinUsesLisp | 1 | -14/+29 | |
2020-04-01 | video_core: Use native ASTC when available | ReinUsesLisp | 10 | -281/+176 | |
2020-04-01 | gl_device: Detect if ASTC is reported and expose it | ReinUsesLisp | 2 | -0/+31 | |
2020-04-01 | common: Port some changes from dolphin (#5127) | Vitor K | 2 | -15/+16 | |
* IOFile: Make the move constructor and move assignment operator noexcept Certain parts of the standard library try to determine whether or not a transfer operation should either be a copy or a move. The prevalent notion of move constructors/assignment operators is that they should not throw, they simply move an already existing resource somewhere else. This is typically done with 'std::move_if_noexcept'. Like the name says, if a type's move constructor is noexcept, then the functions retrieves an r-value reference (for move semantics), or an l-value (for copy semantics) if it is not noexcept. As IOFile deletes the copy constructor and copy assignment operators, using IOFile with certain parts of the standard library can fail in unexcepted ways (especially when used with various container implementations). This prevents that. * fix various instances of -1 being assigned to unsigned types * do not assign in conditional statements * File/IOFile: Check _tfopen_s properly * common/file_util.cpp: address review comments Co-authored-by: Lioncash <mathew1800@gmail.com> Co-authored-by: Shawn Hoffman <godisgovernment@gmail.com> Co-authored-by: Sepalani <sepalani@hotmail.fr> | |||||
2020-04-01 | renderer_vulkan/wrapper: Add vkEnumerateInstanceExtensionProperties wrapper | ReinUsesLisp | 2 | -0/+17 | |
2020-04-01 | renderer_vulkan/wrapper: Add command buffer handle | ReinUsesLisp | 1 | -0/+192 | |
2020-04-01 | renderer_vulkan/wrapper: Add physical device handle | ReinUsesLisp | 2 | -0/+123 | |
2020-04-01 | renderer_vulkan/wrapper: Add device handle | ReinUsesLisp | 2 | -0/+277 | |
2020-04-01 | renderer_vulkan/wrapper: Add swapchain handle | ReinUsesLisp | 2 | -0/+15 | |
2020-04-01 | renderer_vulkan/wrapper: Add fence handle | ReinUsesLisp | 1 | -0/+17 | |
2020-04-01 | renderer_vulkan/wrapper: Add device memory handle | ReinUsesLisp | 1 | -0/+15 | |
2020-04-01 | renderer_vulkan/wrapper: Add pool handles | ReinUsesLisp | 2 | -0/+47 | |
2020-04-01 | renderer_vulkan/wrapper: Add buffer and image handles | ReinUsesLisp | 2 | -0/+24 | |
2020-04-01 | renderer_vulkan/wrapper: Add queue handle | ReinUsesLisp | 2 | -0/+36 | |
2020-04-01 | renderer_vulkan/wrapper: Add instance handle | ReinUsesLisp | 2 | -0/+87 | |
2020-04-01 | capsrv: Split Capture services into individual files and stub GetAlbumContentsFileListForApplication (#3571) | Morph | 15 | -151/+536 | |
* Organize capture services into individual files * Stub GetAlbumContentsFileListForApplication * Address feedback | |||||
2020-03-31 | gl_rasterizer: Mark cleared textures as dirty | ReinUsesLisp | 1 | -2/+5 | |
Fixes a potential edge case where cleared textures read from the CPU were not flushed. | |||||
2020-03-31 | clang-format | Nguyen Dac Nam | 1 | -2/+1 | |
2020-03-31 | shader_decode: fix by suggestion | Nguyen Dac Nam | 1 | -27/+22 | |
2020-03-30 | Frontend: Don't call DoneCurrent if the context isnt already current | James Rowe | 2 | -2/+13 | |
2020-03-30 | clang-format | namkazy | 1 | -3/+3 | |
2020-03-30 | gl_decompiler: min/max op not implement yet | namkazy | 1 | -0/+4 | |
2020-03-30 | shader_decode: ATOM/ATOMS: add function to avoid code repetition | namkazy | 2 | -70/+53 | |
2020-03-30 | shader_decode: merge GlobalAtomicOp to AtomicOp | namkazy | 1 | -13/+1 | |
2020-03-30 | shader_decode: implement ATOM operation for S32 and U32 | Nguyen Dac Nam | 1 | -6/+39 | |
2020-03-30 | clang-format | namkazy | 1 | -3/+3 | |
2020-03-30 | shader_decode: implement ATOMS instr partial. | Nguyen Dac Nam | 1 | -10/+42 | |
2020-03-30 | vk_decompiler: add atomic op and handler function. | Nguyen Dac Nam | 1 | -6/+25 | |
2020-03-30 | gl_decompiler: add atomic op | Nguyen Dac Nam | 1 | -0/+16 | |
2020-03-30 | shader: node - update correct comment | Nguyen Dac Nam | 1 | -15/+15 | |
2020-03-30 | shader_decode: add Atomic op for common usage | Nguyen Dac Nam | 1 | -1/+15 | |
2020-03-29 | Re-order the shoulder buttons both in the configuration menu, and in the code. | Kewlan | 1 | -36/+36 | |
2020-03-28 | shader_bytecode: Fix I2I_IMM encoding | ReinUsesLisp | 1 | -1/+1 | |
2020-03-28 | renderer_vulkan/wrapper: Address feedback | ReinUsesLisp | 1 | -3/+24 | |
2020-03-28 | shader/lea: Simplify generated LEA code | ReinUsesLisp | 1 | -3/+2 | |
2020-03-28 | yuzu: fix the stuck in fullscreen mode bug | FearlessTobi | 1 | -0/+8 | |
Co-Authored-By: Valentin Vanelslande <vvanelslandedev@gmail.com> | |||||
2020-03-27 | shader/lea: Fix op_a and op_b usages | ReinUsesLisp | 1 | -2/+2 | |
They were swapped. | |||||
2020-03-27 | shader/lea: Remove const and use move when possible | ReinUsesLisp | 1 | -11/+5 | |
2020-03-27 | Set render window to also accept focus via tabbing (Qt::StrongFocus) (#5089) | Vitor K | 1 | -1/+1 | |
2020-03-27 | services: hid: Stub InitializeSevenSixAxisSensor. | bunnei | 2 | -1/+9 | |
- Used by Super Smash Bros. Ultimate v7.0.0. | |||||
2020-03-27 | services: time: Implement CalculateSpanBetween. | bunnei | 3 | -1/+31 | |
- Used by Super Smash Bros. Ultimate. | |||||
2020-03-27 | am: Implement VR related APIs | perillamint | 2 | -3/+42 | |
Implement (and stub) VR related APIs in AM sysmodule. This fixes issue #2938 | |||||
2020-03-27 | renderer_vulkan/wrapper: Add owning handles | ReinUsesLisp | 1 | -0/+18 | |
2020-03-27 | renderer_vulkan/wrapper: Add pool allocations owning templated class | ReinUsesLisp | 1 | -0/+81 | |
2020-03-27 | renderer_vulkan/wrapper: Add owning handle templated class | ReinUsesLisp | 1 | -0/+144 | |
2020-03-27 | renderer_vulkan/wrapper: Add destroy and free overload set | ReinUsesLisp | 2 | -0/+133 | |
2020-03-27 | renderer_vulkan/wrapper: Add dispatch table and loaders | ReinUsesLisp | 2 | -0/+283 | |
2020-03-27 | renderer_vulkan/wrapper: Add exception class | ReinUsesLisp | 2 | -0/+34 | |
2020-03-27 | renderer_vulkan/wrapper: Add ToString function for VkResult | ReinUsesLisp | 3 | -0/+91 | |
2020-03-27 | renderer_vulkan/wrapper: Add Vulakn wrapper and a span helper | ReinUsesLisp | 2 | -0/+84 | |
The intention behind a Vulkan wrapper is to drop Vulkan-Hpp. The issues with Vulkan-Hpp are: - Regular breaks of the API. - Copy constructors that do the same as the aggregates (fixed recently) - External dynamic dispatch that is hard to remove - Alias KHR handles with non-KHR handles making it impossible to use smart handles on Vulkan 1.0 instances with extensions that were included on Vulkan 1.1. - Dynamic dispatchers silently change size depending on preprocessor definitions. Different files will have different dispatch definitions, generating all kinds of hard to debug memory issues. In other words, Vulkan-Hpp is not "production ready" for our needs and this wrapper aims to replace it without losing RAII and exception safety. | |||||
2020-03-27 | engines/const_buffer_engine_interface: Store image format type | ReinUsesLisp | 1 | -4/+10 | |
This information is required to properly implement SULD.B. It might also be handy for all image operations, since it would allow us to implement them on devices that require the image format to be specified (on desktop, this would be AMD on OpenGL and Intel on OpenGL and Vulkan). | |||||
2020-03-27 | maxwell_to_vk: implement signedscaled vertex formats | Dan | 1 | -0/+20 | |
2020-03-26 | services: ldr: Fix MemoryState for read/write regions of NROs. | bunnei | 1 | -5/+15 | |
- Fixes #3541, used by Final Fantasy VIII Remastered. | |||||
2020-03-26 | Address review and fix broken yuzu-tester build | James Rowe | 11 | -102/+83 | |
2020-03-26 | shader/conversion: Fix F2F rounding operations with different sizes | ReinUsesLisp | 1 | -5/+10 | |
Rounding operations only matter when the conversion size of source and destination is the same, i.e. .F16.F16, .F32.F32 and .F64.F64. When there is a mismatch (.F16.F32), these bits are used for IEEE rounding, we don't emulate this because GLSL and SPIR-V don't support configuring it per operation. | |||||
2020-03-26 | gl_rasterizer: Update stencil test regardless of it being disabled | ReinUsesLisp | 1 | -5/+1 | |
2020-03-26 | gl_rasterizer: Synchronize stencil testing on clears | ReinUsesLisp | 1 | -0/+1 | |
2020-03-25 | Frontend/GPU: Refactor context management | James Rowe | 29 | -418/+361 | |
Changes the GraphicsContext to be managed by the GPU core. This eliminates the need for the frontends to fool around with tricky MakeCurrent/DoneCurrent calls that are dependent on the settings (such as async gpu option). This also refactors out the need to use QWidget::fromWindowContainer as that caused issues with focus and input handling. Now we use a regular QWidget and just access the native windowHandle() directly. Another change is removing the debug tool setting in FrameMailbox. Instead of trying to block the frontend until a new frame is ready, the core will now take over presentation and draw directly to the window if the renderer detects that its hooked by NSight or RenderDoc Lastly, since it was in the way, I removed ScopeAcquireWindowContext and replaced it with a simple subclass in GraphicsContext that achieves the same result | |||||
2020-03-23 | sm/controller: Increase PointerBufferSize | FearlessTobi | 1 | -1/+1 | |
This increases the PointerBufferSize as a lager one is required by some services. This change is still not hw-accurate, but it is proven to work in Ryujinx. Instead of using a hardcoded size, we should figure out the specific values for each service in the future. Some of them can be taken from Atmosphere: https://github.com/Atmosphere-NX/Atmosphere/search?q=PointerBufferSize. | |||||
2020-03-23 | audio_core: Accept Audren REV8 | FearlessTobi | 1 | -1/+1 | |
According to Ryujinx, REV8 only added changes on Performance buffer and Wavebuffer DSP command generation. As we don't support any of those, we can just increment the revision number for now. | |||||
2020-03-23 | xmad: fix clang build error | makigumo | 1 | -4/+5 | |
2020-03-22 | apply replay logic to all writes. remove replay from MacroInterpreter::Send (@fincs) | namkazy | 2 | -12/+9 | |
2020-03-22 | core/web_browser: Allow WebApplet to exit gracefully when an error occurs | FearlessTobi | 1 | -0/+6 | |
Currently, yuzu just freezes when an error occurs while Initializing the WebApplet. From a user perspective, this obviously isn't great as the game just softlocks. With this change, yuzu will call the Finalize method, so to the game it seems like as the user just exited the WebApplet normally. This works around https://github.com/yuzu-emu/yuzu/issues/2852. | |||||
2020-03-22 | maxwell_3d: change declaration order | namkazy | 1 | -1/+3 | |
2020-03-22 | maxwell_3d: init shadow_state | namkazy | 1 | -0/+2 | |
2020-03-22 | gl_rasterizer: Use transformed viewport for depth ranges | ReinUsesLisp | 1 | -4/+6 | |
Implement depth ranges using the transformed viewport instead of the generic one. This matches the current Vulkan implementation but doesn't support negative depth ranges. An update to glad is required for this. | |||||
2020-03-22 | maxwell_3d: this seem more correct. | namkazy | 1 | -2/+2 | |
2020-03-22 | maxwell_3d: update comments for shadow ram usage | namkazy | 3 | -2/+6 | |
2020-03-22 | marco_interpreter: write hw value when shadow ram requested | Nguyen Dac Nam | 1 | -0/+6 | |
2020-03-22 | maxwell_3d: track shadow ram ctrl and hw reg value | Nguyen Dac Nam | 1 | -0/+10 | |
2020-03-22 | maxwell_3d: implement MME shadow RAM | Nguyen Dac Nam | 1 | -1/+14 | |
2020-03-19 | set: implement GetRegionCode | Dan | 8 | -9/+72 | |
2020-03-19 | vk_texture_cache: Silence misc warnings | ReinUsesLisp | 1 | -3/+3 | |
2020-03-19 | vk_staging_buffer_pool: Silence unused constant warning | ReinUsesLisp | 1 | -1/+1 | |
2020-03-19 | vk_rasterizer: Remove unused variable | ReinUsesLisp | 1 | -2/+0 | |
2020-03-19 | vk_pipeline_cache: Remove unused variable | ReinUsesLisp | 1 | -1/+0 | |
2020-03-19 | maxwell_to_vk: Sielence -Wswitch warning | ReinUsesLisp | 1 | -0/+2 | |
2020-03-19 | gl_shader_decompiler: Remove deprecated function and its usages | ReinUsesLisp | 1 | -11/+8 | |
2020-03-19 | gl_rasterizer: Silence misc warnings | ReinUsesLisp | 1 | -7/+2 | |
2020-03-19 | kepler_compute: Remove unused variables | ReinUsesLisp | 1 | -8/+0 | |
2020-03-18 | time_zone_content_manager: Fix out of bounds read | ReinUsesLisp | 1 | -1/+1 | |
There were cases where raw_data didn't contain enough space to hold the zero terminator. This was caught with -fsanitize=address. | |||||
2020-03-18 | input_common/udp: Fix clang build issues | ReinUsesLisp | 1 | -1/+2 | |
2020-03-18 | astc: Fix clang build issues | ReinUsesLisp | 1 | -12/+12 | |
2020-03-18 | gl_shader_decompiler: Don't redeclare gl_VertexID and gl_InstanceID | ReinUsesLisp | 1 | -8/+0 | |
2020-03-17 | yuzu: Save sound output mode and set it to Stereo by default | FearlessTobi | 3 | -0/+7 | |
2020-03-17 | bcat: Disable Boxcat backend by default | FearlessTobi | 2 | -2/+2 | |
This commit disables the Boxcat backend by default for new users of yuzu. There's several reasons as to why this is done: 1. Boxcat currently only actually has an impact on 3 games and doesn't influence any core mechanics of them 2. It causes a plethora of issues when enabled such as games like Crash Team Racing, Diablo 3 and Tales of Vesperia not booting at all or hanging 3. It causes https://github.com/yuzu-emu/yuzu/issues/2957 to happen. This makes the configuration menu totally unusable for many Linux users of yuzu I think those points show that currently the negative impact of Boxcat outweighs its benefits and should therefore be disabled by default. For users who are eager to use the extra features provided by it, they can still just turn it on in the settings. | |||||
2020-03-17 | input_common/udp: Fix Linux build by using a backwards compatible way of error checking | FearlessTobi | 1 | -1/+1 | |
Should fix https://github.com/yuzu-emu/yuzu/issues/3487. error_code::failed is a function which has been introduced in Boost 1.69. This version of boost hasn't landed in most major distros yet. | |||||
2020-03-17 | gdbstub: small logic bug fix with defer_start | Gauvain "GovanifY" Roussel-Tarbouriech | 1 | -2/+4 | |
2020-03-17 | gdbstub: Ensure gdbstub doesn't drop packets crucial to initialization | Gauvain "GovanifY" Roussel-Tarbouriech | 3 | -2/+16 | |
2020-03-16 | renderer_opengl: Move some logic to an anonymous namespace | ReinUsesLisp | 1 | -151/+151 | |
2020-03-16 | renderer_opengl: Detect Nvidia Nsight as a debugging tool | ReinUsesLisp | 3 | -7/+22 | |
Use getenv to detect Nsight. | |||||
2020-03-16 | gl_shader_decompiler: Implement legacy varyings | ReinUsesLisp | 1 | -6/+57 | |
Legacy varyings are special attributes carried over in hardware from the OpenGL 1 and OpenGL 2 days. These were generally used instead of the generic attributes we use today. They are deprecated or removed from most APIs, but Nvidia still ships them in hardware. To implement these, this commit maps them 1:1 to OpenGL compatibility. | |||||
2020-03-16 | shader/shader_ir: Track usage in input attribute and of legacy varyings | ReinUsesLisp | 3 | -34/+64 | |
2020-03-16 | shader/shader_ir: Fix clip distance usage stores | ReinUsesLisp | 1 | -2/+1 | |
2020-03-16 | shader/shader_ir: Change declare output attribute to a switch | ReinUsesLisp | 1 | -9/+9 | |
2020-03-15 | maxwell_to_vk: Implement RG32 and RGB32 integer vertex formats | ReinUsesLisp | 1 | -0/+4 | |
2020-03-15 | vk_rasterizer: Implement layered clears | ReinUsesLisp | 1 | -2/+2 | |
2020-03-15 | vk_shader_decompiler: fix linux build | makigumo | 1 | -1/+1 | |
2020-03-15 | vk_rasterizer: Fix vertex range assert | ReinUsesLisp | 1 | -1/+1 | |
End can be equal to start in CalculateVertexArraysSize. This is quite common when the vertex size is zero. | |||||
2020-03-15 | vk_rasterizer: Reimplement clears with vkCmdClearAttachments | ReinUsesLisp | 4 | -45/+53 | |
2020-03-14 | renderer_opengl: Keep presentation frames in lock-step when GPU debugging. | bunnei | 1 | -1/+32 | |
- Fixes renderdoc with OpenGL renderer. | |||||
2020-03-14 | gl_device: Add option to check GL_EXT_debug_tool. | bunnei | 2 | -0/+6 | |
2020-03-14 | DirtyFlags: relax need to set render_targets as dirty | Fernando Sahmkow | 4 | -13/+0 | |
The texture cache already takes care of setting a render target to dirty when invalidated. | |||||
2020-03-14 | PageTable: move backing addresses to a children class as the CPU page table does not need them. | Fernando Sahmkow | 3 | -4/+25 | |
This PR aims to reduce the memory usage in the CPU page table by moving GPU specific parameters into a child class. This saves 1Gb of Memory for most games. | |||||
2020-03-14 | astc: Fix typos from search and replace | ReinUsesLisp | 1 | -3/+3 | |
2020-03-14 | astc: Minor changes to InputBitStream | ReinUsesLisp | 1 | -28/+34 | |
2020-03-14 | astc: Pass val in Replicate by copy | ReinUsesLisp | 1 | -1/+1 | |
2020-03-14 | astc: Call std::vector:reserve on decodedClolorValues to avoid reallocating | ReinUsesLisp | 1 | -0/+2 | |
2020-03-14 | clang-format | Nguyen Dac Nam | 1 | -2/+1 | |
2020-03-14 | nit | Nguyen Dac Nam | 1 | -1/+1 | |
2020-03-14 | astc: Call std::vector::reserve on texelWeightValues to avoid reallocating | ReinUsesLisp | 1 | -0/+2 | |
2020-03-14 | astc: Create a LUT at compile time for encoding values | ReinUsesLisp | 1 | -7/+19 | |
2020-03-14 | astc: Make IntegerEncodedValue a trivial structure | ReinUsesLisp | 1 | -212/+177 | |
2020-03-14 | astc: Make IntegerEncodedValue constructor constexpr | ReinUsesLisp | 1 | -5/+6 | |
2020-03-14 | astc: Make IntegerEncodedValue trivially copyable | ReinUsesLisp | 1 | -9/+2 | |
2020-03-14 | astc: Rename C types to common_types | ReinUsesLisp | 1 | -79/+78 | |
2020-03-14 | astc: Move Popcnt to an anonymous namespace and make it constexpr | ReinUsesLisp | 1 | -9/+13 | |
2020-03-14 | astc: Use common types instead of stdint.h integer types | ReinUsesLisp | 1 | -284/+282 | |
2020-03-14 | astc: Use 'enum class' instead of 'enum' for EIntegerEncoding | ReinUsesLisp | 1 | -25/+25 | |
2020-03-13 | vk/gl_shader_decompiler: Silence assertion on compute | ReinUsesLisp | 2 | -6/+12 | |
2020-03-13 | vk_shader_decompiler: Fix default varying regression | ReinUsesLisp | 1 | -2/+6 | |
2020-03-13 | maxwell_3d: Add padding words to XFB entries | ReinUsesLisp | 1 | -2/+4 | |
Use INSERT_UNION_PADDING_WORDS instead of alignas to ensure a size requirement. | |||||
2020-03-13 | gl_shader_decompiler: Fix implicit conversion errors | ReinUsesLisp | 1 | -3/+3 | |
2020-03-13 | vk_shader_decompiler: Fix implicit type conversion | Rodrigo Locatti | 1 | -1/+1 | |
Co-Authored-By: Mat M. <mathew1800@gmail.com> | |||||
2020-03-13 | vk_rasterizer: Implement transform feedback binding zero | ReinUsesLisp | 2 | -0/+46 | |
2020-03-13 | vk_shader_decompiler: Add XFB decorations to generic varyings | ReinUsesLisp | 1 | -16/+89 | |
2020-03-13 | vk_device: Enable VK_EXT_transform_feedback when available | ReinUsesLisp | 2 | -7/+40 | |
2020-03-13 | vk_device: Shrink formatless capability name size | ReinUsesLisp | 3 | -26/+23 | |
2020-03-13 | shader/transform_feedback: Expose buffer stride | ReinUsesLisp | 3 | -1/+4 | |
2020-03-13 | vk_shader_decompiler: Use registry for specialization | ReinUsesLisp | 4 | -31/+37 | |
2020-03-13 | gl_rasterizer: Implement transform feedback bindings | ReinUsesLisp | 3 | -10/+83 | |
2020-03-13 | gl_shader_decompiler: Decorate output attributes with XFB layout | ReinUsesLisp | 1 | -29/+105 | |
We sometimes have to slice attributes in different parts. This is needed for example in instances where the game feedbacks 3 components but writes 4 from the shader (something that is possible with GL_NV_transform_feedback). | |||||
2020-03-13 | shader/transform_feedback: Add host API friendly TFB builder | ReinUsesLisp | 4 | -0/+140 | |
2020-03-13 | nit & remove some optional param | Nguyen Dac Nam | 1 | -10/+11 | |
2020-03-13 | shader_decode: implement XMAD mode CSfu | Nguyen Dac Nam | 1 | -9/+41 | |
2020-03-13 | fix formatting | makigumo | 1 | -1/+1 | |
2020-03-13 | maxwell_to_vk: add vertex format eA2B10G10R10UnormPack32 | makigumo | 1 | -1/+3 | |
2020-03-13 | clang-format | Nguyen Dac Nam | 1 | -4/+8 | |
2020-03-13 | Apply suggestions from code review | Nguyen Dac Nam | 1 | -5/+5 | |
Co-Authored-By: Mat M. <mathew1800@gmail.com> | |||||
2020-03-13 | shader_decode: BFE add ref of reverse parallel method. | Nguyen Dac Nam | 1 | -0/+3 | |
2020-03-13 | shader_decode: implement BREV on BFE | Nguyen Dac Nam | 1 | -6/+25 | |
Implement reverse parallel follow: https://graphics.stanford.edu/~seander/bithacks.html#ReverseParallel | |||||
2020-03-13 | shader_bytecode: update BFE instructions struct. | Nguyen Dac Nam | 1 | -8/+3 | |
2020-03-13 | node_helper: add IBitfieldExtract case | Nguyen Dac Nam | 1 | -0/+2 | |
2020-03-13 | shader_decode: Reimplement BFE instructions | Nguyen Dac Nam | 1 | -25/+27 | |
2020-03-13 | gl_shader_decompiler: Initialize gl_Position on vertex shaders | ReinUsesLisp | 1 | -0/+4 | |
2020-03-13 | gl_shader_decompiler: Add missing {} on smem GLSL emission | ReinUsesLisp | 1 | -1/+1 | |
2020-03-13 | video_core: Implement RGBA16_SNORM | ReinUsesLisp | 8 | -69/+84 | |
Implement RGBA16_SNORM with the current API. Nothing special here. | |||||
2020-03-12 | texture_cache: Report incompatible textures as black | ReinUsesLisp | 1 | -2/+39 | |
Some games bind incompatible texture types to certain types. For example Astral Chain binds a 2D texture with 1 layer (non-array) to a cubemap slot (that's how it's used in the shader). After testing this in hardware, the expected "undefined behavior" is to report all pixels as black. We already have a path for reporting black textures in the texture cache. When textures types are incompatible, this commit binds these kind of textures. This is done on the API agnostic texture cache so no extra code has to be inserted on OpenGL or Vulkan. As a side effect, this fixes invalidations of ASTC textures on Astral Chain. This happened because yuzu detected a cube texture and forced 6 faces, generating a texture larger than what the TIC reported. | |||||
2020-03-12 | texture_cache/surface_params: Force depth=1 on 2D textures | ReinUsesLisp | 1 | -2/+4 | |
Sometimes games will sample a 2D array TIC with a 2D access in the shader. This causes bad interactions with the rest of the texture cache. To emulate what the game wants to do, force a depth=1 on 2D textures (not 2D arrays) and let the texture cache handle the rest. | |||||
2020-03-12 | gl_shader_decompiler: Add layer component to texelFetch | ReinUsesLisp | 1 | -6/+9 | |
TexelFetch was not emitting the array component generating invalid GLSL. | |||||
2020-03-12 | NVFlinger: Do the microprofile Flip after processing a valid frame. | Fernando Sahmkow | 1 | -2/+2 | |
2020-03-12 | gl_shader_decompiler: Fix regression in render target declarations | ReinUsesLisp | 1 | -12/+2 | |
A previous commit introduced a way to declare as few render targets as possible. Turns out this introduced a regression in some games. | |||||
2020-03-11 | framebuffer_layout.h: drop the use of enum for screen dimensions. | Vitor Kiguchi | 2 | -10/+10 | |
+clang format | |||||
2020-03-11 | gl_shader_manager: Fix interaction between graphics and compute | ReinUsesLisp | 4 | -29/+39 | |
After a compute shader was set to the pipeline, no graphics shader was invoked again. To address this use glUseProgram to bind compute shaders (without state tracking) and call glUseProgram(0) when transitioning out of it back to the graphics pipeline. | |||||
2020-03-10 | gl_rasterizer: Implement polygon modes and fill rectangles | ReinUsesLisp | 7 | -2/+99 | |
2020-03-09 | engines/maxwell_3d: Add TFB registers and store them in shader registry | ReinUsesLisp | 4 | -6/+45 | |
2020-03-09 | shader/registry: Address feedback | ReinUsesLisp | 3 | -13/+18 | |
2020-03-09 | gl_shader_decompiler: Add identifier to decompiled code | ReinUsesLisp | 3 | -8/+16 | |
2020-03-09 | gl_shader_decompiler: Roll back to GLSL core 430 | ReinUsesLisp | 1 | -1/+1 | |
RenderDoc won't build shaders if we use GLSL compatibility. | |||||
2020-03-09 | const_buffer_engine_interface: Store component types | ReinUsesLisp | 4 | -46/+27 | |
This is required for Vulkan. Sampling integer textures with float handles is illegal. | |||||
2020-03-09 | yuzu/loading_screen: Remove unused shader progress mode | ReinUsesLisp | 2 | -17/+1 | |
2020-03-09 | gl_shader_cache: Reduce registry consistency to debug assert | ReinUsesLisp | 1 | -3/+1 | |
Registry consistency is something that practically can't happen and it has a measurable runtime cost. Reduce it to a DEBUG_ASSERT. | |||||
2020-03-09 | shader/registry: Cache tessellation state | ReinUsesLisp | 3 | -3/+10 | |
2020-03-09 | shader/registry: Store graphics and compute metadata | ReinUsesLisp | 8 | -75/+176 | |
Store information GLSL forces us to provide but it's dynamic state in hardware (workgroup sizes, primitive topology, shared memory size). | |||||
2020-03-09 | video_core: Rename "const buffer locker" to "registry" | ReinUsesLisp | 16 | -95/+100 | |
2020-03-09 | gl_shader_cache: Rework shader cache and remove post-specializations | ReinUsesLisp | 18 | -1094/+544 | |
Instead of pre-specializing shaders and then post-specializing them, drop the later and only "specialize" the shader while decoding it. | |||||
2020-03-08 | textures: Fix anisotropy hack | ReinUsesLisp | 1 | -14/+16 | |
Previous code could generate an anisotropy value way higher than x16. | |||||
2020-03-08 | cubeb_sink: Don't discard other channels when performing downmixing | FearlessTobi | 1 | -3/+17 | |
Previously, when performing downmixing, we would discard all channels except the left and right one. This implementation respects them when mixing down to Stereo. It is taken from this document: http://www.atsc.org/wp-content/uploads/2015/03/A52-201212-17.pdf. Fixes Luigis Mansion 3 cutscene and Bayonetta audio. | |||||
2020-03-08 | vk_reasterizer: fix mistype on SetupGraphicsImages | Nguyen Dac Nam | 1 | -1/+1 | |
This should use Maxwell3D engine. Fixed some GPU error on Kirby and maybe other games. | |||||
2020-03-06 | vk_rasterizer: Support disabled uniform buffers | ReinUsesLisp | 2 | -1/+9 | |
2020-03-06 | maxwell_to_vk: Remove Storage capability for A1B5G5R5U | ReinUsesLisp | 1 | -1/+1 | |
2020-03-04 | input/udp - Add minor error handling to prevent bad input from crashing | James Rowe | 1 | -4/+13 | |
2020-03-04 | Frontend/SDL - Provide proper default for UDP input | James Rowe | 1 | -1/+1 | |
When the default file is read in, the settings default value is only used when the key is missing. As it was, the key existed, but the value was empty string causing it to accept that as a value to pass into the core | |||||
2020-03-04 | input/udp - Dont log on invalid packet received | James Rowe | 1 | -1/+0 | |
2020-03-03 | core: hle: Implement separate A32/A64 SVC interfaces. | bunnei | 2 | -107/+380 | |
2020-03-03 | core: Implement separate A32/A64 ARM interfaces. | bunnei | 21 | -122/+454 | |
2020-03-03 | core: loader: Remove check for 32-bit. | bunnei | 1 | -6/+0 | |
2020-03-03 | core: dynarmic: Add CP15 from Citra. | bunnei | 3 | -0/+234 | |
2020-02-29 | nit: move comment to right place. | Nguyen Dac Nam | 1 | -2/+2 | |
2020-02-28 | video_core/dirty_flags: Address feedback | ReinUsesLisp | 1 | -4/+4 | |
2020-02-28 | renderer_opengl: Fix edge-case where alpha testing might cull presentation | ReinUsesLisp | 2 | -0/+7 | |
2020-02-28 | gl_texture_cache: Remove blending disable on blits | ReinUsesLisp | 1 | -5/+0 | |
Blending doesn't affect blits. Rasterizer discard does, update the commentaries. | |||||
2020-02-28 | gl_rasterizer: Don't disable blending on clears | ReinUsesLisp | 1 | -4/+0 | |
Blending doesn't affect clears. | |||||
2020-02-28 | dirty_flags: Deduplicate code between OpenGL and Vulkan | ReinUsesLisp | 5 | -77/+73 | |
2020-02-28 | vk_rasterizer: Pass Maxwell registers to dynamic updates | ReinUsesLisp | 2 | -26/+21 | |
2020-02-28 | state_tracker: Remove type traits with named structures | ReinUsesLisp | 4 | -18/+22 | |
2020-02-28 | vk_state_tracker: Implement dirty flags for stencil properties | ReinUsesLisp | 3 | -0/+21 | |
2020-02-28 | vk_state_tracker: Implement dirty flags for depth bounds | ReinUsesLisp | 3 | -0/+14 | |
2020-02-28 | vk_state_tracker: Implement dirty flags for blend constants | ReinUsesLisp | 3 | -0/+14 | |
2020-02-28 | vk_state_tracker: Implement dirty flags for depth bias | ReinUsesLisp | 3 | -0/+17 | |
2020-02-28 | vk_state_tracker: Implement dirty flags for scissors | ReinUsesLisp | 3 | -0/+14 | |
2020-02-28 | vk_state_tracker: Initial implementation | ReinUsesLisp | 10 | -52/+198 | |
Add support for render targets and viewports. | |||||
2020-02-28 | gl_rasterizer: Remove num vertex buffers magic number | ReinUsesLisp | 1 | -2/+4 | |
2020-02-28 | gl_rasterizer: Only apply polygon offset clamp if enabled | ReinUsesLisp | 1 | -3/+6 | |
2020-02-28 | gl_state_tracker: Implement dirty flags for depth clamp enabling | ReinUsesLisp | 3 | -3/+15 | |
2020-02-28 | gl_rasterizer: Disable scissor 0 when scissor is not used on clear | ReinUsesLisp | 1 | -0/+3 | |
2020-02-28 | gl_rasterizer: Notify depth mask changes on clear | ReinUsesLisp | 2 | -1/+6 | |
2020-02-28 | gl_rasterizer: Minor sort changes to clearing | ReinUsesLisp | 1 | -11/+9 | |
2020-02-28 | maxwell_3d: Use two tables instead of three for dirty flags | ReinUsesLisp | 1 | -1/+1 | |
2020-02-28 | gl_state_tracker: Track state of index buffers | ReinUsesLisp | 4 | -5/+23 | |
2020-02-28 | gl_state_tracker: Implement dirty flags for clip control | ReinUsesLisp | 5 | -15/+31 | |
2020-02-28 | gl_state_tracker: Implement dirty flags for point sizes | ReinUsesLisp | 3 | -4/+25 | |
2020-02-28 | gl_state_tracker: Implement dirty flags for fragment color clamp | ReinUsesLisp | 3 | -2/+14 | |
2020-02-28 | gl_state_tracker: Implement dirty flags for logic op | ReinUsesLisp | 4 | -2/+22 | |
2020-02-28 | gl_state_tracker: Implement dirty flags for sRGB | ReinUsesLisp | 5 | -2/+21 | |
2020-02-28 | gl_state_tracker: Implement dirty flags for rasterize enable | ReinUsesLisp | 5 | -2/+21 | |
2020-02-28 | gl_state_tracker: Implement dirty flags for multisample | ReinUsesLisp | 3 | -0/+13 | |
2020-02-28 | gl_state_tracker: Implement dirty flags for alpha testing | ReinUsesLisp | 4 | -6/+24 | |
2020-02-28 | gl_state_tracker: Implement dirty flags for polygon offsets | ReinUsesLisp | 4 | -2/+24 | |
2020-02-28 | gl_state_tracker: Implement dirty flags for primitive restart | ReinUsesLisp | 3 | -5/+19 | |
2020-02-28 | gl_state_tracker: Implement dirty flags for stencil testing | ReinUsesLisp | 4 | -3/+29 | |
2020-02-28 | gl_state_tracker: Implement depth dirty flags | ReinUsesLisp | 4 | -6/+31 | |
2020-02-28 | gl_state_tracker: Implement dirty flags for front face and culling | ReinUsesLisp | 4 | -7/+38 | |
2020-02-28 | gl_state_tracker: Implement dirty flags for blending | ReinUsesLisp | 5 | -14/+67 | |
2020-02-28 | gl_state_tracker: Implement dirty flags for clip distances and shaders | ReinUsesLisp | 7 | -14/+43 | |
2020-02-28 | gl_state_tracker: Add dirty flags for buffers and divisors | ReinUsesLisp | 4 | -22/+56 | |
2020-02-28 | maxwell_3d: Change write dirty flags to a bitset | ReinUsesLisp | 3 | -16/+16 | |
2020-02-28 | gl_state_tracker: Implement dirty flags for vertex formats | ReinUsesLisp | 4 | -9/+44 | |
2020-02-28 | gl_state_tracker: Implement dirty flags for color masks | ReinUsesLisp | 4 | -9/+53 | |
2020-02-28 | gl_state_tracker: Implement dirty flags for scissors | ReinUsesLisp | 5 | -10/+58 | |
2020-02-28 | gl_state_tracker: Implement dirty flags for viewports | ReinUsesLisp | 4 | -9/+54 | |
2020-02-28 | renderer_opengl: Reintroduce dirty flags for render targets | ReinUsesLisp | 9 | -13/+195 | |
2020-02-28 | maxwell_3d: Flatten cull and front face registers | ReinUsesLisp | 8 | -50/+47 | |
2020-02-28 | video_core: Reintroduce dirty flags infrastructure | ReinUsesLisp | 10 | -1/+72 | |
2020-02-28 | gl_state: Remove completely | ReinUsesLisp | 13 | -152/+4 | |
2020-02-28 | gl_state: Remove program tracking | ReinUsesLisp | 9 | -94/+62 | |
2020-02-28 | gl_state: Remove framebuffer tracking | ReinUsesLisp | 7 | -82/+23 | |
2020-02-28 | gl_state: Remove image tracking | ReinUsesLisp | 5 | -24/+12 | |
2020-02-28 | gl_state: Remove texture and sampler tracking | ReinUsesLisp | 5 | -60/+8 | |
2020-02-28 | gl_state: Remove blend state tracking | ReinUsesLisp | 5 | -104/+28 | |
2020-02-28 | gl_state: Remove stencil test tracking | ReinUsesLisp | 4 | -92/+18 | |
2020-02-28 | gl_state: Remove clip control tracking | ReinUsesLisp | 5 | -19/+8 | |
2020-02-28 | gl_state: Remove clip distances tracking | ReinUsesLisp | 4 | -29/+3 | |
2020-02-28 | gl_state: Remove rasterizer disable tracking | ReinUsesLisp | 6 | -13/+8 | |
2020-02-28 | gl_state: Remove viewport and depth range tracking | ReinUsesLisp | 7 | -101/+39 | |
2020-02-28 | gl_state: Remove scissor test tracking | ReinUsesLisp | 6 | -69/+12 | |
2020-02-28 | gl_state: Remove color mask tracking | ReinUsesLisp | 4 | -40/+12 | |
2020-02-28 | gl_state: Remove clamp framebuffer color tracking | ReinUsesLisp | 3 | -17/+6 | |
This commit doesn't reset it for screen draws because clamping doesn't change anything there. | |||||
2020-02-28 | gl_state: Remove multisample tracking | ReinUsesLisp | 3 | -16/+2 | |
2020-02-28 | gl_state: Remove framebuffer sRGB tracking | ReinUsesLisp | 6 | -21/+25 | |
2020-02-28 | gl_state: Remove VAO cache and tracking | ReinUsesLisp | 10 | -153/+53 | |
2020-02-28 | gl_state: Remove depth clamp tracking | ReinUsesLisp | 4 | -25/+13 | |
2020-02-28 | gl_state: Remove depth tracking | ReinUsesLisp | 4 | -34/+7 | |
2020-02-28 | gl_state: Remove primitive restart tracking | ReinUsesLisp | 3 | -18/+2 | |
2020-02-28 | gl_state: Remove logic op tracker | ReinUsesLisp | 4 | -24/+5 | |
2020-02-28 | gl_state: Remove blend color tracking | ReinUsesLisp | 3 | -18/+1 | |
2020-02-28 | gl_state: Remove polygon offset tracking | ReinUsesLisp | 4 | -39/+7 | |
2020-02-28 | gl_state: Remove alpha test tracking | ReinUsesLisp | 4 | -21/+4 | |
2020-02-28 | gl_state: Remove cull mode tracking | ReinUsesLisp | 4 | -19/+4 | |
2020-02-28 | gl_state: Remove front face tracking | ReinUsesLisp | 4 | -6/+5 | |
2020-02-28 | gl_state: Remove point size tracking | ReinUsesLisp | 3 | -22/+4 | |
2020-02-28 | gl_rasterizer: Add oglEnablei helper | ReinUsesLisp | 1 | -0/+4 | |
2020-02-28 | gl_rasterizer: Add OpenGL enable/disable helper | ReinUsesLisp | 1 | -0/+4 | |
2020-02-28 | gl_rasterizer: Remove dirty flags | ReinUsesLisp | 18 | -457/+7 | |
2020-02-28 | common/math_util: Support float type rectangles | ReinUsesLisp | 1 | -2/+14 | |
2020-02-28 | renderer_opengl: Fix SRGB presentation frame tracking. | bunnei | 2 | -5/+2 | |
- Fixes SRGB in Super Smash Bros. Ultimate. | |||||
2020-02-28 | shader_decode: Fix LD, LDG when track constant buffer | Nguyen Dac Nam | 1 | -4/+12 | |
2020-02-28 | shader_decode: keep it search on all code | Nguyen Dac Nam | 1 | -4/+12 | |
It fixed opcode LD, LDG on Pokemon Sword that can't find the constant buffer. Not sure if it helps any on visual. | |||||
2020-02-28 | Create an "Advanced" tab in the graphics configuration tab and add anisotropic filtering levels. | Morph | 16 | -35/+245 | |
2020-02-28 | renderer_opengl: Reduce swap chain size to 3. | bunnei | 1 | -3/+2 | |
2020-02-27 | AM/ICommonStateGetter: Stub SetLcdBacklighOffEnabled (#3454) | Morph | 2 | -2/+14 | |
* Stub SetLcdBacklighOffEnabled Used by Super Smash Bros. Ultimate We require backlight services to be implemented to turn on/off the backlight. * Address feedback | |||||
2020-02-27 | shader: FMUL switch to using LUT (#3441) | Nguyen Dac Nam | 1 | -19/+14 | |
* shader: add FmulPostFactor LUT table * shader: FMUL apply LUT * Update src/video_core/engines/shader_bytecode.h Co-Authored-By: Mat M. <mathew1800@gmail.com> * nit: mistype * clang-format & add missing import * shader: remove post factor LUT. * shader: move post factor LUT to function and fix incorrect order. * clang-format * shader: FMUL: add static to post factor LUT * nit: typo Co-authored-by: Mat M. <mathew1800@gmail.com> | |||||
2020-02-27 | renderer_opengl: Use more concise lock syntax. | bunnei | 1 | -4/+4 | |
2020-02-27 | renderer_opengl: Move Frame/FrameMailbox to OpenGL namespace. | bunnei | 3 | -77/+42 | |
2020-02-26 | vk_swapchain: Silence TOCTOU race condition | ReinUsesLisp | 1 | -9/+12 | |
It's possible that the window is resized from the moment we ask for its size to the moment a swapchain is created, causing validation issues. To workaround this Vulkan issue request the capabilities again just before creating the swapchain, making the race condition less likely. | |||||
2020-02-26 | ARM_Interface: Cache the JITs instead of deleting/recreating. | Fernando Sahmkow | 2 | -4/+19 | |
This was a bug inherited from citra which was fixed by then at some time. This commit corrects such bug and ensures JITs are correctly recycled. | |||||
2020-02-26 | renderer_opengl: Create gl_framebuffer_data if empty. | bunnei | 1 | -1/+2 | |
2020-02-26 | frontend: qt: bootmanager: Acquire a shared context in main emu thread. | bunnei | 2 | -12/+12 | |
2020-02-26 | frontend: qt: bootmanager: Vulkan: Restore support for VK backend. | bunnei | 5 | -113/+145 | |
2020-02-26 | frontend: qt: bootmanager: OpenGL: Implement separate presentation thread. | bunnei | 2 | -222/+254 | |
2020-02-26 | frontent: qt: main: Various updates/refactoring for separate presentation thread. | bunnei | 2 | -29/+27 | |
2020-02-26 | core: frontend: Refactor scope_acquire_window_context to scope_acquire_context. | bunnei | 7 | -29/+32 | |
2020-02-26 | frontend: sdl2: emu_window: Implement separate presentation thread. | bunnei | 10 | -62/+79 | |
2020-02-26 | renderer_opengl: Add texture mailbox support for presenter thread. | bunnei | 4 | -35/+269 | |
2020-02-26 | renderer_opengl: Add OGLRenderbuffer to resource/state management. | bunnei | 4 | -0/+62 | |
2020-02-26 | core: frontend: emu_window: Add TextureMailbox class. | bunnei | 1 | -0/+41 | |
2020-02-26 | core: settings: Add setting to enable vsync, which is on by default. | bunnei | 8 | -0/+25 | |
2020-02-25 | video_core/surface: Add R32_SINT render target format | ReinUsesLisp | 2 | -0/+3 | |
2020-02-25 | video_core/gpu: Remove unused functions | ReinUsesLisp | 2 | -71/+0 | |
2020-02-24 | yuzu: Remove exit lock for game pausing | FearlessTobi | 1 | -5/+0 | |
This removes the "exit lock" popup from yuzu when pausing a game. Motivation The exit lock feature is broken in many ways and doesn't work properly in a lot of games, causing it to appear every time you want to pause the game or stop it, even in places where it wouldn't on Switch. Additionally, the feature of pausing a game doesn't exist like this on Switch and yuzu should be guaranteed to be deterministic anyway, so pausing the emulation shouldn't be able to interrupt any critical processes in any way. | |||||
2020-02-24 | vk_shader_decompiler: Implement indexed textures | ReinUsesLisp | 6 | -54/+99 | |
Implement accessing textures through an index. It uses the same interface as OpenGL, the main difference is that Vulkan bindings are forced to be arrayed (the binding index doesn't change for stacked textures in SPIR-V). | |||||
2020-02-24 | shader: Simplify indexed sampler usages | ReinUsesLisp | 2 | -20/+8 | |
2020-02-24 | video_core: Implement more scaler attribute formats | ReinUsesLisp | 3 | -4/+40 | |
While changing this, fix assert in vk_shader_decompiler. We now know scaled formats are expected to be float in shaders attributes. | |||||
2020-02-23 | audio_core: interpolate: Improvements to fix audio crackling. | bunnei | 2 | -23/+38 | |
- Fixes audio crackling in Crash Team Racing Nitro-Fueled, Super Mario Odyssey, and others. - Addresses followup issues from #3310. | |||||
2020-02-22 | Scheduler: Inline global scheduler in Scheduler Lock. | Fernando Sahmkow | 1 | -4/+2 | |
2020-02-22 | Kernel: Correct pending feedback. | Fernando Sahmkow | 1 | -3/+4 | |
2020-02-22 | System: Expose Host thread registering routines from kernel. | Fernando Sahmkow | 2 | -0/+14 | |
2020-02-22 | Kernel: Address Feedback. | Fernando Sahmkow | 6 | -30/+47 | |
2020-02-22 | Kernel: Implement Scheduler locks | Fernando Sahmkow | 2 | -0/+89 | |
2020-02-22 | Kernel: Implement Time Manager. | Fernando Sahmkow | 5 | -1/+98 | |
2020-02-22 | Kernel: Rename ThreadCallbackHandleTable and Setup Thread Ids on Kernel. | Fernando Sahmkow | 5 | -24/+107 | |
2020-02-22 | Kernel: Make global scheduler depend on KernelCore | Fernando Sahmkow | 4 | -8/+24 | |
2020-02-22 | audio_core: interpolate: Fix include for climits (Linux build break). | bunnei | 1 | -1/+1 | |
2020-02-21 | shader/texture: Fix illegal 3D texture assert | ReinUsesLisp | 1 | -1/+1 | |
Fix typo in the illegal 3D texture assert logic. We care about catching arrayed 3D textures or 3D shadow textures, not regular 3D textures. | |||||
2020-02-21 | nit: add const to where it need. | Nguyen Dac Nam | 1 | -14/+14 | |
2020-02-21 | shader: implement LOP3 fast replace for old function | Nguyen Dac Nam | 1 | -36/+58 | |
ref: https://devtalk.nvidia.com/default/topic/1070081/cuda-programming-and-performance/reverse-lut-for-lop3-lut/ | |||||
2020-02-21 | vk_device: remove left over from other branch | Nguyen Dac Nam | 1 | -1/+0 | |
2020-02-20 | clang-format | Nguyen Dac Nam | 1 | -1/+1 | |
2020-02-20 | shader_decompiler: only add StorageImageReadWithoutFormat when available | Nguyen Dac Nam | 1 | -1/+4 | |
2020-02-20 | video_core: memory_manager: Flush/invalidate asynchronously on Unmap. | bunnei | 1 | -1/+10 | |
- Minor perf improvement. | |||||
2020-02-19 | shader_decompiler: add check in case of device not support ShaderStorageImageReadWithoutFormat | Nguyen Dac Nam | 1 | -0/+4 | |
2020-02-19 | vk_device: setup shaderStorageImageReadWithoutFormat | Nguyen Dac Nam | 1 | -0/+5 | |
2020-02-19 | vk_device: add check for shaderStorageImageReadWithoutFormat | Nguyen Dac Nam | 1 | -0/+7 | |
2020-02-19 | shader_conversion: I2F : add Assert for case src_size is Short | Nguyen Dac Nam | 1 | -0/+3 | |
2020-02-19 | fix warning | Nguyen Dac Nam | 1 | -1/+1 | |
2020-02-19 | clang-format fix | Nguyen Dac Nam | 1 | -1/+1 | |
2020-02-19 | shader_conversion: add conversion I2F for Short | Nguyen Dac Nam | 1 | -9/+6 | |
2020-02-19 | vk_shader: add Capability StorageImageReadWithoutFormat | Nguyen Dac Nam | 1 | -0/+1 | |
2020-02-19 | httplib compatibility | Brian Clinkenbeard | 2 | -7/+7 | |
2020-02-19 | vk_shader: Implement function ImageLoad (Used by Kirby Start Allies) | Nguyen Dac Nam | 1 | -2/+6 | |
Please enter the commit message for your changes. Lines starting | |||||
2020-02-18 | fixups mistake auto commit. | Nguyen Dac Nam | 1 | -9/+0 | |
2020-02-18 | Update code structure | Nguyen Dac Nam | 1 | -0/+7 | |
Co-Authored-By: Mat M. <mathew1800@gmail.com> | |||||
2020-02-18 | add vertex UnsignedInt size RGBA | Nguyen Dac Nam | 1 | -0/+2 | |
2020-02-18 | add eBc2SrgbBlock to formats | Nguyen Dac Nam | 1 | -0/+1 | |
2020-02-18 | vulkan: add DXT23_SRGB | Nguyen Dac Nam | 1 | -1/+1 | |
2020-02-18 | renderer_vulkan: Add the rest of case for TryConvertBorderColor | Nguyen Dac Nam | 1 | -3/+10 | |
2020-02-18 | analog_from_button get direction implementation | CJBok | 2 | -5/+19 | |
2020-02-16 | texture_cache: Implement layered framebuffer attachments | ReinUsesLisp | 8 | -51/+74 | |
Layered framebuffer attachments is a feature that allows applications to write attach layered textures to a single attachment. What layer the fragments are written to is decided from the shader using gl_Layer. | |||||
2020-02-16 | vk_shader_decompiler: Implement Layer output attribute | ReinUsesLisp | 1 | -6/+30 | |
SPIR-V's Layer is GLSL's gl_Layer. It lets the application choose from a shader stage (vertex, tessellation or geometry) which framebuffer layer write the output fragments to. | |||||
2020-02-16 | texture_cache: Avoid matches in 3D textures | ReinUsesLisp | 1 | -8/+11 | |
Code before this commit was trying to match 3D textures with another target. Fix that. | |||||
2020-02-16 | surface_base: Implement texture buffer flushes | ReinUsesLisp | 2 | -0/+11 | |
Implement downloads to guest memory from texture buffers on the generic cache and OpenGL. | |||||
2020-02-16 | IUserLocalCommunicationService: add function Initialize2 | Nguyen Dac Nam | 1 | -1/+9 | |
2020-02-16 | HLE: correct function name of IUserLocalCommunicationService | Nguyen Dac Nam | 1 | -1/+1 | |
402: function name should be Initialize2 (7.0.0+) not SetOperationMode Follow by: https://switchbrew.org/wiki/LDN_services#IUserLocalCommunicationService | |||||
2020-02-16 | nvhost_gpu: implement ChannelSetTimeslice | namkazy | 2 | -0/+20 | |
2020-02-15 | Revert "video_core: memory_manager: Use GPU interface for cache functions." | bunnei | 3 | -9/+14 | |
2020-02-15 | texture: Implement R32I | ReinUsesLisp | 6 | -34/+46 | |
2020-02-15 | shader/texture: Allow 2D shadow arrays and simplify code | ReinUsesLisp | 1 | -43/+28 | |
Shadow sampler 2D arrays are supported on OpenGL, so there's no reason to forbid these. Enable textureLod usage on these. Minor style changes. | |||||
2020-02-14 | maxwell_3d: Unify draw methods | ReinUsesLisp | 6 | -36/+6 | |
Pass instanced state of a draw invocation as an argument instead of having two separate virtual methods. | |||||
2020-02-14 | query_cache: Address feedback | ReinUsesLisp | 2 | -16/+18 | |
2020-02-14 | query_cache: Fix ambiguity in CacheAddr getter | ReinUsesLisp | 1 | -4/+5 | |
2020-02-14 | query_cache: Add a recursive mutex for concurrent usage | ReinUsesLisp | 1 | -0/+6 | |
2020-02-14 | vk_query_cache: Implement generic query cache on Vulkan | ReinUsesLisp | 11 | -20/+327 | |
2020-02-14 | query_cache: Abstract OpenGL implementation | ReinUsesLisp | 4 | -339/+394 | |
Abstract the current OpenGL implementation into the VideoCommon namespace and reimplement it on top of that. Doing this avoids repeating code and logic in the Vulkan implementation. | |||||
2020-02-14 | gl_query_cache: Optimize query cache | ReinUsesLisp | 6 | -79/+217 | |
Use a custom cache instead of relying on a ranged cache. | |||||
2020-02-14 | gl_query_cache: Implement host queries using a deferred cache | ReinUsesLisp | 7 | -86/+328 | |
Instead of waiting immediately for executed commands, defer the query until the guest CPU reads it. This way we get closer to what the guest program is doing. To archive this we have to build a dependency queue, because host APIs (like OpenGL and Vulkan) use ranged queries instead of counters like NVN. Waiting for queries implicitly uses fences and this requires a command being queued, otherwise the driver will lock waiting until a timeout. To fix this when there are no commands queued, we explicitly call glFlush. | |||||
2020-02-14 | gl_rasterizer: Sort method declarations | ReinUsesLisp | 1 | -16/+15 | |
2020-02-14 | gl_rasterizer: Add queued commands counter | ReinUsesLisp | 2 | -0/+16 | |
Keep track of the queued OpenGL commands that can signal a fence if waited on. As a side effect, we avoid calls to glFlush when no commands are queued. | |||||
2020-02-14 | maxwell_3d: Slow implementation of passed samples (query 21) | ReinUsesLisp | 8 | -17/+201 | |
Implements GL_SAMPLES_PASSED by waiting immediately for queries. | |||||
2020-02-14 | Add 4:3 aspect ratio and address feedback | Morph | 5 | -12/+20 | |
2020-02-14 | Core: Correct compilition in GCC | Fernando Sahmkow | 1 | -0/+2 | |
2020-02-14 | Address feedback | Morph | 2 | -18/+26 | |
2020-02-14 | Use enumeration instead of magic numbers | Morph | 2 | -5/+11 | |
2020-02-14 | Add following aspect ratios: 16:9, 21:9, Stretch to Window | Morph | 9 | -2/+62 | |
Available as a drop down within the configure graphics tab. | |||||
2020-02-14 | gl_resource_manager: Add managed query class | ReinUsesLisp | 2 | -0/+42 | |
2020-02-14 | gl_rasterizer: Use the least generic OpenGL draw function possible | ReinUsesLisp | 1 | -8/+28 | |
This may help some implementations. | |||||
2020-02-14 | vk_shader_decompiler: Fix vertex id and instance id | ReinUsesLisp | 1 | -4/+13 | |
Vulkan's VertexIndex and InstanceIndex don't match with hardware. This is because Nvidia implements gl_VertexID and gl_InstanceID. The math that relates these is: gl_VertexIndex = gl_BaseVertex + gl_VertexID gl_InstanceIndex = gl_InstanceIndex + gl_InstanceID To emulate it using what Vulkan's SPIR-V offers (the *Index variants) this commit substracts gl_Base* from gl_*Index to obtain the OpenGL and hardware's equivalent. | |||||
2020-02-14 | Core: Address Feedback | Fernando Sahmkow | 6 | -24/+50 | |
2020-02-13 | GPU: Address Feedback. | Fernando Sahmkow | 2 | -11/+10 | |
2020-02-12 | address_arbiter: Collapse loops in InsertThread() and RemoveThread() | Lioncash | 1 | -19/+17 | |
Same behavior, but without the need to explicitly loop through everything manually. | |||||
2020-02-12 | address_arbiter: Simplify GetThreadsWaitingOnAddress() | Lioncash | 2 | -10/+9 | |
Simplifies the overall function and also allows for it to become a const-qualified member function. | |||||
2020-02-12 | bcat/backend: Make formatting of passphrase consistent in NullBackend::SetPassphrase() | Lioncash | 1 | -1/+1 | |
Aligns the '=' to be consistent with the rest of the logs within this source file. | |||||
2020-02-12 | bcat/backend: Prevent fmt exception in debug log within NullBackend::Clear() | Lioncash | 1 | -1/+1 | |
A formatting specifier within Clear wasn't being used, which will cause fmt to throw an exception. This fixes that. | |||||
2020-02-12 | kernel/thread: Remove trivial usages of the global system accessor | Lioncash | 1 | -2/+2 | |
We can just use the kernel member variable directly instead of going through the system to obtain the same thing. | |||||
2020-02-12 | Core: Set all hardware emulation constants in a single file. | Fernando Sahmkow | 17 | -53/+88 | |
2020-02-11 | Kernel: Refactor synchronization to better match RE | Fernando Sahmkow | 23 | -80/+212 | |
2020-02-11 | update hwopus DecodeInterleaved for FW 7.0.0+ | makigumo | 1 | -2/+4 | |
trivial change, see https://switchbrew.org/wiki/Audio_services#IHardwareOpusDecoder | |||||
2020-02-11 | Kernel: Change WaitObject to Synchronization object. In order to better reflect RE. | Fernando Sahmkow | 22 | -98/+110 | |
2020-02-10 | GPU: Implement GPU Clock correctly. | Fernando Sahmkow | 3 | -2/+17 | |
2020-02-10 | Maxwell3D: Correct query reporting. | Fernando Sahmkow | 2 | -51/+58 | |
2020-02-09 | Remove option "Show files with type 'Unknown'" | Morph | 5 | -15/+1 | |
2020-02-08 | hle: services: Use std::shared_ptr instead of copy by value. | bunnei | 9 | -50/+52 | |
2020-02-08 | gpu_thread: Use MPSCQueue for GPU commands. | bunnei | 1 | -1/+1 | |
- Necessary for multiple service threads. | |||||
2020-02-08 | video_core: memory_manager: Use GPU interface for cache functions. | bunnei | 3 | -14/+9 | |
2020-02-06 | kernel: transfer_memory: Properly reserve and reset memory region. | bunnei | 5 | -40/+116 | |
2020-02-06 | wait_object: Make wait behavior only require one object to signal. | Zach Hilman | 1 | -11/+2 | |
- This was holdover from citra. | |||||
2020-02-06 | am: Correct IPC object count mismatch. | bunnei | 1 | -6/+4 | |
2020-02-06 | services: am: Clear events on PopOutData and PopInteractiveOutData. | bunnei | 1 | -0/+2 | |
2020-02-06 | am: Refactor IStorage interface. | bunnei | 7 | -43/+81 | |
2020-02-06 | applets: software_keyboard: Signal state change on end of interactive session. | bunnei | 1 | -0/+1 | |
2020-02-06 | applets: software_keyboard: Minor cleanup. | bunnei | 1 | -2/+2 | |
2020-02-06 | services: prepo: Fix IPC interface with SaveReport/SaveReportWithUser. | bunnei | 1 | -15/+15 | |
2020-02-06 | hle_ipc: Add error checking to read/write buffer access. | bunnei | 1 | -8/+42 | |
2020-02-05 | shader/decode: Fix constant buffer offsets | ReinUsesLisp | 3 | -5/+5 | |
Some instances were using cbuf34.offset instead of cbuf34.GetOffset(). This returned the an invalid offset. Address those instances and rename offset to "shifted_offset" to avoid future bugs. | |||||
2020-02-05 | maxwell_to_gl: Implement R8G8_USCALED | ReinUsesLisp | 1 | -0/+8 | |
2020-02-05 | maxwell_to_gl: Reduce unimplemented formats to LOG_ERROR | ReinUsesLisp | 1 | -8/+4 | |
2020-02-04 | vk_rasterizer: Use noexcept variants of std::bitset | ReinUsesLisp | 1 | -4/+5 | |
Removes bounds checking from "texceptions" instances. | |||||
2020-02-04 | gl_rasterizer: Implement GL_POINT_SPRITE | ReinUsesLisp | 4 | -1/+9 | |
OpenGL core defaults to GL_POINT_SPRITE, meanwhile on OpenGL compatibility we have to explicitly enable it. This fixes gl_PointCoord's behaviour. | |||||
2020-02-03 | input_common/udp: Ensure that UDP is shut down within Shutdown() | Lioncash | 1 | -0/+1 | |
Previously the UDP backend would never actually get shut down. | |||||
2020-02-03 | input_common/udp: Add missing override specifiers | Lioncash | 1 | -2/+2 | |
Prevents trivial warnings and ensures interfaces are properly maintained between the base class. | |||||
2020-02-03 | input_common/udp: std::move SocketCallback instances where applicable | Lioncash | 1 | -2/+2 | |
std::function is allowed to heap allocate if the size of the captures associated with each lambda exceed a certain threshold. This prevents potentially unnecessary reallocations from occurring. | |||||
2020-02-03 | input_common/udp: std::move shared_ptr within Client constructor | Lioncash | 1 | -1/+1 | |
Gets rid of a trivially avoidable atomic reference count increment and decrement. | |||||
2020-02-03 | udp/client: Replace deprecated from_string() call with make_address_v4() | Lioncash | 1 | -2/+2 | |
Future-proofs code if boost is ever updated. | |||||
2020-02-03 | input_common/udp: Silence -Wreorder warning for Socket | Lioncash | 1 | -4/+3 | |
Amends the constructor initializer list to specify the order of its elements in the same order that initialization would occur. | |||||
2020-02-03 | input_common/udp: Remove unnecessary inclusions | Lioncash | 4 | -8/+4 | |
2020-02-03 | input_common/udp: Add missing header guard | Lioncash | 1 | -0/+2 | |
2020-02-02 | maxwell_3d: Fix stencil back mask | ReinUsesLisp | 1 | -3/+3 | |
2020-02-02 | shader: Remove curly braces initializers on shared pointers | ReinUsesLisp | 5 | -12/+12 | |
2020-02-02 | shader/shift: Implement SHIFT_RIGHT_{IMM,R} | ReinUsesLisp | 1 | -26/+58 | |
Shifts a pair of registers to the right and returns the low register. | |||||
2020-02-02 | shader/shift: Implement SHF_LEFT_{IMM,R} | ReinUsesLisp | 2 | -10/+89 | |
Shifts a pair of registers to the left and returns the high register. | |||||
2020-01-31 | Revert "system_archive: Fix Korean and Chinese fonts" | bunnei | 5 | -880167/+27164 | |
2020-01-31 | core/arm: Remove usage of global GetCurrentThread() | Lioncash | 2 | -2/+4 | |
Now both CPU backends go through their referenced system instance to obtain the current thread. | |||||
2020-01-31 | kernel/physical_core: Make use of std::unique_ptr | Lioncash | 2 | -4/+10 | |
shared_ptr was used in 2d1984c20c75e03ec79eeb3806b12efa1679b977 due to a misunderstanding of how the language generates move constructors and move assignment operators. If a destructor is user-provided, then the compiler won't generate the move constructor and move assignment operators by default--they must be explicitly opted into. The reason for the compilation errors is due to the fact that the language will fall back to attempting to use the copy constructor/copy assignment operators if the respective move constructor or move assignment operator is unavailable. Given that we explicitly opt into them now, the the move constructor and move assignment operators will be generated as expected. | |||||
2020-01-31 | core/cpu_manager: Remove unused includes | Lioncash | 1 | -2/+0 | |
Nothing from these headers are used within this source file, so we can remove them. | |||||
2020-01-31 | kernel/physical_core: Remove unused kernel reference member variable | Lioncash | 3 | -11/+7 | |
This isn't used within the class, so it can be removed to simplify the overall interface. While we're in the same area, we can simplify a unique_ptr reset() call. | |||||
2020-01-30 | gl_rasterizer: Fix instanced draw arrays | ReinUsesLisp | 2 | -106/+28 | |
glDrawArrays was being used when the draw had a base instance specified. This commit removes the draw parameters abstraction and fixes the mentioned issue. | |||||
2020-01-29 | yuzu/bootmanager: Define Vulkan widget only when enabled | ReinUsesLisp | 1 | -0/+2 | |
2020-01-29 | yuzu_cmd: Fix memcpy on Vulkan handlers | ReinUsesLisp | 2 | -9/+10 | |
2020-01-29 | yuzu: Implement Vulkan frontend | ReinUsesLisp | 24 | -171/+1089 | |
Adds a Qt and SDL2 frontend for Vulkan. It also finishes the missing bits on Vulkan initialization. | |||||
2020-01-29 | web_service/telemetry_json: Report USER_CONFIG | ReinUsesLisp | 1 | -0/+1 | |
2020-01-29 | settings: Add settings for graphics backend | ReinUsesLisp | 6 | -3/+48 | |
2020-01-29 | core: Only wait for idle on gpu_core when it was initialized | ReinUsesLisp | 1 | -1/+3 | |
This fixes crashes when a Vulkan device fails to initialize. | |||||
2020-01-29 | shader/other: Fix skips for SYNC and BRK | ReinUsesLisp | 1 | -2/+2 | |
2020-01-29 | shader/other: Stub S2R LaneId | ReinUsesLisp | 1 | -1/+4 | |
2020-01-29 | buffer_cache: Delay buffer destructions | ReinUsesLisp | 1 | -1/+4 | |
Delay buffer destruction some extra frames to avoid destroying buffers that are still being used from older frames. This happens on Nvidia's driver with mailbox. | |||||
2020-01-29 | clang | CJBok | 1 | -2/+2 | |
2020-01-29 | minor corrections | CJBok | 1 | -2/+2 | |
2020-01-28 | GUI: Togglable graphics settings buttons in status bar | CJBok | 2 | -7/+95 | |
2020-01-28 | gl_shader_decompiler: Remove UNIMPLEMENTED for gl_PointSize | ReinUsesLisp | 1 | -1/+0 | |
This was implemented by a previous commit and it's no longer required. | |||||
2020-01-28 | gl_texture_cache: Silence implicit sign cast warnings | ReinUsesLisp | 1 | -3/+6 | |
2020-01-27 | System: Address Feedback | Fernando Sahmkow | 11 | -24/+30 | |
2020-01-27 | shader/bfi: Implement register-constant buffer variant | ReinUsesLisp | 2 | -2/+7 | |
It's the same as the variant that was implemented, but it takes the operands from another source. | |||||
2020-01-27 | shader/arithmetic: Implement FCMP | ReinUsesLisp | 2 | -1/+17 | |
Compares the third operand with zero, then selects between the first and second. | |||||
2020-01-27 | texture_cache/surface_base: Fix layered break down | ReinUsesLisp | 1 | -1/+1 | |
Layered break downs was passing "layer" as a "depth" parameter. This commit addresses that. | |||||
2020-01-27 | gl_texture_cache: Properly implement depth/stencil sampling | ReinUsesLisp | 1 | -4/+27 | |
This addresses the long standing issue of compatibility vs. core profiles on OpenGL, properly implementing depth vs. stencil sampling depending on the texture swizzle. | |||||
2020-01-26 | System: Correct PrepareReschedule. | Fernando Sahmkow | 1 | -1/+1 | |
2020-01-26 | Kernel: Remove a few global instances from the kernel. | Fernando Sahmkow | 2 | -2/+2 | |
2020-01-26 | Core: Refactor CpuCoreManager to CpuManager and Cpu to Core Manager. | Fernando Sahmkow | 15 | -128/+115 | |
This commit instends on better naming the new purpose of this classes. | |||||
2020-01-26 | ArmInterface: Delegate Exclusive monitor factory to exclusive monitor interfasce. | Fernando Sahmkow | 3 | -16/+24 | |
2020-01-26 | shader/memory: Implement ATOM.ADD | ReinUsesLisp | 5 | -39/+86 | |
ATOM operates atomically on global memory. For now only add ATOM.ADD since that's what was found in commercial games. This asserts for ATOM.ADD.S32 (handling the others as unimplemented), although ATOM.ADD.U32 shouldn't be any different. This change forces us to change the default type on SPIR-V storage buffers from float to uint. We could also alias the buffers, but it's simpler for now to just use uint. While we are at it, abstract the code to avoid repetition. | |||||
2020-01-25 | Core: Refactor CPU Management. | Fernando Sahmkow | 10 | -224/+168 | |
This commit moves ARM Interface and Scheduler handling into the kernel. | |||||
2020-01-25 | Shader_IR: Address feedback. | Fernando Sahmkow | 10 | -36/+40 | |
2020-01-25 | shader/memory: Implement STL.S16 and STS.S16 | ReinUsesLisp | 1 | -3/+10 | |
2020-01-25 | shader/memory: Implement unaligned LDL.S16 and LDS.S16 | ReinUsesLisp | 1 | -5/+3 | |
2020-01-25 | shader/memory: Move unaligned load/store to functions | ReinUsesLisp | 1 | -18/+27 | |
2020-01-25 | shader/memory: Implement LDL.S16 and LDS.S16 | ReinUsesLisp | 1 | -12/+23 | |
2020-01-25 | bsd: Stub several more functions. | bunnei | 2 | -4/+48 | |
- Required for Little Town Hero to boot further. | |||||
2020-01-24 | Disable clang-format for font files | FearlessTobi | 3 | -0/+6 | |
2020-01-24 | Shader_IR: Change name of TrackSampler function so it does not confuse with the type. | Fernando Sahmkow | 3 | -7/+10 | |
2020-01-24 | Shader_IR: Corrections, styling and extras. | Fernando Sahmkow | 1 | -2/+4 | |
2020-01-24 | Shader_IR: Correct Custom Variable assignment. | Fernando Sahmkow | 2 | -0/+4 | |
2020-01-24 | Shader_IR: Propagate bindless index into the GL compiler. | Fernando Sahmkow | 5 | -24/+54 | |
2020-01-24 | Shader_IR: Implement Injectable Custom Variables to the IR. | Fernando Sahmkow | 5 | -1/+70 | |
2020-01-24 | GL Backend: Introduce indexed samplers into the GL backend | Fernando Sahmkow | 2 | -10/+39 | |
2020-01-24 | Shader_IR: deduce size of indexed samplers | Fernando Sahmkow | 4 | -8/+60 | |
2020-01-24 | Shader_IR: Setup Indexed Samplers on the IR | Fernando Sahmkow | 1 | -20/+46 | |
2020-01-24 | Shader_IR: Implement initial code for tracking indexed samplers. | Fernando Sahmkow | 4 | -0/+139 | |
2020-01-24 | Shader_IR: Address Feedback | Fernando Sahmkow | 5 | -35/+37 | |
2020-01-24 | Shader_IR: Allow constant access of guest driver. | Fernando Sahmkow | 7 | -1/+18 | |
2020-01-24 | Shader_IR: Address Feedback | Fernando Sahmkow | 4 | -21/+29 | |
2020-01-24 | Guest_driver: Correct compiling errors in GCC. | Fernando Sahmkow | 2 | -1/+5 | |
2020-01-24 | Shader_IR: Store Bound buffer on Shader Usage | Fernando Sahmkow | 5 | -5/+41 | |
2020-01-24 | GPU: Implement guest driver profile and deduce texture handler sizes. | Fernando Sahmkow | 13 | -0/+127 | |
2020-01-24 | Kernel: Implement Physical Core. | Fernando Sahmkow | 2 | -0/+81 | |
2020-01-24 | vk_shader_decompiler: Disable default values on unwritten render targets | ReinUsesLisp | 3 | -19/+16 | |
Some games like The Legend of Zelda: Breath of the Wild assign render targets without writing them from the fragment shader. This generates Vulkan validation errors, so silence these I previously introduced a commit to set "vec4(0, 0, 0, 1)" for these attachments. The problem is that this is not what games expect. This commit reverts that change. | |||||
2020-01-24 | audio_core: Switch to a faster interpolation technique | FearlessTobi | 2 | -48/+159 | |
2020-01-24 | yuzu/configuration: create UI tab and move gamelist settings there | FearlessTobi | 8 | -104/+76 | |
2020-01-23 | common/logging: don't use regex for path trimming | BreadFish64 | 4 | -36/+23 | |
2020-01-23 | Replace GetString with Get function | FearlessTobi | 1 | -2/+2 | |
This should hopefully fix compilation errors. | |||||
2020-01-23 | Address second part of review comments | FearlessTobi | 4 | -14/+18 | |
2020-01-23 | Address review comments | FearlessTobi | 4 | -65/+72 | |
2020-01-23 | Input: UDP Client to provide motion and touch controls | fearlessTobi | 13 | -4/+897 | |
An implementation of the cemuhook motion/touch protocol, this adds the ability for users to connect several different devices to citra to send direct motion and touch data to citra. Co-Authored-By: jroweboy <jroweboy@gmail.com> | |||||
2020-01-23 | service: time: Implement ToPosixTimeWithMyRule. | bunnei | 4 | -1/+34 | |
- Used by Pokemon Mystery Dungeon. | |||||
2020-01-23 | loader: provide default arguments (zero byte) to NSOs | Michael Scire | 2 | -3/+10 | |
Certain newer unity games (Terraria, Pokemon Mystery Dungeon) require that the argument region be populated. Failure to do so results in an integer underflow in argument count, and eventually an unmapped read at 0x800000000. Providing this default fixes this. Note that the behavior of official software is as yet unverified, arguments-wise. | |||||
2020-01-22 | GUI: fix minor issues with dark themes | Bartosz Kaszubowski | 1 | -3/+3 | |
GUI: rename and reorder themes | |||||
2020-01-21 | gl_shader_cache: Disable fastmath on Nvidia | ReinUsesLisp | 1 | -0/+4 | |
2020-01-20 | vk_blit_screen: Address feedback | ReinUsesLisp | 4 | -22/+25 | |
2020-01-20 | time: Fix month off-by-one error. | bunnei | 1 | -2/+2 | |
- Fixes timestamp in ZLA and Astral Chain saves. | |||||
2020-01-20 | yuzu_qt: config: Move audio to its own tab. | bunnei | 1 | -3/+3 | |
- We have some important audio settings, makes them more discoverable. | |||||
2020-01-20 | vk_blit_screen: Initial implementation | ReinUsesLisp | 3 | -0/+745 | |
This abstraction takes care of presenting accelerated and non-accelerated or "framebuffer" images to the Vulkan swapchain. | |||||
2020-01-19 | GUI/gamelist: add "None" as an option for second row and remove dynamically duplicate row options (#3309) | Bartosz Kaszubowski | 3 | -14/+53 | |
* GUI/gamelist: add "None" as an option for second row and remove duplicated row options * fix clang-format warnings | |||||
2020-01-19 | vk_shader_decompiler: Implement UAtomicAdd (ATOMS) on SPIR-V | ReinUsesLisp | 1 | -3/+11 | |
Also updates sirit to include atomic instructions. | |||||
2020-01-19 | system_archive: Fix Chinese font | FearlessTobi | 2 | -13582/+694524 | |
Adds the proper OSS font for the Chinese language. | |||||
2020-01-19 | system_archive: Fix Korean font | FearlessTobi | 2 | -13582/+185637 | |
Fixes Korean fonts when using Open-source system archives. | |||||
2020-01-19 | CMake: Create thin archives on Linux | Léo Lam | 1 | -0/+9 | |
This significantly reduces unnecessary disk writes and space usage when building Citra. libcore.a is now only ~1MB rather than several hundred megabytes. | |||||
2020-01-18 | gl_state: Use bool instead of GLboolean | ReinUsesLisp | 2 | -3/+3 | |
This fixes template resolution considering GLboolean an integer instead of a bool. | |||||
2020-01-18 | vk_graphics_pipeline: Set front facing properly | ReinUsesLisp | 2 | -2/+2 | |
Front face was being forced to a certain value when cull face is disabled. Set a default value on initialization and drop the forcefully set front facing value with culling disabled. | |||||
2020-01-18 | core/memory: Create a special MapMemoryRegion for physical memory. | Markus Wick | 4 | -4/+31 | |
This allows us to create a fastmem arena within the memory.cpp helpers. | |||||
2020-01-18 | core/hle: Simplify PhysicalMemory usage in vm_manager. | Markus Wick | 1 | -23/+11 | |
2020-01-18 | core/loaders: Simplify PhysicalMemory usage. | Markus Wick | 3 | -8/+12 | |
It is currently a std::vector, however we might want to replace it with a more fancy allocator. So we can't use the C++ iterators any more. | |||||
2020-01-18 | Remove unused CPU Vendor string and telemtry field | James Rowe | 3 | -114/+0 | |
The information is duplicated in the brand string and the telemetry field is unused | |||||
2020-01-18 | vk_rasterizer: Address feedback | ReinUsesLisp | 2 | -25/+32 | |
2020-01-18 | gl_shader_decompiler: Fix decompilation of condition codes | ReinUsesLisp | 1 | -27/+5 | |
Use Visit instead of reimplementing it. Fixes unimplemented negations for condition codes. | |||||
2020-01-18 | Add headbar icon on Linux | TotalCaesar659 | 1 | -1/+1 | |
2020-01-17 | vk_rasterizer: Implement Vulkan's rasterizer | ReinUsesLisp | 3 | -1/+1386 | |
This abstraction is Vulkan's equivalent to OpenGL's rasterizer. It takes care of joining all parts of the backend and rendering accordingly on demand. | |||||
2020-01-17 | renderer_vulkan: Add header as placeholder | ReinUsesLisp | 2 | -0/+73 | |
2020-01-16 | vk_texture_cache: Address feedback | ReinUsesLisp | 2 | -22/+8 | |
2020-01-16 | shader/memory: Implement ATOMS.ADD.U32 | ReinUsesLisp | 5 | -3/+74 | |
2020-01-16 | format_lookup_table: Fix ZF32_X24S8 component types | ReinUsesLisp | 1 | -1/+1 | |
Component types for ZF32_X24S8 were using UNORM. Drivers will set FLOAT, UINT, UNORM, UNORM; causing a format mismatch. This commit addresses that. | |||||
2020-01-16 | vk_texture_cache: Fix typo in commentary | Rodrigo Locatti | 1 | -1/+1 | |
Co-Authored-By: MysticExile <30736337+MysticExile@users.noreply.github.com> | |||||
2020-01-16 | maxwell_3d: Make dirty_pointers private | Lioncash | 1 | -2/+2 | |
This isn't used outside of the class itself, so we can make it private for the time being. | |||||
2020-01-16 | Fix git version in scm_rev.cpp | James Rowe | 1 | -0/+5 | |
2020-01-15 | gl_state: Implement PROGRAM_POINT_SIZE | ReinUsesLisp | 4 | -2/+13 | |
For gl_PointSize to have effect we have to activate GL_PROGRAM_POINT_SIZE. | |||||
2020-01-15 | renderer_opengl/utils: Remove unused header inclusions | Lioncash | 1 | -3/+0 | |
Nothing from these headers are used, so they can be removed. | |||||
2020-01-15 | renderer_opengl/utils: Forward declare private structs | Lioncash | 2 | -12/+16 | |
Keeps the definitions hidden and allows changes to the structs without needing to recompile all users of classes containing said structs. | |||||
2020-01-15 | Moved analog direction logic to sdl_impl | CJBok | 3 | -9/+48 | |
2020-01-14 | Corrected directional states sensitivity | CJBok | 1 | -9/+9 | |
2020-01-14 | gl_texture_cache: Use local variables to simplify DownloadTexture | ReinUsesLisp | 1 | -6/+4 | |
2020-01-14 | gl_texture_cache: Fix format for RGBX16F | ReinUsesLisp | 1 | -1/+1 | |
2020-01-14 | gl_texture_cache: Use Snorm internal format for RG8S | ReinUsesLisp | 1 | -1/+1 | |
2020-01-14 | gl_texture_cache: Use Snorm internal format for ABGR8S | ReinUsesLisp | 1 | -1/+1 | |
2020-01-14 | control_flow: Silence -Wreorder warning for CFGRebuildState | Lioncash | 1 | -1/+1 | |
Organizes the initializer list in the same order that the variables would actually be initialized in. | |||||
2020-01-14 | gl_shader_cache: Remove unused STAGE_RESERVED_UBOS constant | Lioncash | 1 | -3/+0 | |
Given this isn't used, this can be removed entirely. | |||||
2020-01-14 | gl_shader_cache: std::move entries in CachedShader constructor | Lioncash | 1 | -3/+4 | |
Avoids several reallocations of std::vector instances where applicable. | |||||
2020-01-14 | gl_shader_cache: Remove unused entries variable in BuildShader() | Lioncash | 1 | -1/+0 | |
Eliminates a few unnecessary constructions of std::vectors. | |||||
2020-01-14 | vk_texture_cache: Implement generic texture cache on Vulkan | ReinUsesLisp | 4 | -1/+733 | |
It currently ignores PBO linearizations since these should be dropped as soon as possible on OpenGL. | |||||
2020-01-14 | texture_cache/surface_params: Make GetNumLayers public | ReinUsesLisp | 1 | -4/+5 | |
2020-01-13 | GUI: add few missing hotkeys to main menu | Bartosz Kaszubowski | 2 | -0/+17 | |
2020-01-12 | GUI/configure: resize hotkeys column to content | Bartosz Kaszubowski | 1 | -0/+1 | |
2020-01-11 | core/kernel: Fix GetTotalPhysicalMemoryUsed. | Markus Wick | 1 | -2/+2 | |
module._memory was already moved over to a new shared_ptr. So code_memory_size was not increased at all. This lowers the heap space and so saves a bit of memory, usually between 50 to 100 MB. This fixes a regression of c0a01f3adc466d07fc27020048e82cca60988970 | |||||
2020-01-11 | vk_compute_pass: Address feedback | Rodrigo Locatti | 1 | -0/+2 | |
Comment hardcoded SPIR-V modules. | |||||
2020-01-10 | maxwell_to_vk: Implement GL_CLAMP hacking Nvidia's driver | ReinUsesLisp | 3 | -6/+11 | |
Nvidia's driver defaults invalid enumerations to GL_CLAMP. Vulkan doesn't expose GL_CLAMP through its API, but we can hack it on Nvidia's driver using the internal driver defaults. | |||||
2020-01-09 | shader_ir/texture: Simplify AOFFI code | ReinUsesLisp | 1 | -10/+6 | |
2020-01-09 | shader_ir/memory: Implement u16 and u8 for STG and LDG | ReinUsesLisp | 2 | -34/+52 | |
Using the same technique we used for u8 on LDG, implement u16. In the case of STG, load memory and insert the value we want to set into it with bitfieldInsert. Then set that value. | |||||
2020-01-09 | hid: Fix analog sticks directional states | CJBok | 1 | -12/+12 | |
2020-01-08 | vk_compute_pass: Add compute passes to emulate missing Vulkan features | ReinUsesLisp | 3 | -0/+416 | |
This currently only supports quad arrays and u8 indices. In the future we can remove quad arrays with a table written from the CPU, but this was used to bootstrap the other passes helpers and it was left in the code. The blob code is generated from the "shaders/" directory. Read the instructions there to know how to generate the SPIR-V. | |||||
2020-01-08 | vk_shader_util: Add helper to build SPIR-V shaders | ReinUsesLisp | 3 | -0/+53 | |
2020-01-07 | vk_pipeline_cache: Initial implementation | ReinUsesLisp | 2 | -1/+460 | |
Given a pipeline key, this cache returns a pipeline abstraction (for graphics or compute). | |||||
2020-01-07 | vk_graphics_pipeline: Initial implementation | ReinUsesLisp | 4 | -0/+395 | |
This abstractio represents the state of the 3D engine at a given draw. Instead of changing individual bits of the pipeline how it's done in APIs like D3D11, OpenGL and NVN; on Vulkan we are forced to put everything together into a single, immutable object. It takes advantage of the few dynamic states Vulkan offers. | |||||
2020-01-07 | vk_compute_pipeline: Initial implementation | ReinUsesLisp | 4 | -0/+219 | |
This abstraction represents a Vulkan compute pipeline. | |||||
2020-01-07 | vk_pipeline_cache: Add file and define descriptor update template filler | ReinUsesLisp | 3 | -0/+67 | |
This function allows us to share code between compute and graphics pipelines compilation. | |||||
2020-01-07 | fixed_pipeline_state: Add depth clamp | ReinUsesLisp | 2 | -10/+18 | |
2020-01-07 | vk_rasterizer: Add placeholder | ReinUsesLisp | 2 | -0/+14 | |
2020-01-06 | vk_renderpass_cache: Initial implementation | ReinUsesLisp | 3 | -0/+199 | |
The renderpass cache is used to avoid creating renderpasses on each draw. The hashed structure is not currently optimized. | |||||
2020-01-06 | vk_update_descriptor: Initial implementation | ReinUsesLisp | 3 | -1/+146 | |
The update descriptor is used to store in flat memory a large chunk of staging data used to update descriptor sets through templates. It provides a push interface to easily insert descriptors following the current pipeline. The order used in the descriptor update template has to be implicitly followed. We can catch bugs here using validation layers. | |||||
2020-01-06 | vk_stream_buffer/vk_buffer_cache: Avoid halting and use generic cache | ReinUsesLisp | 4 | -62/+340 | |
The stream buffer before this commit once it was full (no more bytes to write before looping) waiting for all previous operations to finish. This was a temporary solution and had a noticeable performance penalty in performance (from what a profiler showed). To avoid this mark with fences usages of the stream buffer and once it loops wait for them to be signaled. On average this will never wait. Each fence knows where its usage finishes, resulting in a non-paged stream buffer. On the other side, the buffer cache is reimplemented using the generic buffer cache. It makes use of the staging buffer pool and the new stream buffer. | |||||
2020-01-06 | vk_memory_manager: Misc changes | ReinUsesLisp | 2 | -88/+142 | |
* Allocate memory in discrete exponentially increasing chunks until the 128 MiB threshold. Allocations larger thant that increase linearly by 256 MiB (depending on the required size). This allows to use small allocations for small resources. * Move memory maps to a RAII abstraction. To optimize for debugging tools (like RenderDoc) users will map/unmap on usage. If this ever becomes a noticeable overhead (from my profiling it doesn't) we can transparently move to persistent memory maps without harming the API, getting optimal performance for both gameplay and debugging. * Improve messages on exceptional situations. * Fix typos "requeriments" -> "requirements". * Small style changes. | |||||
2020-01-06 | vk_buffer_cache: Temporarily remove buffer cache | ReinUsesLisp | 2 | -226/+0 | |
This is intended for a follow up commit to avoid circular dependencies. | |||||
2020-01-06 | yuzu/bootmanager: Remove {glx,wgl}MakeCurrent on SwapBuffers | ReinUsesLisp | 1 | -9/+2 | |
MakeCurrent is a costly (according to Nsight's profiler it takes a tenth of a millisecond to complete), and we don't have a reason to call it because: - Qt no longer signals a warning if it's not called - yuzu no longer supports macOS | |||||
2020-01-05 | service: time: Implement GetStandardLocalSystemClock. | bunnei | 3 | -1/+9 | |
2020-01-04 | time: Remove overflow error checking (currently breaks ADO builds). | bunnei | 2 | -18/+2 | |
2020-01-04 | service: time: Implement GetClockSnapshotFromSystemClockContext. | bunnei | 3 | -3/+27 | |
2020-01-04 | service: time: Implement IsStandardNetworkSystemClockAccuracySufficient. | bunnei | 5 | -1/+51 | |
2020-01-04 | system_archive: Add a basic HLE implementation for time zone binary. | bunnei | 4 | -1/+675 | |
2020-01-04 | service: time: Rewrite implementation of glue services. | bunnei | 35 | -444/+2834 | |
2020-01-04 | Shader_IR: Address Feedback | Fernando Sahmkow | 5 | -38/+19 | |
2020-01-04 | core: Initialize several structs that make use of Common::UUID. | bunnei | 5 | -100/+101 | |
2020-01-04 | Shader_IR: Implement TXD Array. | Fernando Sahmkow | 1 | -5/+12 | |
This commit extends the compilation of TXD to support array samplers on TXD. | |||||
2020-01-04 | service: vi: Implement CloseLayer. | bunnei | 5 | -11/+48 | |
- Needed for Undertale. | |||||
2020-01-03 | Update src/video_core/renderer_vulkan/vk_descriptor_pool.cpp | Rodrigo Locatti | 1 | -1/+1 | |
Co-Authored-By: Mat M. <mathew1800@gmail.com> | |||||
2020-01-03 | const correction | CJBok | 1 | -1/+1 | |
2020-01-03 | clang | CJBok | 1 | -22/+22 | |
2020-01-03 | Update configure_input_player.cpp | CJBok | 1 | -23/+23 | |
2020-01-03 | Added deadzone controls for sdl engine at input settings | CJBok | 3 | -24/+129 | |
2020-01-03 | yuzu: Remove Maxwell debugger | ReinUsesLisp | 14 | -640/+0 | |
This was carried from Citra and wasn't really used on yuzu. It also adds some runtime overhead. This commit removes it from yuzu's codebase. | |||||
2020-01-01 | vk_descriptor_pool: Initial implementation | ReinUsesLisp | 3 | -0/+147 | |
Create a large descriptor pool where we allocate all our descriptors from. It has to be wide enough to support any pipeline, hence its large numbers. If the descritor pool is filled, we allocate more memory at that moment. This way we can take advantage of permissive drivers like Nvidia's that allocate more descriptors than what the spec requires. | |||||
2020-01-01 | core/memory + arm/dynarmic: Use a global offset within our arm page table. | Markus Wick | 2 | -9/+17 | |
This saves us two x64 instructions per load/store instruction. TODO: Clean up our memory code. We can use this optimization here as well. | |||||
2019-12-30 | Shader_IR: add the ability to amend code in the shader ir. | Fernando Sahmkow | 5 | -3/+72 | |
This commit introduces a mechanism by which shader IR code can be amended and extended. This useful for track algorithms where certain information can derived from before the track such as indexes to array samplers. | |||||
2019-12-30 | vk_image: Avoid unnecesary equals | Rodrigo Locatti | 1 | -1/+1 | |
2019-12-30 | video_core: Block in WaitFence. | Markus Wick | 3 | -5/+9 | |
This function is called rarely and blocks quite often for a long time. So don't waste power and let the CPU sleep. This might also increase the performance as the other cores might be allowed to clock higher. | |||||
2019-12-29 | vk_staging_buffer_pool: Initialize last epoch to zero | Rodrigo Locatti | 1 | -1/+1 | |
2019-12-26 | gl_rasterizer: Allow rendering without fragment shader | ReinUsesLisp | 2 | -0/+7 | |
Rendering without a fragment shader is usually used in depth-only passes. | |||||
2019-12-25 | vk_staging_buffer_pool: Add a staging pool for temporary operations | ReinUsesLisp | 3 | -0/+212 | |
The job of this abstraction is to provide staging buffers for temporary operations. Think of image uploads or buffer uploads to device memory. It automatically deletes unused buffers. | |||||
2019-12-25 | vk_image: Add an image object abstraction | ReinUsesLisp | 3 | -0/+192 | |
This object's job is to contain an image and manage its transitions. Since Nvidia hardware doesn't know what a transition is but Vulkan requires them anyway, we have to state track image subresources individually. To avoid the overhead of tracking each subresource in images with many subresources (think of cubemap arrays with several mipmaps), this commit tracks when subresources have diverged. As long as this doesn't happen we can check the state of the first subresource (that will be shared with all subresources) and update accordingly. Image transitions are deferred to the scheduler command buffer. | |||||
2019-12-25 | NvServices: Correct Ioctl Remap. | Fernando Sahmkow | 2 | -3/+5 | |
This commit corrects a padding value in Ioctl Remap that was actually an offset to the mapping address. | |||||
2019-12-24 | fixed_pipeline_state: Define symetric operator!= and mark as noexcept | ReinUsesLisp | 2 | -40/+92 | |
Marks as noexcept Hash, operator== and operator!= for consistency. | |||||
2019-12-23 | fixed_pipeline_state: Define structure and loaders | ReinUsesLisp | 3 | -0/+528 | |
The intention behind this hasheable structure is to describe the state of fixed function pipeline state that gets compiled to a single graphics pipeline state object. This is all dynamic state in OpenGL but Vulkan wants it in an immutable state, even if hardware can edit it freely. In this commit the structure is defined in an optimized state (it uses booleans, has paddings and many data entries that can be packed to single integers). This is intentional as an initial implementation that is easier to debug, implement and review. It will be optimized in later stages, or it might change if Vulkan gets more dynamic states. | |||||
2019-12-23 | maxwell_3d: Add depth bounds registers | ReinUsesLisp | 1 | -6/+14 | |
2019-12-23 | maxwell_to_gl: Implement missing primitive topologies | ReinUsesLisp | 1 | -4/+18 | |
Many of these topologies are exclusively available in OpenGL. | |||||
2019-12-22 | Texture Cache: Improve documentation | Fernando Sahmkow | 2 | -4/+5 | |
2019-12-22 | Texture Cache: Address Feedback | Fernando Sahmkow | 2 | -11/+11 | |
2019-12-22 | Texture Cache: Add HLE methods for building 3D textures within the GPU in certain scenarios. | Fernando Sahmkow | 4 | -1/+143 | |
This commit adds a series of HLE methods for handling 3D textures in general. This helps games that generate 3D textures on every frame and may reduce loading times for certain games. | |||||
2019-12-21 | gl_shader_cache: Update commentary for shared memory | ReinUsesLisp | 1 | -9/+6 | |
Remove false commentary. Not dividing by 4 the size of shared memory is not a hack; it describes the number of integers, not bytes. While we are at it sort the generated code to put preprocessor lines on the top. | |||||
2019-12-21 | gl_shader_cache: Remove unused entry in GetPrimitiveDescription | ReinUsesLisp | 1 | -11/+9 | |
2019-12-21 | vk_shader_decompiler: Use Visit instead of reimplementing it | ReinUsesLisp | 1 | -23/+1 | |
ExprCondCode visit implements the generic Visit. Use this instead of that one. As an intended side effect this fixes unwritten memory usages in cases when a negation of a condition code is used. | |||||
2019-12-20 | shader/p2r: Implement P2R Pr | ReinUsesLisp | 1 | -1/+15 | |
P2R dumps predicate or condition codes state to a register. This is useful for unit testing. | |||||
2019-12-20 | shader/r2p: Refactor P2R to support P2R | ReinUsesLisp | 2 | -17/+33 | |
2019-12-19 | vk_resource_manager: Add entry to VKFence to test its usage | ReinUsesLisp | 1 | -0/+8 | |
2019-12-19 | vk_reosurce_manager: Add assert for releasing fences | ReinUsesLisp | 1 | -0/+1 | |
Notify the programmer when a request to release a fence is invalid because the fence is already free. | |||||
2019-12-19 | vk_resource_manager: Implement VKFenceWatch move constructor | ReinUsesLisp | 2 | -0/+32 | |
This allows us to put VKFenceWatch inside a std::vector without storing it in heap. On move we have to signal the fences where the new protected resource is, adding some overhead. | |||||
2019-12-19 | vk_device: Add entry to catch device losses | ReinUsesLisp | 3 | -1/+40 | |
VK_NV_device_diagnostic_checkpoints allows us to push data to a Vulkan queue and then query it even after a device loss. This allows us to push the current pipeline object and see what was the call that killed the device. | |||||
2019-12-19 | vk_shader_decompiler: Fix full decompilation | ReinUsesLisp | 1 | -3/+5 | |
When full decompilation was enabled, labels were not being inserted and instructions were misused. Fix these bugs. | |||||
2019-12-19 | vk_shader_decompiler: Skip NDC correction when it is native | ReinUsesLisp | 2 | -1/+2 | |
Avoid changing gl_Position when the NDC used by the game is [0, 1] (Vulkan's native). | |||||
2019-12-19 | vk_shader_decompiler: Normalize output fragment attachments | ReinUsesLisp | 2 | -12/+12 | |
Some games write from fragment shaders to an unexistant framebuffer attachment or they don't write to one when it exists in the framebuffer. Fix this by skipping writes or adding zeroes. | |||||
2019-12-19 | vk_device: Add query for RGBA8Uint | ReinUsesLisp | 1 | -0/+1 | |
2019-12-19 | vk_shader_decompiler: Update sirit and implement Texture AOFFI | ReinUsesLisp | 1 | -22/+30 | |
2019-12-18 | gl_rasterizer: Implement RASTERIZE_ENABLE | ReinUsesLisp | 6 | -4/+28 | |
RASTERIZE_ENABLE is the opposite of GL_RASTERIZER_DISCARD. Implement it naturally using this. NVN games expect rasterize to be enabled by default, reflect that in our initial GPU state. | |||||
2019-12-18 | shader/memory: Implement LDG.U8 and unaligned U8 loads | ReinUsesLisp | 1 | -6/+32 | |
LDG can load single bytes instead of full integers or packs of integers. These have the advantage of loading bytes that are not aligned to 4 bytes. To emulate these this commit gets the byte being referenced (by doing "address & 3" and then using that to extract the byte from the loaded integer: result = bitfieldExtract(loaded_integer, (address % 4) * 8, 8) | |||||
2019-12-18 | shader/conversion: Implement byte selector in I2F | ReinUsesLisp | 1 | -2/+13 | |
I2F's byte selector is used to choose what bytes to convert to float. e.g. if the input is 0xaabbccdd and the selector is ".B3" it will convert 0xaa. The default (when it's not shown in nvdisasm) is ".B0", in that example the default would convert 0xdd to float. | |||||
2019-12-18 | shader/texture: Properly shrink unused entries in size mismatches | ReinUsesLisp | 1 | -4/+9 | |
When a image format mismatches we were inserting zeroes to the texture itself. This was not handling cases were the mismatch uses less coordinates than the guest shader code. Address that by resizing the vector. | |||||
2019-12-18 | gl_shader_decompiler: Add missing DeclareImages | ReinUsesLisp | 1 | -0/+1 | |
2019-12-18 | shader_bytecode: Fix TLD4S encoding | ReinUsesLisp | 1 | -1/+1 | |
2019-12-17 | common: SPSCQueue: Notify after incrementing queue size. | bunnei | 1 | -2/+9 | |
2019-12-16 | renderer_vulkan/shader: Add helper GLSL shaders | ReinUsesLisp | 4 | -0/+122 | |
These shaders are used to specify code that is not dynamically generated in the Vulkan backend. Instead of packing it inside the build system, it's manually built and copied to the C++ file to avoid adding unnecessary build time dependencies. quad_array should be dropped in the future since it can be emulated with a memory pool generated from the CPU. | |||||
2019-12-16 | shader/texture: Implement TLD4.PTP | ReinUsesLisp | 5 | -56/+120 | |
2019-12-16 | shader/texture: Enable arrayed TLD4 | ReinUsesLisp | 1 | -1/+0 | |
2019-12-16 | gl_shader_decompiler: Rename "sepparate" to "separate" | ReinUsesLisp | 1 | -3/+3 | |
2019-12-16 | shader/texture: Implement AOFFI for TLD4S | ReinUsesLisp | 1 | -13/+18 | |
2019-12-16 | shader/texture: Remove unnecesary parenthesis | ReinUsesLisp | 1 | -2/+2 | |
2019-12-13 | maxwell_to_vk: Improve image format table and add more formats | ReinUsesLisp | 2 | -89/+127 | |
A1B5G5R5 uses A1R5G5B5. This is flipped with image view swizzles; flushing is still not properly implemented on Vulkan for this particular format. | |||||
2019-12-13 | maxwell_to_vk: Implement more vertex formats | ReinUsesLisp | 1 | -7/+81 | |
2019-12-13 | maxwell_to_vk: Implement more primitive topologies | ReinUsesLisp | 2 | -2/+11 | |
Add an extra argument to query device capabilities in the future. The intention behind this is to use native quads, quad strips, line loops and polygons if these are released for Vulkan. | |||||
2019-12-13 | maxwell_to_vk: Approach GL_CLAMP closer to the GL spec | ReinUsesLisp | 3 | -9/+17 | |
The OpenGL spec defines GL_CLAMP's formula similarly to CLAMP_TO_EDGE and CLAMP_TO_BORDER depending on the filter mode used. It doesn't exactly behave like this, but it's the closest we can get with what Vulkan offers without emulating it by injecting shader code. | |||||
2019-12-13 | maxwell_to_vk: Use VK_EXT_index_type_uint8 when available | ReinUsesLisp | 2 | -4/+7 | |
2019-12-13 | vk_scheduler: Delegate commands to a worker thread and state track | ReinUsesLisp | 2 | -37/+311 | |
Introduce a worker thread approach for delegating Vulkan work derived from dxvk's approach. https://github.com/doitsujin/dxvk Now that the scheduler is what handles all Vulkan work related to command streaming, store state tracking in itself. This way we can know when to reupload Vulkan dynamic state to the queue (since this one is invalidated between command buffers unlike NVN). We can also store the renderpass state and graphics pipeline bound to avoid redundant binds and renderpass begins/ends. | |||||
2019-12-12 | Shader_IR: Correct TLD4S Depth Compare. | Fernando Sahmkow | 2 | -9/+16 | |
2019-12-12 | Shader_Ir: Correct TLD4S encoding and implement f16 flag. | Fernando Sahmkow | 3 | -11/+15 | |
2019-12-12 | Gl_Shader_compiler: Correct Depth Compare for Texture Gather operations. | Fernando Sahmkow | 1 | -8/+21 | |
2019-12-12 | Shader_Ir: default failed tracks on bindless samplers to null values. | Fernando Sahmkow | 2 | -24/+77 | |
2019-12-11 | Gl_Rasterizer: Skip Tesselation Control and Eval stages as they are un implemented. | Fernando Sahmkow | 1 | -0/+8 | |
This commit ensures the OGL backend does not execute tesselation shader stages as they are currently unimplemented. | |||||
2019-12-11 | Added missing include | Joel Holdsworth | 1 | -0/+1 | |
2019-12-11 | Kernel: Correct behavior of Address Arbiter threads. (#3165) | Fernando Sahmkow | 3 | -24/+67 | |
* Kernel: Correct behavior of Address Arbiter threads. This corrects arbitration threads to behave just like in Horizon OS. They are added into a container and released according to what priority they had when added. Horizon OS does not reorder them if their priority changes. * Kernel: Address Feedback. | |||||
2019-12-11 | kernel/svc: Correct function signature of SignalProcessWideKey | Lioncash | 2 | -9/+6 | |
This function doesn't actually return a result code, so we can amend the signature of it to match. | |||||
2019-12-11 | gl_device: Enable compute shaders for Intel Mesa drivers | ReinUsesLisp | 1 | -1/+4 | |
Previously we naively checked for "Intel" in GL_VENDOR, but this includes both Intel's proprietary driver and the mesa driver. Re-enable compute shaders for mesa. | |||||
2019-12-11 | gl_shader_cache: Add missing new-line on emitted GLSL | ReinUsesLisp | 1 | -2/+2 | |
Add missing new-line. This caused shaders using local memory and shared memory to inject a preprocessor GLSL line after an expression (resulting in invalid code). It looked like this: shared uint smem[8];#define LOCAL_MEMORY_SIZE 16 It should look like this (addressed by this commit): shared uint smem[8]; \#define LOCAL_MEMORY_SIZE 16 | |||||
2019-12-11 | Maxwell3D: Implement Depth Mode. | Fernando Sahmkow | 4 | -8/+15 | |
This commit finishes adding depth mode that was reverted before due to other unresolved issues. | |||||
2019-12-10 | shader: Implement MEMBAR.GL | ReinUsesLisp | 5 | -1/+46 | |
Implement using memoryBarrier in GLSL and OpMemoryBarrier on SPIR-V. | |||||
2019-12-10 | vk_shader_decompiler: Fix build issues on old gcc versions | ReinUsesLisp | 1 | -2/+3 | |
2019-12-10 | vk_shader_decompiler: Reduce YNegate's severity | ReinUsesLisp | 1 | -1/+1 | |
2019-12-10 | shader_ir/other: Implement S2R InvocationId | ReinUsesLisp | 4 | -0/+9 | |
2019-12-10 | vk_shader_decompiler: Misc changes | ReinUsesLisp | 2 | -697/+1648 | |
Update Sirit and its usage in vk_shader_decompiler. Highlights: - Implement tessellation shaders - Implement geometry shaders - Implement some missing features - Use native half float instructions when available. | |||||
2019-12-10 | shader: Keep track of shaders using warp instructions | ReinUsesLisp | 2 | -0/+8 | |
2019-12-10 | shader_ir/memory: Implement patch stores | ReinUsesLisp | 4 | -20/+38 | |
2019-12-09 | vk_device: Misc changes | ReinUsesLisp | 2 | -117/+276 | |
- Setup more features and requirements. - Improve logging for missing features. - Collect telemetry parameters. - Add queries for more image formats. - Query push constants limits. - Optionally enable some extensions. | |||||
2019-12-09 | externals: Update Vulkan-Headers | ReinUsesLisp | 2 | -2/+14 | |
2019-12-08 | kernel: Remove unnecessary includes | Lioncash | 15 | -11/+17 | |
Over the course of the changes to the kernel code, a few includes are no longer necessary, particularly with the change over to std::shared_ptr from Boost's intrusive_ptr. | |||||
2019-12-08 | kernel/svc: Provide implementations for svcDumpInfo/svcDumpInfoNew | Lioncash | 2 | -2/+24 | |
These are fairly trivial to implement, we can just do nothing. This also provides a spot for us to potentially dump out any relevant info in the future (e.g. for debugging purposes with homebrew, etc). While we're at it, we can also correct the names of both of these supervisor calls. | |||||
2019-12-07 | vk_swapchain: Add support for swapping sRGB | ReinUsesLisp | 2 | -24/+31 | |
We don't know until the game is running if it's using an sRGB color space or not. Add support for hot-swapping swapchain surface formats. | |||||
2019-12-07 | maxwell_3d: Add tessellation tess level registers | ReinUsesLisp | 1 | -1/+6 | |
2019-12-07 | maxwell_3d: Add tessellation mode register | ReinUsesLisp | 1 | -1/+28 | |
2019-12-07 | maxwell_3d: Add patch vertices register | ReinUsesLisp | 1 | -1/+4 | |
2019-12-07 | shader_bytecode: Remove corrupted character | ReinUsesLisp | 1 | -1/+1 | |
2019-12-05 | CpuCore: Clear exclusive state after doing a run in dynarmic. | Fernando Sahmkow | 2 | -1/+2 | |
This commit corrects an error in which a Core could remain with an exclusive state after running, leaving space for possible race conditions between changing cores. | |||||
2019-12-02 | telemetry_session: Report renderer backend | ReinUsesLisp | 1 | -0/+1 | |
We only have OpenGL as an option for now. Hardcode the entry. | |||||
2019-12-02 | telemetry_session: Use temporary to avoid writing the same enum | ReinUsesLisp | 1 | -16/+11 | |
2019-11-29 | texture_cache/surface_base: Fix out of bounds texture views | ReinUsesLisp | 1 | -7/+4 | |
Some texture views were being created out of bounds (with more layers or mipmaps than what the original texture has). This is because of a miscalculation in mipmap bounding. end_layer and end_mipmap are out of bounds (e.g. layer 6 in a cubemap), there's no need to add one more there. Fixes OpenGL errors and Vulkan crashes on Splatoon 2. | |||||
2019-11-29 | gl_framebuffer_cache: Optimize framebuffer key | ReinUsesLisp | 3 | -46/+60 | |
Pack color attachment enumerations into a single u32. To determine the number of buffers, the highest color attachment with a shared pointer that doesn't point to null is used. | |||||
2019-11-29 | gl_rasterizer: Re-enable framebuffer cache for clear buffers | ReinUsesLisp | 3 | -32/+15 | |
2019-11-29 | renderer_opengl: Make ScreenRectVertex's constructor constexpr | ReinUsesLisp | 1 | -12/+7 | |
2019-11-29 | renderer_opengl: Remove C casts | ReinUsesLisp | 1 | -4/+5 | |
2019-11-29 | renderer_opengl: Use explicit binding for presentation shaders | ReinUsesLisp | 2 | -34/+20 | |
2019-11-29 | renderer_opengl: Drop macros for message decorations | ReinUsesLisp | 1 | -21/+26 | |
2019-11-29 | renderer_opengl: Move static definitions to anonymous namespace | ReinUsesLisp | 1 | -62/+66 | |
2019-11-29 | renderer_opengl: Move commentaries to header file | ReinUsesLisp | 2 | -20/+13 | |
2019-11-28 | kernel: Implement a more accurate IPC dispatch. | bunnei | 19 | -167/+246 | |
2019-11-28 | patch_manager: Adds check for disabled cheats to prevent them from being enabled (#3178) | Morph | 1 | -5/+11 | |
* Adds check for disabled cheats to prevent them from being added to the CheatList * Address feedback | |||||
2019-11-27 | video_core/gpu_thread: Tidy up SwapBuffers() | Lioncash | 1 | -2/+1 | |
We can just use std::nullopt and std::make_optional to make this a little bit less noisy. | |||||
2019-11-27 | video_core/const_buffer_locker: Make use of std::tie in HasEqualKeys() | Lioncash | 1 | -2/+3 | |
Tidies it up a little bit visually. | |||||
2019-11-27 | video_core/const_buffer_locker: Remove unused includes | Lioncash | 2 | -2/+2 | |
2019-11-27 | video_core/const_buffer_locker: Remove #pragma once from cpp file | Lioncash | 1 | -2/+0 | |
Silences a compiler warning. | |||||
2019-11-27 | filesys/romfs: Remove unused includes | Lioncash | 2 | -4/+2 | |
These inclusions aren't used at all within the public interface, so they can be removed. | |||||
2019-11-27 | filesys/romfs: Make ProcessFile and ProcessDirectory internally linked | Lioncash | 1 | -2/+3 | |
These functions aren't used outside of this file, so we can place them within an anonymous namespace. | |||||
2019-11-27 | file_sys/directory: Make EntryType an enum class | Lioncash | 2 | -3/+3 | |
This can trivially be an enum class rather than a regular enum, making it more strongly typed. | |||||
2019-11-27 | core/memory; Migrate over SetCurrentPageTable() to the Memory class | Lioncash | 3 | -26/+34 | |
Now that literally every other API function is converted over to the Memory class, we can just move the file-local page table into the Memory implementation class, finally getting rid of global state within the memory code. | |||||
2019-11-27 | core/memory: Migrate over GetPointerFromVMA() to the Memory class | Lioncash | 1 | -36/+36 | |
Now that everything else is migrated over, this is essentially just code relocation and conversion of a global accessor to the class member variable. All that remains is to migrate over the page table. | |||||
2019-11-27 | core/memory: Migrate over Write{8, 16, 32, 64, Block} to the Memory class | Lioncash | 14 | -153/+298 | |
The Write functions are used slightly less than the Read functions, which make these a bit nicer to move over. The only adjustments we really need to make here are to Dynarmic's exclusive monitor instance. We need to keep a reference to the currently active memory instance to perform exclusive read/write operations. | |||||
2019-11-27 | core/memory: Migrate over Read{8, 16, 32, 64, Block} to the Memory class | Lioncash | 19 | -178/+305 | |
With all of the trivial parts of the memory interface moved over, we can get right into moving over the bits that are used. Note that this does require the use of GetInstance from the global system instance to be used within hle_ipc.cpp and the gdbstub. This is fine for the time being, as they both already rely on the global system instance in other functions. These will be removed in a change directed at both of these respectively. For now, it's sufficient, as it still accomplishes the goal of de-globalizing the memory code. | |||||
2019-11-27 | core/memory: Migrate over ZeroBlock() and CopyBlock() to the Memory class | Lioncash | 2 | -91/+161 | |
These currently aren't used anywhere in the codebase, so these are very trivial to move over to the Memory class. | |||||
2019-11-27 | core/memory: Migrate over RasterizerMarkRegionCached() to the Memory class | Lioncash | 3 | -70/+79 | |
This is only used within the accelerated rasterizer in two places, so this is also a very trivial migration. | |||||
2019-11-27 | core/memory: Migrate over ReadCString() to the Memory class | Lioncash | 3 | -18/+40 | |
This only had one usage spot, so this is fairly straightforward to convert over. | |||||
2019-11-27 | core/memory: Migrate over GetPointer() | Lioncash | 7 | -25/+53 | |
With all of the interfaces ready for migration, it's trivial to migrate over GetPointer(). | |||||
2019-11-27 | core: Prepare various classes for memory read/write migration | Lioncash | 24 | -61/+108 | |
Amends a few interfaces to be able to handle the migration over to the new Memory class by passing the class by reference as a function parameter where necessary. Notably, within the filesystem services, this eliminates two ReadBlock() calls by using the helper functions of HLERequestContext to do that for us. | |||||
2019-11-27 | core/memory: Move memory read/write implementation functions into an anonymous namespace | Lioncash | 1 | -97/+98 | |
These will eventually be migrated into the main Memory class, but for now, we put them in an anonymous namespace, so that the other functions that use them, can be migrated over separately. | |||||
2019-11-27 | core/memory: Migrate over address checking functions to the new Memory class | Lioncash | 6 | -39/+70 | |
A fairly straightforward migration. These member functions can just be mostly moved verbatim with minor changes. We already have the necessary plumbing in places that they're used. IsKernelVirtualAddress() can remain a non-member function, since it doesn't rely on class state in any form. | |||||
2019-11-27 | core/memory: Migrate over memory mapping functions to the new Memory class | Lioncash | 6 | -128/+180 | |
Migrates all of the direct mapping facilities over to the new memory class. In the process, this also obsoletes the need for memory_setup.h, so we can remove it entirely from the project. | |||||
2019-11-27 | core/memory: Introduce skeleton of Memory class | Lioncash | 4 | -3/+56 | |
Currently, the main memory management code is one of the remaining places where we have global state. The next series of changes will aim to rectify this. This change simply introduces the main skeleton of the class that will contain all the necessary state. | |||||
2019-11-27 | core_timing: Use better reference tracking for EventType. (#3159) | bunnei | 17 | -161/+103 | |
* core_timing: Use better reference tracking for EventType. - Moves ownership of the event to the caller, ensuring we don't fire events for destroyed objects. - Removes need for unique names - we won't be using this for save states anyways. | |||||
2019-11-26 | gl_shader_decompiler: Fix casts from fp32 to f16 | ReinUsesLisp | 1 | -1/+2 | |
Casts from f32 to f16 zeroes the higher half of the target register. | |||||
2019-11-26 | kernel: Fix reference management for client/server session. | bunnei | 3 | -20/+18 | |
- Fixes shutdown crash and crash in Pokemon SwSh. | |||||
2019-11-25 | gl_device: Deduce indexing bug from device instead of heuristic | ReinUsesLisp | 2 | -48/+2 | |
The heuristic to detect AMD's driver was not working properly since it also included Intel. Instead of using heuristics to detect it, compare the GL_VENDOR string. | |||||
2019-11-25 | kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. (#3154) | bunnei | 74 | -378/+377 | |
* kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. - See https://github.com/citra-emu/citra/pull/4710 for details. | |||||
2019-11-24 | gl_texture_cache: Apply sRGB on blits | ReinUsesLisp | 1 | -0/+1 | |
glBlitFramebuffer keeps in mind GL_FRAMEBUFFER_SRGB's state. Enable this depending on the target surface pixel format. | |||||
2019-11-23 | Update svc.cpp | bunnei | 1 | -0/+1 | |
2019-11-23 | svc: GetSystemTick should return cntpct_el0, not core ticks. | bunnei | 1 | -1/+3 | |
2019-11-23 | gpu_thread: Don't spin wait if there are no GPU commands. | bunnei | 1 | -17/+15 | |
2019-11-23 | fix clang-format and lambda capture | Weiyi Wang | 1 | -1/+2 | |
2019-11-23 | unfold UNREACHABLE implementation for dumb compilers | Weiyi Wang | 1 | -2/+2 | |
We relies on UNREACHABLE's noreturn attribute to eliminate parent's "no return value" warning. However, this was wrapped in a `if(!false)` block, which compilers may not unfold to recognize the noreturn nature. | |||||
2019-11-23 | gl_device: Reserve base bindings on limited devices | ReinUsesLisp | 1 | -36/+76 | |
SSBOs and other resources are limited per pipeline on Intel and AMD. Heuristically reserve resources per stage having in mind the reported OpenGL limits. | |||||
2019-11-23 | gl_state: Skip null texture binds | ReinUsesLisp | 1 | -1/+5 | |
glBindTextureUnit doesn't support null textures. Skip binding these. | |||||
2019-11-23 | gl_rasterizer: Disable compute shaders on Intel | ReinUsesLisp | 3 | -0/+12 | |
Intel's proprietary driver enters in a corrupt state when compute shaders are executed. For now, disable these. | |||||
2019-11-23 | gl_shader_cache: Hack shared memory size | ReinUsesLisp | 1 | -2/+3 | |
The current shared memory size seems to be smaller than what the game actually uses. This makes Nvidia's driver consistently blow up; in the case of FE3H it made it explode on Qt's SwapBuffers while SDL2 worked just fine. For now keep this hack since it's still progress over the previous hardcoded shared memory size. | |||||
2019-11-23 | gl_shader_decompiler: Normalize image bindings | ReinUsesLisp | 3 | -33/+19 | |
2019-11-23 | gl_shader_decompiler: Normalize cbuf bindings | ReinUsesLisp | 2 | -10/+6 | |
Stage and compute shaders were using a different binding counter. Normalize these. | |||||
2019-11-23 | gl_rasterizer: Add missing cbuf counter reset on compute | ReinUsesLisp | 1 | -0/+2 | |
2019-11-23 | gl_shader_cache: Remove dynamic BaseBinding specialization | ReinUsesLisp | 16 | -192/+200 | |
2019-11-23 | video_core: Unify ProgramType and ShaderStage into ShaderType | ReinUsesLisp | 22 | -289/+262 | |
2019-11-23 | gl_rasterizer: Bind graphics images to draw commands | ReinUsesLisp | 4 | -33/+54 | |
Images were not being bound to draw invocations because these would require a cache invalidation. | |||||
2019-11-23 | gl_shader_cache: Specialize local memory size for compute shaders | ReinUsesLisp | 6 | -21/+32 | |
Local memory size in compute shaders was stubbed with an arbitary size. This commit specializes local memory size from guest GPU parameters. | |||||
2019-11-23 | gl_shader_cache: Specialize shared memory size | ReinUsesLisp | 5 | -29/+25 | |
Shared memory was being declared with an undefined size. Specialize from guest GPU parameters the compute shader's shared memory size. | |||||
2019-11-23 | gl_shader_cache: Specialize shader workgroup | ReinUsesLisp | 6 | -68/+74 | |
Drop the usage of ARB_compute_variable_group_size and specialize compute shaders instead. This permits compute to run on AMD and Intel proprietary drivers. | |||||
2019-11-23 | shader/texture: Handle TLDS texture type mismatches | ReinUsesLisp | 1 | -1/+10 | |
Some games like "Fire Emblem: Three Houses" bind 2D textures to offsets used by instructions of 1D textures. To handle the discrepancy this commit uses the the texture type from the binding and modifies the emitted code IR to build a valid backend expression. E.g.: Bound texture is 2D and instruction is 1D, the emitted IR samples a 2D texture in the coordinate ivec2(X, 0). | |||||
2019-11-23 | shader/texture: Deduce texture buffers from locker | ReinUsesLisp | 9 | -174/+107 | |
Instead of specializing shaders to separate texture buffers from 1D textures, use the locker to deduce them while they are being decoded. | |||||
2019-11-21 | Kernel: Optimize condition variable threads management. | Fernando Sahmkow | 4 | -24/+21 | |
2019-11-21 | Kernel: Correct SignalProcessWideKey | Fernando Sahmkow | 1 | -6/+2 | |
When the target is 0, all threads must be processed. | |||||
2019-11-21 | Kernel: Correct behavior of Condition Variables to be more similar to real hardware. | Fernando Sahmkow | 5 | -15/+74 | |
This commit ensures cond var threads act exactly as they do in the real console. The original implementation uses an RBTree and the behavior of cond var threads is that at the same priority level they act like a FIFO. | |||||
2019-11-20 | buffer_cache: Remove brace initialized for objects with default constructor | ReinUsesLisp | 1 | -10/+10 | |
2019-11-20 | Texture_Cache: Redo invalid Surfaces handling. | Fernando Sahmkow | 3 | -32/+101 | |
This commit aims to redo the full setup of invalid textures and guarantee correct behavior across backends in the case of finding one by using black dummy textures that match the target of the expected texture. | |||||
2019-11-20 | shader/other: Reduce DEPBAR log severity | ReinUsesLisp | 1 | -1/+1 | |
While DEPBAR is stubbed it doesn't change anything from our end. Shading languages handle what this instruction does implicitly. We are not getting anything out fo this log except noise. | |||||
2019-11-20 | gl_shader_gen: Apply default value to gl_Position | ReinUsesLisp | 1 | -0/+1 | |
Nvidia has sane default output values for varyings, but the other vendors don't apply these. To properly emulate this we would have to analyze the shader header. For the time being, apply the same default Nvidia applies so we get the same behaviour on non-Nvidia drivers. | |||||
2019-11-19 | citra_qt/main.ui: remove unused actions "Load Symbol Map..." and... | Tobias | 1 | -13/+0 | |
..."Select Game Directory..." Co-authored-by: vvanelslande <vvanelslandedev@gmail.com> | |||||
2019-11-18 | Shader_IR: Address Feedback | Fernando Sahmkow | 3 | -11/+9 | |
2019-11-16 | Kernel: Correct Cancel Synchronization. | Fernando Sahmkow | 3 | -2/+19 | |
This commit corrects the behavior of cancel synchronization when the thread is running/ready and ensures the next wait is cancelled as it's suppose to. | |||||
2019-11-16 | Revert "common/bit_field: Silence sign-conversion warnings" | Rodrigo Locatti | 1 | -3/+2 | |
2019-11-15 | common/logging: Silence no return value warnings | ReinUsesLisp | 1 | -2/+6 | |
2019-11-15 | common/bit_field: Silence sign-conversion warnings | Lioncash | 1 | -2/+3 | |
We can just use numeric_limits instead of relying on wraparound behavior here. | |||||
2019-11-15 | format_lookup_table: Address feedback | ReinUsesLisp | 2 | -30/+24 | |
format_lookup_table: Drop bitfields format_lookup_table: Use std::array for definition table format_lookup_table: Include <limits> instead of <numeric> | |||||
2019-11-15 | texture_cache: Use a table instead of switch for texture formats | ReinUsesLisp | 9 | -261/+290 | |
Use a large flat array to look up texture formats. This allows us to properly implement formats with different component types. It should also be faster. | |||||
2019-11-14 | common_funcs: Remove semicolons from INSERT_PADDING_* macros | Lioncash | 1 | -4/+6 | |
Makes code that uses the macros consistent by requiring the lines to be terminated with a semicolon. | |||||
2019-11-14 | service/am: Remove unnecessary Skip calls | Lioncash | 1 | -8/+16 | |
We can simplify these by wrapping the necessary members in structs and then simply reading out the whole struct. | |||||
2019-11-14 | texture_cache: Drop abstracted ComponentType | ReinUsesLisp | 8 | -294/+158 | |
Abstracted ComponentType was not being used in a meaningful way. This commit drops its usage. There is one place where it was being used to test compatibility between two cached surfaces, but this one is implied in the pixel format. Removing the component type test doesn't change the behaviour. | |||||
2019-11-14 | am: Stub QueryApplicationPlayStatistics | Lioncash | 2 | -5/+14 | |
Maintains implementation parity between QueryApplicationPlayStatistics and QueryApplicationPlayStatisticsByUid. These function the same behaviorally underneath the hood, with the only difference being that one allows specifying a UID. | |||||
2019-11-14 | correct the implementation of RGBA16UI | greggameplayer | 1 | -0/+2 | |
2019-11-14 | Shader_IR: Implement TXD instruction. | Fernando Sahmkow | 5 | -8/+120 | |
2019-11-14 | Shader_IR: Implement FLO instruction. | Fernando Sahmkow | 5 | -0/+35 | |
2019-11-14 | Shader_Bytecode: Add encodings for FLO, SHF and TXD | Fernando Sahmkow | 1 | -0/+18 | |
2019-11-13 | common/hash: Remove unused HashableStruct | Lioncash | 1 | -35/+0 | |
This is unused, so it can be removed. There's better ways of ensuring zeroed out padding bits, like using zero-initialization, anyhow. | |||||
2019-11-13 | maxwell_3d: Fix stencil_back_func_mask offset | ReinUsesLisp | 1 | -3/+3 | |
stencil_back_func_mask and stencil_back_mask were misplaced. This commit addresses that issue. | |||||
2019-11-13 | xts_archive: Remove redundant std::string constructor | Lioncash | 1 | -2/+1 | |
We can just call the .data() member of path instead of constructing a completely new string. | |||||
2019-11-13 | common_funcs: silence sign-conversion warnings in MakeMagic() | Lioncash | 1 | -1/+1 | |
We can trivially resolve these by casting the characters to unsigned values and then shifting the bits. | |||||
2019-11-12 | service: Update function tables | Lioncash | 33 | -7/+192 | |
Keeps the function tables up to date. Updated based off information from Switchbrew. | |||||
2019-11-12 | key_manager: Make use of IOFile in WriteKeyToFile() | Lioncash | 1 | -11/+15 | |
This properly handles unicode-based paths on Windows, while opening a raw stream doesn't out-of-the-box. Prevents file creation from potentially failing on Windows PCs that make use of unicode characters in their save paths (e.g. writing to a user's AppData folder, where the user has a name with non-ASCII characters). | |||||
2019-11-12 | core: Migrate off deprecated mbedtls functions | Lioncash | 7 | -12/+12 | |
These functions are marked for deprecation and it's recommended that the *_ret variants be used instead. | |||||
2019-11-12 | externals: Update httplib | Lioncash | 1 | -1/+1 | |
Since the introduction of this library, numerous improvements have been made. Notably, many of the warnings we would get by simply including the library header have now been fixed. This makes it much easier to make conversion warning an error. | |||||
2019-11-12 | service: Resolve sign conversion errors | Lioncash | 15 | -58/+55 | |
These are fairly trivial to resolve and most of the changes entail using RESULT_UNKNOWN over ResultCode(-1). | |||||
2019-11-12 | perf_stats: Resolve implicit int to double conversion error | Lioncash | 1 | -1/+1 | |
We simply need to turn the literal argument to std::accumulate into a double, rather than an int. | |||||
2019-11-12 | loader; Resolve sign conversion/truncation errors | Lioncash | 3 | -6/+6 | |
2019-11-12 | gdbstub: Resolve sign conversion errors | Lioncash | 1 | -1/+2 | |
2019-11-12 | kernel: Resolve sign conversion warnings | Lioncash | 4 | -72/+60 | |
Uncovered a bug within Thread's SetCoreAndAffinityMask() where an unsigned variable (ideal_core) was being compared against "< 0", which would always be a false condition. We can also get rid of an unused function (GetNextProcessorId) which contained a sign mismatch warning. | |||||
2019-11-12 | file_sys: Resolve sign conversion warnings | Lioncash | 4 | -12/+10 | |
Resolves a few trivial sign conversion/mismatch errors. | |||||
2019-11-12 | result: Add default error code for the ResultCode(-1) case | Lioncash | 1 | -1/+9 | |
Will be used to reduce the overall duplication of the same magic value all over the codebase in following changes. | |||||
2019-11-12 | crypto: Resolve sign-conversion warnings | Lioncash | 2 | -11/+12 | |
2019-11-12 | result: Resolve sign-coversion warnings | Lioncash | 1 | -1/+1 | |
The constructor was implicitly using signed->unsigned conversions to produce 0xFFFFFFFF. We can just specify this explicitly with UINT32_MAX. | |||||
2019-11-12 | arm_unicorn: Resolve sign conversion warnings | Lioncash | 3 | -8/+10 | |
While we're at it, this also resolves a type truncation warning as well, given the code was truncating from a 64-bit value to a 32-bit one. | |||||
2019-11-12 | CMakeLists: Make most implicit type conversion warnings errors on MSVC | Lioncash | 1 | -0/+17 | |
Quite frequently there have been cases where code has been merged into the core that produces warning. In order to prevent this from occurring, we can make the compiler flag these cases and allow our CI to flag down any code that would generate these warnings. This is beneficial given silent conversions from signed/unsigned can result in logic bugs. This forces one writing changes to be explicit about when signedness conversions are desirable, rather than leaving it up to readers' interpretation. Currently the codebase isn't in a state where it will build successfully with this change applied, but this will be addressed in subsequent follow-up changes. This set of changes will focus on making it build properly with these changes for MSVC as a starting point for basic coverage. | |||||
2019-11-11 | video_core: Enable sign conversion warnings | Rodrigo Locatti | 1 | -1/+1 | |
Enable sign conversion warnings but don't treat them as errors. | |||||
2019-11-11 | Implement stub for QueryApplicationPlayStatisticsByUid | Michael Scire | 2 | -0/+10 | |
2019-11-09 | web-service: Port citra's updated web_backend code. | bunnei | 2 | -18/+57 | |
2019-11-09 | yuzu: configure_web: Use Base64 encoded token for simplifying user experience. | bunnei | 2 | -32/+53 | |
2019-11-08 | video_core: Treat implicit conversions as errors | ReinUsesLisp | 1 | -0/+6 | |
2019-11-08 | video_core: Silence implicit conversion warnings | ReinUsesLisp | 9 | -53/+62 | |
2019-11-08 | gl_shader_cache: Fix locker constructors | ReinUsesLisp | 1 | -2/+4 | |
Properly pass engine when a shader is being constructed from memory. | |||||
2019-11-08 | gl_shader_cache: Enable extensions only when available | ReinUsesLisp | 1 | -6/+14 | |
Silence GLSL compilation warnings. | |||||
2019-11-08 | gl_shader_decompiler: Add safe fallbacks when ARB_shader_ballot is not available | ReinUsesLisp | 3 | -5/+28 | |
2019-11-08 | shader_ir/warp: Implement FSWZADD | ReinUsesLisp | 5 | -0/+44 | |
2019-11-08 | gl_shader_decompiler: Reimplement shuffles with platform agnostic intrinsics | ReinUsesLisp | 5 | -122/+49 | |
2019-11-07 | GLSLDecompiler: Correct Texture Gather Offset. | Fernando Sahmkow | 1 | -1/+1 | |
This commit corrects the argument ordering in textureGatherOffset. | |||||
2019-11-07 | buffer_cache: Add missing includes (#3079) | Morph | 1 | -0/+4 | |
`boost::make_iterator_range` is available when `boost/range/iterator_range.hpp` is included. Also include `boost/icl/interval_map.hpp` and `boost/icl/interval_set.hpp`. | |||||
2019-11-07 | gl_rasterizer: Remove front facing hack | ReinUsesLisp | 1 | -12/+0 | |
2019-11-07 | gl_shader_decompiler: Fix typo "y_negate"->"y_direction" | ReinUsesLisp | 1 | -1/+1 | |
2019-11-07 | gl_shader_manager: Remove unused variable in SetFromRegs | ReinUsesLisp | 1 | -1/+0 | |
2019-11-07 | yuzu_cmd: Use string_view instead of string for extensions | ReinUsesLisp | 1 | -3/+3 | |
Avoids potential allocations due to the usage of std::string on strings that we know at compile time. Most of these might fit in SSO, but it adds complexity that can be easily avoided with string views. | |||||
2019-11-07 | gl_rasterizer: Emulate viewport flipping with ARB_clip_control | ReinUsesLisp | 9 | -76/+57 | |
Emulates negative y viewports with ARB_clip_control. This allows us to more easily emulated pipelines with tessellation and/or geometry shader stages. It also avoids corrupting games with transform feedbacks and negative viewports (gl_Position.y was being modified). | |||||
2019-11-07 | shader/control_flow: Specify constness on caller lambdas | Rodrigo Locatti | 1 | -11/+12 | |
Update src/video_core/shader/control_flow.cpp Co-Authored-By: Mat M. <mathew1800@gmail.com> Update src/video_core/shader/control_flow.cpp Co-Authored-By: Mat M. <mathew1800@gmail.com> Update src/video_core/shader/control_flow.cpp Co-Authored-By: Mat M. <mathew1800@gmail.com> Update src/video_core/shader/control_flow.cpp Co-Authored-By: Mat M. <mathew1800@gmail.com> Update src/video_core/shader/control_flow.cpp Co-Authored-By: Mat M. <mathew1800@gmail.com> Update src/video_core/shader/control_flow.cpp Co-Authored-By: Mat M. <mathew1800@gmail.com> | |||||
2019-11-07 | shader/control_flow: Use callable template instead of std::function | ReinUsesLisp | 1 | -6/+5 | |
2019-11-07 | shader/control_flow: Abstract repeated code chunks in BRX tracking | ReinUsesLisp | 1 | -93/+101 | |
Remove copied and pasted for cycles into a common templated function. | |||||
2019-11-07 | shader/control_flow: Silence Intellisense cast warnings | ReinUsesLisp | 1 | -1/+1 | |
2019-11-07 | shader/control_flow: Remove brace initializer in std containers | ReinUsesLisp | 1 | -9/+9 | |
These containers have a default constructor. | |||||
2019-11-07 | shader/decode: Reduce severity of arithmetic rounding warnings | ReinUsesLisp | 6 | -15/+17 | |
2019-11-07 | shader/arithmetic: Reduce RRO stub severity | ReinUsesLisp | 1 | -1/+2 | |
2019-11-07 | shader/texture: Remove NODEP warnings | ReinUsesLisp | 1 | -35/+0 | |
These warnings don't offer meaningful information while decoding shaders. Remove them. | |||||
2019-11-07 | nifm: Only return that there's an internet connection when there's a BCATServer | Fernando Sahmkow | 1 | -3/+17 | |
This helps games that need internet for other purposes boot as the rest of our internet infrastructure is incomplete. | |||||
2019-11-06 | ci: Populate build repository from Azure environment | Zach Hilman | 1 | -11/+2 | |
2019-11-04 | common_func: Use std::array for INSERT_PADDING_* macros. | bunnei | 14 | -158/+166 | |
- Zero initialization here is useful for determinism. | |||||
2019-11-03 | Revert "common_func: Use std::array for INSERT_PADDING_* macros." | bunnei | 1 | -3/+2 | |
2019-11-03 | common_func: Use std::array for INSERT_PADDING_* macros. | bunnei | 1 | -2/+3 | |
- Zero initialization here is useful for determinism. | |||||
2019-11-03 | kernel: readable_event: Signal only once. | bunnei | 1 | -2/+4 | |
2019-11-03 | kernel: events: Remove ResetType::Automatic. | bunnei | 25 | -109/+48 | |
- This does not actually seem to exist in the real kernel - games reset these automatically. # Conflicts: # src/core/hle/service/am/applets/applets.cpp # src/core/hle/service/filesystem/fsp_srv.cpp | |||||
2019-11-03 | kernel: readable_event: Initialize members. | bunnei | 1 | -1/+1 | |
2019-11-03 | common/bit_field: Remove FORCE_INLINE calls | Tobias | 1 | -2/+2 | |
See bunneis comment here https://github.com/citra-emu/citra/pull/4629#discussion_r258533167. They were supposed to be removed by him, but he missed them. | |||||
2019-11-03 | core/am: Stub InitializeApplicationCopyrightFrameBuffer, SetApplicationCopyrightImage and SetApplicationCopyrightVisibility | FearlessTobi | 2 | -3/+31 | |
These commands require Screenshots to be implemented anyway, so they are safe to stub for now. | |||||
2019-11-03 | citra_qt: add amiibo drag and drop support | FearlessTobi | 2 | -4/+18 | |
Co-Authored-By: Valentin Vanelslande <vvanelslandedev@gmail.com> | |||||
2019-11-02 | gl_rasterizer: Re-enable stream buffer memory due to global memory | ReinUsesLisp | 1 | -14/+8 | |
Global memory is still using the stream buffer when it shouldn't. As a temporary fix re-enable the stream buffer on compute. | |||||
2019-11-02 | gl_rasterizer: Upload constant buffers with glNamedBufferSubData | ReinUsesLisp | 6 | -19/+84 | |
Nvidia's OpenGL driver maps gl(Named)BufferSubData with some requirements to a fast. This path has an extra memcpy but updates the buffer without orphaning or waiting for previous calls. It can be seen as a better model for "push constants" that can upload a whole UBO instead of 256 bytes. This path has some requirements established here: http://on-demand.gputechconf.com/gtc/2014/presentations/S4379-opengl-44-scene-rendering-techniques.pdf#page=24 Instead of using the stream buffer, this commits moves constant buffers uploads to calls of glNamedBufferSubData and from my testing it brings a performance improvement. This is disabled when the vendor is not Nvidia since it brings performance regressions. | |||||
2019-10-31 | Shader_IR: Fix regression on TLD4 | Fernando Sahmkow | 2 | -5/+4 | |
Originally on the last commit I thought TLD4 acted the same as TLD4S and didn't have a mask. It actually does have a component mask. This commit corrects that. | |||||
2019-10-30 | Shader_IR: Fix TLD4 and add Bindless Variant. | Fernando Sahmkow | 3 | -11/+55 | |
This commit fixes an issue where not all 4 results of tld4 were being written, the color component was defaulted to red, among other things. It also implements the bindless variant. | |||||
2019-10-30 | gl_state: Use std::array::fill instead of std::fill | Rodrigo Locatti | 1 | -1/+1 | |
Co-Authored-By: Mat M. <mathew1800@gmail.com> | |||||
2019-10-30 | gl_state: Move dirty checks to individual apply calls instead of Apply | ReinUsesLisp | 2 | -66/+74 | |
This requires removing constness from some methods, but for consistency it's removed in all methods. | |||||
2019-10-30 | gl_state: Remove ApplyDefaultState | ReinUsesLisp | 3 | -17/+1 | |
OpenGL has defaults values we can trust. Remove these. | |||||
2019-10-30 | gl_state: Change SetDefaultViewports to use default constructor | ReinUsesLisp | 1 | -13/+2 | |
2019-10-30 | gl_state: Minor style changes | ReinUsesLisp | 1 | -3/+5 | |
2019-10-30 | gl_state: Remove unused Citra TextureUnits | ReinUsesLisp | 1 | -23/+0 | |
2019-10-30 | gl_state: Move initializers from constructor to class declaration | ReinUsesLisp | 2 | -170/+75 | |
2019-10-30 | shader/node: Unpack bindless texture encoding | ReinUsesLisp | 8 | -142/+116 | |
Bindless textures were using u64 to pack the buffer and offset from where they come from. Drop this in favor of separated entries in the struct. Remove the usage of std::set in favor of std::list (it's not std::vector to avoid reference invalidations) for samplers and images. | |||||
2019-10-28 | scheduler: Mark parameter of AskForReselectionOrMarkRedundant() as const | Lioncash | 2 | -5/+5 | |
This is only compared against, so it can be made const. | |||||
2019-10-28 | maxwell_3d/kepler_compute: Remove unused arguments in GetTexture | ReinUsesLisp | 5 | -37/+20 | |
2019-10-28 | video_core/textures: Remove unused index entry in FullTextureInfo | ReinUsesLisp | 2 | -2/+0 | |
2019-10-28 | maxwell_3d: Remove unused method GetStageTextures | ReinUsesLisp | 2 | -42/+0 | |
2019-10-28 | scheduler: Silence sign conversion warnings | Lioncash | 1 | -5/+5 | |
2019-10-28 | scheduler: Initialize class members directly where applicable | Lioncash | 2 | -6/+4 | |
Reduces the overall amount of code. | |||||
2019-10-28 | scheduler: Amend documentation comments | Lioncash | 2 | -75/+59 | |
Adjusts the formatting of a few of the comments an ensures they get recognized as proper Doxygen comments. | |||||
2019-10-27 | Video_Core: Implement texture format E5B9G9R9_SHAREDEXP. | Fernando Sahmkow | 4 | -5/+22 | |
This commit implements the E5B9G9R9 Texture format into the general system and OpenGL backend. | |||||
2019-10-27 | maxwell_3d: Silence implicit conversion warnings | ReinUsesLisp | 2 | -24/+25 | |
While we are at it, unify types for dirty reg pointers. | |||||
2019-10-27 | rasterizer_accelerated: Add intermediary for GPU rasterizers | ReinUsesLisp | 5 | -45/+98 | |
Add an intermediary class that implements common functions across GPU accelerated rasterizers. This avoids code repetition on different backends. | |||||
2019-10-27 | astc: Silence implicit conversion warnings | ReinUsesLisp | 1 | -7/+8 | |
2019-10-26 | Shader_IR: Address Feedback. | Fernando Sahmkow | 9 | -56/+66 | |
2019-10-25 | Shader_IR: Clang format | Fernando Sahmkow | 1 | -2/+1 | |
2019-10-25 | gl_shader_cache: Implement locker variants invalidation | ReinUsesLisp | 4 | -44/+104 | |
2019-10-25 | gl_shader_disk_cache: Store and load fast BRX | ReinUsesLisp | 6 | -50/+210 | |
2019-10-25 | const_buffer_locker: Minor style changes | ReinUsesLisp | 2 | -152/+76 | |
2019-10-25 | gl_shader_decompiler: Move entries to a separate function | ReinUsesLisp | 15 | -722/+420 | |
2019-10-25 | Shader_IR: Implement Fast BRX and allow multi-branches in the CFG. | Fernando Sahmkow | 1 | -1/+1 | |
2019-10-25 | Shader_IR: Correct typo in Consistent method. | Fernando Sahmkow | 2 | -2/+2 | |
2019-10-25 | Shader_IR: allow lookup of texture samplers within the shader_ir for instructions that don't provide it | Fernando Sahmkow | 9 | -46/+363 | |
2019-10-25 | Shader_IR: Implement Fast BRX and allow multi-branches in the CFG. | Fernando Sahmkow | 7 | -130/+258 | |
2019-10-25 | Shader_Cache: setup connection of ConstBufferLocker | Fernando Sahmkow | 10 | -43/+82 | |
2019-10-25 | VideoCore: Unify const buffer accessing along engines and provide ConstBufferLocker class to shaders. | Fernando Sahmkow | 12 | -13/+183 | |
2019-10-25 | Shader_IR: Implement BRX tracking. | Fernando Sahmkow | 1 | -0/+113 | |
2019-10-24 | shader_bytecode: Make Matcher constexpr capable | Lioncash | 1 | -13/+13 | |
Greatly shrinks the amount of generated code for GetDecodeTable(). Collapses an assembly output of 9000+ lines down to ~3621 with Clang, and 6513 down to ~2616 with GCC, given it's now allowed to construct all the entries as a sequence of constant data. | |||||
2019-10-24 | shader_ir: Use std::array with pair instead of unordered_map | Lioncash | 1 | -53/+67 | |
Given the overall size of the maps are very small, we can use arrays of pairs here instead of always heap allocating a new map every time the functions are called. Given the small size of the maps, the difference in container lookups are negligible, especially given the entries are already sorted. | |||||
2019-10-24 | video_core/shader: Resolve instances of variable shadowing | Lioncash | 6 | -11/+12 | |
Silences a few -Wshadow warnings. | |||||
2019-10-22 | savedata_factory: Automatically create certain savedata | Zach Hilman | 1 | -0/+12 | |
After further hardware investigation, it appears that some games, perhaps those more lazily coded, will not call EnsureSaveData, meaning that they expect the normal (current) save to be automatically made. Additionally, some games do not create a cache or temporary save before use. In these 3 specific instances, the save is created automatically for the game if it doesn't exist. | |||||
2019-10-22 | Shader_Ir: Fix TLD4S from using a component mask. | Fernando Sahmkow | 2 | -5/+5 | |
TLD4S always outputs 4 values, the previous code checked a component mask and omitted those values that weren't part of it. This commit corrects that and makes sure all 4 values are set. | |||||
2019-10-22 | shader_ir/memory: Ignore global memory when tracking fails | ReinUsesLisp | 2 | -18/+26 | |
Ignore global memory operations instead of invoking undefined behaviour when constant buffer tracking fails and we are blasting through asserts, ignore the operation. In the case of LDG this means filling the destination registers with zeroes; for STG this means ignore the instruction as a whole. The default behaviour is still to abort execution on failure. | |||||
2019-10-20 | maxwell_3d: Reduce FlushMMEInlineDraw logging to Trace | ReinUsesLisp | 1 | -1/+1 | |
2019-10-19 | core: Fix clang-format errors. | bunnei | 1 | -9/+10 | |
2019-10-18 | Fix null pointer deref. | Nicolae-Andrei Cociorba | 1 | -10/+12 | |
2019-10-18 | video_core/shader/ast: Make ShowCurrentState() and SanityCheck() const member functions | Lioncash | 2 | -5/+5 | |
These can also trivially be made const member functions, with the addition of a few consts. | |||||
2019-10-18 | video_core/shader/ast: Make ASTManager::Print a const member function | Lioncash | 2 | -3/+3 | |
Given all visiting functions never modify the nodes, we can trivially make this a const member function. | |||||
2019-10-18 | video_core/shader/ast: Make ExprPrinter members private | Lioncash | 1 | -1/+2 | |
This member already has an accessor, so there's no need for it to be public. | |||||
2019-10-18 | video_core/shader/ast: Make Indent() return a string_view | Lioncash | 1 | -14/+24 | |
The returned string is simply a substring of our constexpr tabs string_view, so we can just use a string_view here as well, since the original string_view is guaranteed to always exist. Now the function is fully non-allocating. | |||||
2019-10-18 | video_core/shader/ast: Make Indent() private | Lioncash | 1 | -9/+9 | |
It's never used outside of this class, so we can narrow its scope down. | |||||
2019-10-18 | video_core/shader/ast: Rename Ident() to Indent() | Lioncash | 1 | -13/+13 | |
This can be confusing, given "ident" is generally used as a shorthand for "identifier". | |||||
2019-10-18 | video_core/shader/ast: Make use of fmt where applicable | Lioncash | 1 | -14/+14 | |
Makes a few strings nicer to read and also eliminates a bit of string churn with operator+. | |||||
2019-10-18 | vk_shader_decompiler: Mark operator() function parameters as const references | Lioncash | 1 | -21/+23 | |
These parameters aren't actually modified in any way, so they can be made const references. | |||||
2019-10-18 | dmnt_cheat_vm: Correct register Restore and ClearRegs behavior | Lioncash | 1 | -2/+2 | |
Previously these were performing the same behavior as the Save and ClearSaved opcode types. | |||||
2019-10-18 | Fermi2D: Use a different formula for delimiting blit areas. | Fernando Sahmkow | 1 | -14/+28 | |
2019-10-18 | hid/npad: Fix incorrect connection boolean value in ConnectAllDisconnectedControllers() | Lioncash | 1 | -1/+1 | |
We should be setting the connection state to true, otherwise we aren't actually making the controllers connected like the function name indicates. | |||||
2019-10-18 | hid/npad: Add missing break in default case | Lioncash | 1 | -0/+1 | |
While not an issue, it does prevent fallthrough from occurring if anything is ever added after this case (unlikely to occur, but this turns a trivial "should not cause issues" into a definite "won't cause issues). | |||||
2019-10-18 | hid/npad: Replace std::for_each with ranged for loops | Lioncash | 1 | -13/+12 | |
Performs the same behavior, but is built into the core language itself. No functional change. | |||||
2019-10-18 | hid/npad: Remove redundant non-const variant of IsControllerSupported() | Lioncash | 2 | -34/+5 | |
The const qualified variant can also be called in non-const contexts, so we can remove the non-const variant to eliminate a bit of code duplication. | |||||
2019-10-18 | hid/npad: Move function declarations | Lioncash | 1 | -5/+6 | |
Clearly separate these from the variable declarations to make them more visible. | |||||
2019-10-17 | video_core/macro_interpreter: Make definitions of most private enums/unions hidden | Lioncash | 2 | -72/+79 | |
This allows the implementation of these types to change without requiring a rebuild of everything that includes the macro interpreter header. | |||||
2019-10-17 | core/core: Resolve -Wreorder warnings | Lioncash | 1 | -2/+2 | |
Amends the initializer lists to be ordered in the same manner that they're declared within the class. | |||||
2019-10-17 | core/memory/cheat_engine: Resolve -Wreorder warnings | Lioncash | 1 | -4/+3 | |
Amends the initializer lists to be ordered in the same manner that they're declared within the class. | |||||
2019-10-17 | apm/controller: Make SetPerformanceConfiguration() use an array of pairs over a map | Lioncash | 1 | -14/+34 | |
While a map is an OK way to do lookups (and usually recommended in most cases), this is a map that lives for the entire duration of the program and only deallocates its contents when the program terminates. Given the total size of the map is quite small, we can simply use a std::array of pairs and utilize std::find_if to perform the same behavior without loss of performance. This eliminates a static constructor and places the data into the read-only segment. While we're at it, we can also handle malformed inputs instead of directly dereferencing the resulting iterator. | |||||
2019-10-17 | apm/controller: Make GetCurrentPerformanceMode() a const member function | Lioncash | 2 | -2/+2 | |
This doesn't modify instance state, so it can be made const qualified. | |||||
2019-10-17 | Fermi2D: limit blit area to only available area | Fernando Sahmkow | 1 | -4/+14 | |
Normaly OpenGL does not care if the areas exceed the texture regions but other backends such as Vulkan do care about the limits of this areas. This PR crops the areas of the blit in order that they don't surpass the limits of the textures. This should help Vulkan and faulty OpenGL drivers | |||||
2019-10-16 | video_core/surface: Add missing break in PixelFormatFromTextureFormat() | Lioncash | 1 | -0/+1 | |
Prevents fallthrough into the following case. | |||||
2019-10-16 | vk_shader_decompiler: Resolve fallthrough within ExprDecompiler's ExprCondCode operator() | Lioncash | 1 | -0/+3 | |
This would previously result in NeverExecute and UnusedIndex being treated as regular predicates. | |||||
2019-10-16 | gl_shader_decompiler: Resolve fallthrough within ExprDecompiler's ExprCondCode operator() | Lioncash | 1 | -0/+3 | |
This would previously result in NeverExecute and UnusedIndex being treated as regular predicates. | |||||
2019-10-16 | texture_cache: Avoid unnecessary surface copies within PickStrategy() and TryReconstructSurface() | Lioncash | 1 | -2/+2 | |
We can take these by const reference and avoid making unnecessary copies, preventing some atomic reference count increments and decrements. | |||||
2019-10-16 | control_flow: Silence truncation warnings | Lioncash | 2 | -4/+4 | |
This can be trivially fixed by making the input size a size_t. CFGRebuildState's constructor parameter is already a std::size_t, so this just makes the size type fully conform with it. | |||||
2019-10-16 | gl_shader_decompiler: Make ExprDecompiler's GetResult() a const member function | Lioncash | 1 | -1/+1 | |
This is only ever used to read, but not write, the resulting string, so we can enforce this by making it a const member function. | |||||
2019-10-16 | gl_shader_decompiler: Use a std::string_view with GetDeclarationWithSuffix() | Lioncash | 1 | -1/+1 | |
This allows the function to be completely non-allocating for inputs of all sizes (i.e. there's no heap cost for an input to convert to a std::string_view). | |||||
2019-10-16 | gl_shader_decompiler: Fold flow_var constant into GetFlowVariable() | Lioncash | 1 | -3/+1 | |
This is only ever used within this function, so we can narrow it's scope down. | |||||
2019-10-16 | gl_shader_decompiler: Mark ASTDecompiler/ExprDecompiler parameters as const references where applicable | Lioncash | 1 | -21/+21 | |
These member functions don't actually modify the input parameter, so we can make this explicit with the use of const. | |||||
2019-10-16 | gl_shader_decompiler: Pass by reference to GenerateTextureArgument() | Lioncash | 1 | -2/+2 | |
Avoids an unnecessary atomic reference count increment and decrement. | |||||
2019-10-16 | gl_shader_decompiler: Use std::holds_alternative within GenerateTexture() | Lioncash | 1 | -1/+1 | |
This only ever queries if the type exists within the variant, but doesn't actually do anything with the return value. We can just use std::holds_alternative for this use case. | |||||
2019-10-16 | shader/node: std::move Meta instance within OperationNode constructor | Lioncash | 1 | -1/+1 | |
Allows usages of the constructor to avoid an unnecessary copy. | |||||
2019-10-16 | gl_shader_decompiler: Avoid unnecessary copies of MetaImage | Lioncash | 1 | -4/+4 | |
MetaImage contains a std::vector, so copying here could result in unnecessary reallocations. Given the operation lives throughout the entire scope, this is safe to do. | |||||
2019-10-15 | maxwell_3d: Silence truncation warnings | Lioncash | 1 | -1/+2 | |
A trivial warning caused by not using size_t as the argument types instead of u32. | |||||
2019-10-15 | video_core/gpu: Remove use of the global system accessor | Lioncash | 1 | -1/+1 | |
We can just make use of the reference member variable instead of accessing the global system instance. | |||||
2019-10-15 | bcat: Remove use of global system accessors | Lioncash | 6 | -29/+55 | |
Removes all uses of the global system accessor within the BCAT interface. | |||||
2019-10-15 | video_core/texture_cache: Amend Doxygen references | Lioncash | 1 | -57/+78 | |
Amends the doxygen comments so that they properly resolve. While we're at it, we can correct some typos and fix up some of the comments' formatting in order to make them slightly nicer to read. | |||||
2019-10-15 | common/algorithm: Add description comment indicating intended algorithms | Lioncash | 1 | -0/+5 | |
Makes it explicit that the header is intended for iterator-based algorithms that can ideally operate on any type. | |||||
2019-10-15 | common: Rename binary_find.h to algorithm.h | Lioncash | 4 | -4/+5 | |
Makes the header more general for other potential algorithms in the future. While we're at it, include a missing <functional> include to satisfy the use of std::less. | |||||
2019-10-15 | Kernel Thread: Cleanup THREADPROCESSORID_DONT_UPDATE. | Fernando Sahmkow | 2 | -4/+1 | |
2019-10-15 | Kernel: Address Feedback 2 | Fernando Sahmkow | 2 | -9/+6 | |
2019-10-15 | Kernel: Clang Format | Fernando Sahmkow | 2 | -5/+5 | |
2019-10-15 | Kernel: Reverse global accessor removal. | Fernando Sahmkow | 4 | -23/+9 | |
2019-10-15 | Kernel: Address Feedback. | Fernando Sahmkow | 6 | -67/+98 | |
2019-10-15 | Kernel Scheduler: Make sure the global scheduler shutdowns correctly. | Fernando Sahmkow | 7 | -0/+31 | |
2019-10-15 | Kernel_Thread: Eliminate most global accessors. | Fernando Sahmkow | 1 | -11/+11 | |
2019-10-15 | KernelSVC: Assert that condition variable address is aligned to 4 bytes. | Fernando Sahmkow | 1 | -0/+4 | |
2019-10-15 | Kernel: Correct Paused scheduling | Fernando Sahmkow | 1 | -3/+1 | |
2019-10-15 | Kernel: Corrections to Wait Objects clearing in which a thread could still be signalled after a timeout or a cancel. | Fernando Sahmkow | 3 | -3/+4 | |
2019-10-15 | Kernel: Correct redundant yields to only advance time forward. | Fernando Sahmkow | 1 | -3/+5 | |