summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/vk_compute_pipeline.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-06-16video_core: Use sampler IDs instead pointers in the pipeline configWollnashorn1-3/+3
The previous approach of storing pointers returned by `GetGraphicsSampler`/`GetComputeSampler` caused UB, as these functions can cause reallocation of the sampler slot vector and therefore invalidate the pointers
2023-06-15video_core: Add per-image anisotropy heuristics (format & mip count)Wollnashorn1-3/+3
2023-05-10renderer_vulkan: separate guest and host compute descriptor queuesLiam1-6/+6
2023-02-14remove static from pointer sized or smaller types for aesthetics, change constexpr static to static constexpr for consistencyarades791-2/+1
Signed-off-by: arades79 <scravers@protonmail.com>
2023-02-14add static lifetime to constexpr values to force compile time evaluation where possiblearades791-1/+2
Signed-off-by: arades79 <scravers@protonmail.com>
2023-01-05video_core/vulkan: Added `VkPipelineCache` to store Vulkan pipelinesWollnashorn1-18/+24
As an optional feature which can be enabled in the advanced graphics configuration, all pipelines that get built at the initial shader loading are stored in a VkPipelineCache object and are dumped to the disk. These vendor specific pipeline cache files are located at `/shader/GAME_ID/vulkan_pipelines.bin`. This feature was mainly added because of an issue with the AMD driver (see yuzu-emu#8507) causing invalidation of the cache files the driver builds automatically.
2022-12-04vulkan_common: clean up extension usageLiam1-1/+1
2022-10-06Shader Decompiler: Check for shift when deriving composite samplers.Fernando Sahmkow1-2/+2
2022-06-27video_core: Replace VKUpdateDescriptorQueue with UpdateDescriptorQueuegerman771-1/+1
2022-06-27video_core: Replace VKScheduler with Schedulergerman771-1/+1
2022-04-23general: Convert source file copyright comments over to SPDXMorph1-3/+2
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
2022-04-07video_core: Replace lock_guard with scoped_lockMerry1-1/+1
2021-11-16vulkan: Fix rescaling push constant usageameerj1-16/+20
2021-11-16shader: Properly blacklist and scale image loadsReinUsesLisp1-1/+1
2021-11-16texture_cache: Simplify image view queries and blacklistingReinUsesLisp1-40/+20
2021-11-16Texture Cache: Implement Blacklisting.Fernando Sahmkow1-2/+27
2021-11-16vulkan: Implement rescaling shader patchingReinUsesLisp1-12/+18
2021-07-28renderer_vulkan: Add setting to log pipeline statisticsReinUsesLisp1-2/+11
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-23vk_graphics_pipeline: Use VK_KHR_push_descriptor when availableReinUsesLisp1-5/+3
~51% faster on Nvidia compared to previous method.
2021-07-23vk_pipeline_cache,shader_notify: Add shader notificationsReinUsesLisp1-2/+10
2021-07-23buffer_cache: Reduce uniform buffer size from shader usageReinUsesLisp1-1/+5
Increases performance significantly on certain titles.
2021-07-23shader: Initial OpenGL implementationReinUsesLisp1-9/+13
2021-07-23vulkan: Defer descriptor set work to the Vulkan threadReinUsesLisp1-17/+19
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-23vulkan: Rework descriptor allocation algorithmReinUsesLisp1-2/+2
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-23vk_compute_pipeline: Fix index comparison oversight on compute texture buffersReinUsesLisp1-1/+1
2021-07-23shader: Fix bugs and build issues on GCCRodrigo Locatti1-2/+2
2021-07-23shader: Implement indexed texturesReinUsesLisp1-19/+27
2021-07-23shader: Implement D3D samplersReinUsesLisp1-10/+21
2021-07-23spirv: Implement image buffersReinUsesLisp1-9/+16
2021-07-23shader: Implement SULD and SUSTReinUsesLisp1-0/+4
2021-07-23shader: Interact texture buffers with buffer cacheReinUsesLisp1-9/+21
2021-07-23shader: Implement texture buffersReinUsesLisp1-6/+9
2021-07-23shader: Remove atomic flags and use mutex + cond variable for pipelinesReinUsesLisp1-5/+10
2021-07-23shader: Mark SSBOs as written when they areFernandoS271-1/+1
2021-07-23vulkan: Create pipeline layouts in separate threadsReinUsesLisp1-12/+7
2021-07-23vulkan: Build pipelines in parallel at runtimeReinUsesLisp1-37/+58
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-23shader: Implement VOTEameerj1-1/+6
2021-07-23shader: Add partial rasterizer integrationReinUsesLisp1-175/+34
2021-07-23shader: Initial support for textures and TEXReinUsesLisp1-0/+101
2021-07-23shader: Add denorm flush supportReinUsesLisp1-6/+1
2021-07-23shader: Primitive Vulkan integrationReinUsesLisp1-2/+138
2021-07-23shader: Remove old shader managementReinUsesLisp1-134/+2
2021-01-04renderer_vulkan: Move device abstraction to vulkan_commonReinUsesLisp1-1/+1
2021-01-03renderer_vulkan: Rename VKDevice to DeviceReinUsesLisp1-1/+1
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.
2020-12-31vulkan_common: Rename renderer_vulkan/wrapper.h to vulkan_common/vulkan_wrapper.hReinUsesLisp1-1/+1
Allows sharing Vulkan wrapper code between different rendering backends.
2020-12-05video_core: Resolve more variable shadowing scenarios pt.2Lioncash1-8/+8
Migrates the video core code closer to enabling variable shadowing warnings as errors. This primarily sorts out shadowing occurrences within the Vulkan code.
2020-09-19renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphoreReinUsesLisp1-1/+1
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-07-16vk_compute_pipeline: Make use of designated initializers where applicableLioncash1-63/+68
2020-06-02vk_rasterizer: Implement storage texelsReinUsesLisp1-1/+2
This is the equivalent of an image buffer on OpenGL. - Used by Octopath Traveler
2020-04-29vulkan: Remove unnecessary includesLioncash1-2/+0
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-14renderer_vulkan: Integrate Nvidia Nsight Aftermath on WindowsReinUsesLisp1-0/+2
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-11renderer_vulkan: Drop Vulkan-HppReinUsesLisp1-47/+82
2020-02-24vk_shader_decompiler: Implement indexed texturesReinUsesLisp1-1/+1
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-01-07vk_compute_pipeline: Initial implementationReinUsesLisp1-0/+112
This abstraction represents a Vulkan compute pipeline.