eden-miror/src/video_core/renderer_vulkan
CamilleLaVey eb9280dedf
[vulkan] 4th Vulkan Global Maintenance (#4212)
The approach on this PR moves around refactoring/ updating residual work; main issue was the whole logic behind msaa upload/download images with the constant image copy per pass required; which was gated via shaderStorageImageMultisample, which is not available on all the platforms supported including Android, making them to rely into a more heavier approach to convert msaa image copy into a non msaa image copy, not only losing precision in the conversion, but also creating bugs around the resolve of the image itself, if the supported path had to copy 2 times the same image to be actually presentable, when the fallback was enabled 3 copies were performed, not only decreasing the performance but also increasing race conditions due to the certain capabilities processed in this chain (storage_views). In order to resolve them more naturally, the constant copies were removed from the now "common" path along establishing a proper color resolve for Android and actually making them more direct.

Yet this opened a new pack of outdated handling on our current backend; since we now pass msaa images more directly (whenever a game request a msaa type of image/ which seems to be not common + each fragment resolves images on how it's actually required, adding missing depth/stencil), how we often load and store them becomes a critical issue, since our current configuration renderpass/framebuffer forces to always load and load clear whenever a new attachment it's passing through the renderpass, making this really heavier on memory bandwidth limited devices as SteamDeck and others that doesn't rely on the inmediate rendering mode (Tilers vs iGPU); to prevent over allocating data, I had to re-structure part of the current renderpass and framebuffer to actually reuse part of the data/ attachments called, with flags as DON'T_CARE, simplifying partially on how we actually call attachments including their barriers and conditions (occlusion, etc), the DON'T_CARE it's specifically useful to not only prevent calling new loads (which is a flush and heavier on tiler devices) and not only reusing the actual data store, which works on the future time, this saves memory bandwidth and gives space to actually avoid the constant pressure on SYSMEM/GMEM shader resolver path.

This maintenance also improved the current removal features logic on QCOM drivers, closing gaps between implementations on descriptors (VK_EXT_indexing_descriptor), adjusting the whole WMEL to avoid being so stricter if certain capabilities are missing to actually use this feature, leading to test and play more on how QCOM drivers are actually behaving; meanwhile the main objective is to open path for a robust and bigger implementation in the future, the changes made here also contains small bug fixes on SPIR-V logic, adding missing cases to resolve shaders (FP64 -> FP16), adding more robustness on how narrow features are actually being used and how to wired them whenever they're not available, meanwhile there are still some issues in regards on how Tegra vs Adreno can preserve unorms at FP32 and FP16, leaving better understanding on base for what VK_EXT_shader_float_controls is actually doing most of the times (flushes NaN's and Denorms equally).

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4212
2026-07-16 20:56:00 +02:00
..
present [video_core, hle] remove redundant parent references in system structs (#3908) 2026-06-23 06:31:25 +02:00
blit_image.cpp [vulkan] 4th Vulkan Global Maintenance (#4212) 2026-07-16 20:56:00 +02:00
blit_image.h [vulkan] 4th Vulkan Global Maintenance (#4212) 2026-07-16 20:56:00 +02:00
fixed_pipeline_state.cpp [vulkan] 3rd Vulkan Global Maintenance (#4189) 2026-07-09 04:22:43 +02:00
fixed_pipeline_state.h [vulkan] 3rd Vulkan Global Maintenance (#4189) 2026-07-09 04:22:43 +02:00
maxwell_to_vk.cpp [vulkan] 3rd Vulkan Global Maintenance (#4189) 2026-07-09 04:22:43 +02:00
maxwell_to_vk.h [dynarmic, common] pagetable clustering (#3215) 2026-01-13 00:27:31 +01:00
pipeline_helper.h [vulkan, android] Mediacodec implementation + Vulkan fixes (#4191) 2026-07-09 06:55:54 +02:00
pipeline_statistics.cpp [video_core, hle] remove redundant parent references in system structs (#3908) 2026-06-23 06:31:25 +02:00
pipeline_statistics.h [video_core, hle] remove redundant parent references in system structs (#3908) 2026-06-23 06:31:25 +02:00
renderer_vulkan.cpp [video_core, hle] remove redundant parent references in system structs (#3908) 2026-06-23 06:31:25 +02:00
renderer_vulkan.h [vk] Unify RAII in Vulkan (#2679) 2025-10-08 04:01:24 +02:00
vk_blit_screen.cpp [video_core, hle] remove redundant parent references in system structs (#3908) 2026-06-23 06:31:25 +02:00
vk_blit_screen.h [video_core, hle] remove redundant parent references in system structs (#3908) 2026-06-23 06:31:25 +02:00
vk_buffer_cache.cpp [video_core] Improve synchronization and refactor buffer cache timing logic (#4182) 2026-07-10 05:25:12 +02:00
vk_buffer_cache.h [video_core] Improve synchronization and refactor buffer cache timing logic (#4182) 2026-07-10 05:25:12 +02:00
vk_buffer_cache_base.cpp Buffer Cache: Fully rework the buffer cache. 2023-04-29 00:46:31 +02:00
vk_command_pool.cpp
vk_command_pool.h
vk_compute_pass.cpp [vulkan] 4th Vulkan Global Maintenance (#4212) 2026-07-16 20:56:00 +02:00
vk_compute_pass.h [vulkan] 4th Vulkan Global Maintenance (#4212) 2026-07-16 20:56:00 +02:00
vk_compute_pipeline.cpp [vulkan, android] Mediacodec implementation + Vulkan fixes (#4191) 2026-07-09 06:55:54 +02:00
vk_compute_pipeline.h [vulkan] 4th Vulkan Global Maintenance (#4212) 2026-07-16 20:56:00 +02:00
vk_descriptor_pool.cpp [video_core, hle] remove redundant parent references in system structs (#3908) 2026-06-23 06:31:25 +02:00
vk_descriptor_pool.h [video_core, hle] remove redundant parent references in system structs (#3908) 2026-06-23 06:31:25 +02:00
vk_fence_manager.cpp Clang format and ddress feedback 2023-04-24 12:38:47 +02:00
vk_fence_manager.h Query Cache: address issues 2023-09-23 23:05:30 +02:00
vk_graphics_pipeline.cpp [vulkan] 4th Vulkan Global Maintenance (#4212) 2026-07-16 20:56:00 +02:00
vk_graphics_pipeline.h [vk] Clamp dynamic descriptors based on device limits (#4115) 2026-06-30 04:33:30 +02:00
vk_master_semaphore.cpp [vulkan] 3rd Vulkan Global Maintenance (#4189) 2026-07-09 04:22:43 +02:00
vk_master_semaphore.h [vk] Fix lost wakeup in fence mode using atomic wait (#3598) 2026-02-24 06:37:28 +01:00
vk_pipeline_cache.cpp [vulkan] 4th Vulkan Global Maintenance (#4212) 2026-07-16 20:56:00 +02:00
vk_pipeline_cache.h [spirv] nuke spirv-opt (#3877) 2026-04-25 21:54:27 +02:00
vk_present_manager.cpp [*] basic in-house cpp linting (#4039) 2026-06-04 05:49:07 +02:00
vk_present_manager.h [vk] fix crash introduced in 9a07bd0570 (#3685) 2026-03-06 19:52:17 +01:00
vk_query_cache.cpp [vulkan, android] Mediacodec implementation + Vulkan fixes (#4191) 2026-07-09 06:55:54 +02:00
vk_query_cache.h [vulkan] 2nd Vulkan Global Maintenance (#3853) 2026-04-24 16:37:18 +02:00
vk_rasterizer.cpp [vulkan] 4th Vulkan Global Maintenance (#4212) 2026-07-16 20:56:00 +02:00
vk_rasterizer.h [vulkan] 3rd Vulkan Global Maintenance (#4189) 2026-07-09 04:22:43 +02:00
vk_render_pass_cache.cpp [vulkan] 4th Vulkan Global Maintenance (#4212) 2026-07-16 20:56:00 +02:00
vk_render_pass_cache.h [vulkan] 4th Vulkan Global Maintenance (#4212) 2026-07-16 20:56:00 +02:00
vk_resource_pool.cpp
vk_resource_pool.h
vk_scheduler.cpp [vulkan] 4th Vulkan Global Maintenance (#4212) 2026-07-16 20:56:00 +02:00
vk_scheduler.h [vulkan] 4th Vulkan Global Maintenance (#4212) 2026-07-16 20:56:00 +02:00
vk_shader_util.cpp Revert some wip changes 2025-04-28 16:14:42 -03:00
vk_shader_util.h Revert some wip changes 2025-04-28 16:14:42 -03:00
vk_staging_buffer_pool.cpp [video_core] Fix crash using RenderDoc (#4188) 2026-07-12 20:25:36 +02:00
vk_staging_buffer_pool.h revert [vk] Fast UBO: fix tracking, resize heuristics, add debug guard (#2695) (#2706) 2025-10-09 21:37:27 +02:00
vk_state_tracker.cpp [video_core, hle] remove redundant parent references in system structs (#3908) 2026-06-23 06:31:25 +02:00
vk_state_tracker.h [vulkan] 2nd Vulkan Global Maintenance (#3853) 2026-04-24 16:37:18 +02:00
vk_swapchain.cpp [*] basic in-house cpp linting (#4039) 2026-06-04 05:49:07 +02:00
vk_swapchain.h [vk] unify VkSurfaceKHR with Android and the rest of platforms; remove technically incorrect nullptr() ctor for handles (#2971) 2026-03-05 07:32:18 +01:00
vk_texture_cache.cpp [vulkan] 4th Vulkan Global Maintenance (#4212) 2026-07-16 20:56:00 +02:00
vk_texture_cache.h [vulkan] 4th Vulkan Global Maintenance (#4212) 2026-07-16 20:56:00 +02:00
vk_texture_cache_base.cpp
vk_turbo_mode.cpp [*] basic in-house cpp linting (#4039) 2026-06-04 05:49:07 +02:00
vk_turbo_mode.h [*] basic in-house cpp linting (#4039) 2026-06-04 05:49:07 +02:00
vk_update_descriptor.cpp [vk] Clamp dynamic descriptors based on device limits (#4115) 2026-06-30 04:33:30 +02:00
vk_update_descriptor.h [vk] Clamp dynamic descriptors based on device limits (#4115) 2026-06-30 04:33:30 +02:00