eden-miror/src/video_core/vulkan_common
CamilleLaVey 372bdfccbc
[vulkan, android] Mediacodec implementation + Vulkan fixes (#4191)
This is the first step into the conversion on full GPU video decoding for Android; currently due to the VIC structure, I couldn't set it on surface mode to prevent the latency when sending video decoded (which is processed by GPU now), because currently we convert YUV420 into the Nvidia's format each frame constantly on CPU, aside the requirements from other extensions to work + VIC rewrite, which is a work currently not planned to happen on this PR; the actual configuration for video decoding is ByteBuffer, using GPU to decode NVDEC data (all codecs supported, h264, vp8 and vp9) and send it to CPU for display purposes, which is more faster than relying purely on CPU for any drawing task, saving devices resources/ heating, the downside on this will be the slight latency when a new frame is displayed, which is gonna be a black frame for less than a second, nothing major to harm the experience rather than actually trying our best to take advantage on hardware accelerated.

Aside this, I also added a bunch of minor Vulkan fixes to grant drivers less thinkering when receiving spir-v instructions, meaning this has new bans for extensions on QCOM (following reported issues on other projects working around Adreno driver behavior), this more than providing performance aims to enhance the stability on the driver, performance it's gonna likely to be hit based on the UBO's (StorageBufferAccess) operations and SSBO (uniformStorageBufferAccess), there was an already existing path for the emulation which forces to wide them into 32bit packed operations. I also included some smaller changes/ bugs + VUID's fixes from earlier changes on my work.

Special Thanks:

-> Mr. Smoly Gidolard (@gidoly)

Sources:

1.- https://github.com/microsoft/DirectXShaderCompiler/issues/2842
2.- https://github.com/mlc-ai/web-llm/issues/836
3.- https://github.com/ggml-org/llama.cpp/issues/5186
4.- https://github.com/encounter/aurora/pull/202

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4191
2026-07-09 06:55:54 +02:00
..
nsight_aftermath_tracker.cpp [common/logging] Simplify logging logic and fix issues when logging before system is created (#3688) 2026-03-12 18:29:15 +01:00
nsight_aftermath_tracker.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
vk_enum_string_helper.h Simplify VkResult lookup 2024-01-22 03:10:43 +00:00
vma.h [cmake] fix video_core and tests comp errors on Windows (#2631) 2025-10-05 00:00:52 +02:00
vulkan.h [vulkan] 1st Vulkan Global Maintenance (#3839) 2026-04-08 23:46:50 +02:00
vulkan_debug_callback.cpp xbzk/gpu-logging_qt-controls_android-fix (#4018) 2026-06-27 02:52:13 +02:00
vulkan_debug_callback.h renderer_vulkan: Remove debug report 2023-09-08 23:28:46 +03:00
vulkan_device.cpp [vulkan, android] Mediacodec implementation + Vulkan fixes (#4191) 2026-07-09 06:55:54 +02:00
vulkan_device.h [vulkan, android] Mediacodec implementation + Vulkan fixes (#4191) 2026-07-09 06:55:54 +02:00
vulkan_instance.cpp [video_core] fix TOCTOU in Vulkan instance extension enumeration (#4072) 2026-06-15 03:02:53 +02:00
vulkan_instance.h vulkan_common: unify VK_EXT_debug_utils and selection of validation layer 2023-01-01 11:59:47 -05:00
vulkan_library.cpp [*] basic in-house cpp linting (#4039) 2026-06-04 05:49:07 +02:00
vulkan_library.h android: native: Add support for custom Vulkan driver loading. 2023-06-03 00:05:31 -07:00
vulkan_memory_allocator.cpp xbzk/gpu-logging_qt-controls_android-fix (#4018) 2026-06-27 02:52:13 +02:00
vulkan_memory_allocator.h [VMA] Phase 3:- Hand all allocation & binding to VMA (#362) 2025-09-01 00:20:03 +02:00
vulkan_surface.cpp [common/logging] Simplify logging logic and fix issues when logging before system is created (#3688) 2026-03-12 18:29:15 +01:00
vulkan_surface.h vulkan_surface: Pass only window info for surface creation 2023-05-02 21:51:30 -04:00
vulkan_wrapper.cpp [vulkan, android] Mediacodec implementation + Vulkan fixes (#4191) 2026-07-09 06:55:54 +02:00
vulkan_wrapper.h [vulkan, android] Mediacodec implementation + Vulkan fixes (#4191) 2026-07-09 06:55:54 +02:00