Commit Graph
1576 Commits
Author SHA1 Message Date
Wunkolo cb64c52d2f Use inline rotl/ror
Fixes apple-clang builds, which do not implement a lot of the `bit`
header.
2023-08-20 23:01:43 -07:00
Wunkolo c778c34433 Separate present/graphics workloads
Separate the "Display" texture from the cache of framebuffer textures,
move present/graphics into separate command buffers.
2023-08-20 23:01:43 -07:00
Wunkolo 50029e1333 Avoid usage of D24-S8 format
This support is not supported on `radv`. Vulkan mandates D16 only and a
combination of Depth and Depth-Stencil types only.
2023-08-20 23:01:43 -07:00
Wunkolo 27268f86d3 Fix instance-extension iteration
Add the extensions when they are available rather than statically
including them.
2023-08-20 23:01:43 -07:00
Wunkolo 6dcd09af3e Implement basic color/depth render-texture cache 2023-08-20 23:01:43 -07:00
Wunkolo a36ee0025f Disable present queue when present unavailable. 2023-08-20 23:01:43 -07:00
Wunkolo bf3917f074 Add subpass dependencies, optional depth attachment 2023-08-20 23:01:43 -07:00
Wunkolo 37902cd9d6 Implement a renderpass cache.
Technically we can generate every possible render-pass up-front based on
the possible combinations of ColorFmt and DepthFmt, but we should only
allocate what the game asks for. Save that pattern for pipelines.
2023-08-20 23:01:43 -07:00
Wunkolo bf8bb5d459 Add vk_pica translation unit
Intended for conversions and utils between PICA definitions and Vulkan.
2023-08-20 23:01:43 -07:00
Wunkolo d19b8cf364 Separate frame-work from presentation 2023-08-20 23:01:43 -07:00
Wunkolo 4976671ef0 Rename vulkan_api.hpp to vk_api.hpp
Consistant with other vulkan header patterns.
This header in particular is to configure our Vulkan API usage.
2023-08-20 23:01:43 -07:00
Wunkolo ac1f7bc521 Remove dependency on C++20 ranges
AppleClang does not support this unfortunately
2023-08-20 23:01:43 -07:00
Wunkolo e87db99a97 Remove ownership of SDL's vulkan-surface
This surface is managed by SDL itself, so there is no need to keep it in
a Unique handle for us to delete.  Fixes the bug where vulkan crashes
during shutdown.
2023-08-20 23:01:43 -07:00
Wunkolo e3699fe8f8 Allocate and present separate top/bottom screen framebuffer images
Instead of operating directly on the swapchain images, we have our own
top/bottom framebuffer images that will be rendered to independent of
having an available swapchain. The images are blitted into the swapchain
images, allowing for resizing too!
2023-08-20 23:01:43 -07:00
Wunkolo d0832ca558 Fix support for headless vulkan context 2023-08-20 23:01:43 -07:00
Wunkolo 17101e9bb9 Fix graphics queue assignment
Copy-paste error
2023-08-20 23:01:43 -07:00
wheremyfoodat 706503974c [Touchscreen] Properly handle "dragging" stylus across screen 2023-08-20 23:42:55 +03:00
wheremyfoodatandGitHub 8796440ae9 Add resource limit for threads to getResourceLimitLimitValues 2023-08-20 18:27:23 +03:00
wheremyfoodatandGitHub cce796ec0c Make SendSyncRequest warn instead of panic on invalid handles
Some games like Arc Baseball use invalid handles...
2023-08-20 18:03:42 +03:00
wheremyfoodat 41ef4ad540 [HTTP] Stub some certificate stuff 2023-08-20 17:50:53 +03:00
wheremyfoodat 82ded962d0 Add PTM::GetBatteryChargeState 2023-08-20 17:06:32 +03:00
wheremyfoodat 5106f251cf [SDMC] Handle ASCII paths for CreateDirectory 2023-08-20 16:53:06 +03:00
wheremyfoodat 8e00da1d0b Merge branch 'master' into sd-card 2023-08-20 15:55:20 +03:00
wheremyfoodat 197bc93eec Add BOSS:GetErrorCode 2023-08-20 15:07:19 +03:00
wheremyfoodat eaccc627b9 Merge branch 'master' into sd-card 2023-08-20 14:42:01 +03:00
wheremyfoodatandGitHub 73b9a909cd Merge pull request #219 from wheremyfoodat/services
Implement HID::GetSoundVolume
2023-08-20 14:39:07 +03:00
wheremyfoodat 8aa35d2099 Implement HID::GetSoundVolume 2023-08-20 14:18:30 +03:00
wheremyfoodat 9ee7543f9a Moar SDMC 2023-08-20 13:55:38 +03:00
wheremyfoodat 0ef46cf8b0 SDMC archive always has read perms 2023-08-20 13:31:02 +03:00
wheremyfoodat 7ada8da8a8 Start adding SD card support 2023-08-20 13:22:48 +03:00
wheremyfoodatandGitHub d4f074b231 Merge pull request #217 from wheremyfoodat/services
Add the GetThreadIdealProcessor SVC and fix UB
2023-08-20 03:58:07 +03:00
wheremyfoodat 3292b051be [SDMH] Fix function not returning a value 2023-08-20 03:45:24 +03:00
wheremyfoodat 434827e11e Add svcGetThreadIdealProcessor 2023-08-20 03:43:26 +03:00
wheremyfoodatandGitHub 37667708e7 Merge pull request #216 from wheremyfoodat/services
Stub DLC::GetPatchTitleInfo to fail
2023-08-20 03:28:23 +03:00
wheremyfoodat 415a5bb8de Add AM::RegisterDisconnectEvent 2023-08-20 03:27:10 +03:00
wheremyfoodat 977cb0403c Stub DLC::GetPatchTitleInfo to fail 2023-08-20 03:08:34 +03:00
wheremyfoodatandGitHub bb64bbab40 Merge pull request #215 from wheremyfoodat/services
Stub update RomFS
2023-08-20 02:58:17 +03:00
wheremyfoodat e5f96b7298 Stub update RomFS 2023-08-20 02:38:25 +03:00
wheremyfoodatandGitHub 574fe95bca Add missing log 2023-08-20 02:21:05 +03:00
wheremyfoodatandGitHub 4fc94298a7 Merge pull request #213 from wheremyfoodat/services
Implement the GetCurrentProcessorNumber SVC
2023-08-20 02:13:46 +03:00
wheremyfoodat 8a435cc36b Add note about default processor ID 2023-08-20 01:55:41 +03:00
wheremyfoodat 5b8bb12860 Make svcCreateThread panic with invalid IDs 2023-08-20 01:52:23 +03:00
wheremyfoodat 6895a1d9d6 Implement svcGetCurrentProcessorNumber 2023-08-20 01:51:24 +03:00
wheremyfoodatandGitHub 3ac6c57cf3 Merge pull request #212 from wheremyfoodat/services
Stub NDM::ClearHalfAwakeMacFilter
2023-08-20 01:06:01 +03:00
wheremyfoodat fc2747a3d3 Stub NDM::ClearHalfAwakeMacFilter 2023-08-20 00:48:07 +03:00
wheremyfoodatandGitHub 3b401b4956 Merge pull request #208 from wheremyfoodat/services
Add SD card configs
2023-08-19 19:49:23 +03:00
wheremyfoodat 48b19b2588 Add SD card configs 2023-08-19 19:31:40 +03:00
wheremyfoodatandGitHub a2a2398feb Merge pull request #207 from wheremyfoodat/services
Add MCU::HWC and MCU::HWC::GetBatteryLevel
2023-08-19 18:18:55 +03:00
wheremyfoodat 388790b5fd Format 2023-08-19 17:52:19 +03:00
wheremyfoodat 6d7ab14480 Add MCU::HWC::GetBatteryLevel 2023-08-19 17:50:55 +03:00