summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove unneeded newlines, optional Registry in shader paramsameerj2020-08-161-4/+3
| | | | Addressing feedback from Rodrigo
* Address feedback, add shader compile notifier, update setting textameerj2020-08-161-4/+5
|
* Vk Async pipeline compilationameerj2020-08-161-3/+2
|
* vk_graphics_pipeline: Resolve narrowing warningsLioncash2020-07-171-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.
* vk_graphics_pipeline: Make use of designated initializers where applicableLioncash2020-07-141-198/+223
| | | | Avoids redundant variable name repetitions.
* vk_pipeline_cache: Avoid hashing and comparing dynamic state when possibleReinUsesLisp2020-06-271-2/+16
| | | | | | 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.
* vulkan/fixed_pipeline_state: Move state out of individual structuresReinUsesLisp2020-06-271-27/+26
|
* vk_rasterizer: Use VK_EXT_extended_dynamic_stateReinUsesLisp2020-06-271-2/+18
|
* fixed_pipeline_state: Add requirements for VK_EXT_extended_dynamic_stateReinUsesLisp2020-06-271-6/+6
| | | | | | | 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.
* Merge pull request #3816 from ReinUsesLisp/vk-rasterizer-enablebunnei2020-05-121-1/+1
|\ | | | | vk_graphics_pipeline: Implement rasterizer_enable on Vulkan
| * vk_graphics_pipeline: Implement rasterizer_enable on VulkanReinUsesLisp2020-05-021-1/+1
| | | | | | | | | | We can simply enable rasterizer discard matching the current pipeline key.
* | vk_graphics_pipeline: Implement viewport swizzles with NV_viewport_swizzleReinUsesLisp2020-05-041-0/+32
| |
* | Merge pull request #3732 from lioncash/headerbunnei2020-05-021-1/+0
|\ \ | |/ |/| vulkan: Remove unnecessary includes
| * vulkan: Remove unnecessary includesLioncash2020-04-291-1/+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.
* | maxwell_3d: Fix depth clamping registerReinUsesLisp2020-04-281-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | 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.
* vk_renderpass_cache: Pack renderpass cache key to 12 bytesReinUsesLisp2020-04-231-1/+1
|
* Merge pull request #3653 from ReinUsesLisp/nsight-aftermathFernando Sahmkow2020-04-221-0/+2
|\ | | | | renderer_vulkan: Integrate Nvidia Nsight Aftermath on Windows
| * renderer_vulkan: Integrate Nvidia Nsight Aftermath on WindowsReinUsesLisp2020-04-141-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.
* | fixed_pipeline_state: Pack blending stateReinUsesLisp2020-04-191-16/+15
| | | | | | | | Reduce FixedPipelineState's size to 364 bytes.
* | fixed_pipeline_state: Pack rasterizer stateReinUsesLisp2020-04-191-7/+5
| | | | | | | | Reduce FixedPipelineState's size to 600 bytes.
* | fixed_pipeline_state: Pack depth stencil stateReinUsesLisp2020-04-191-10/+10
| | | | | | | | Reduce FixedPipelineState's size to 632 bytes.
* | fixed_pipeline_state: Pack attribute stateReinUsesLisp2020-04-191-11/+17
|/ | | | Reduce FixedPipelineState's size from 1384 to 664 bytes
* renderer_vulkan: Drop Vulkan-HppReinUsesLisp2020-04-111-132/+246
|
* vk_shader_decompiler: Implement indexed texturesReinUsesLisp2020-02-241-2/+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).
* vk_graphics_pipeline: Set front facing properlyReinUsesLisp2020-01-181-2/+1
| | | | | | 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.
* vk_graphics_pipeline: Initial implementationReinUsesLisp2020-01-071-0/+271
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.