summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/vk_state_tracker.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Video_core: Address feedbackFernando Sahmkow2023-01-041-1/+1
|
* Vulkan: rework stencil tracking.Fernando Sahmkow2023-01-031-9/+17
|
* Vulkan: Implement Dynamic State 3Fernando Sahmkow2023-01-011-0/+14
|
* Vulkan Implement Dynamic State 2 LogicOp and PatchVerticesFernando Sahmkow2023-01-011-0/+6
|
* Vulkan: Implement Dynamic States 2Fernando Sahmkow2023-01-011-22/+36
|
* ir/texture_pass: Use host_info instead of querying Settings::values (#9176)Morph2022-11-111-1/+1
|
* Fix stencil func registers, make clip control equivalent to how it was before, but surely wrong.Kelebek12022-10-101-6/+6
|
* Update 3D regsKelebek12022-10-071-29/+29
|
* state_tracker: workaround channel setup for homebrewLiam2022-10-061-1/+2
|
* OpenGl: Implement Channels.Fernando Sahmkow2022-10-061-3/+5
|
* VideoCore: implement channels on gpu caches.Fernando Sahmkow2022-10-061-3/+10
|
* general: Convert source file copyright comments over to SPDXMorph2022-04-231-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.
* video_core: Reduce unused includesameerj2022-03-191-1/+0
|
* Fix vulkan viewport issueFeng Chen2021-10-221-0/+1
|
* vk_graphics_pipeline: Implement line widthReinUsesLisp2021-07-231-4/+10
|
* vulkan: Add VK_EXT_vertex_input_dynamic_state supportReinUsesLisp2021-07-231-18/+32
| | | | | Reduces the number of total pipelines generated on Vulkan. Tested on Super Smash Bros. Ultimate.
* fixed_pipeline_cache: Use dirty flags to lazily update keyReinUsesLisp2021-02-131-2/+32
| | | | | Use dirty flags to avoid building pipeline key from scratch on each draw call. This saves a bit of unnecesary work on each draw call.
* video_core: Reimplement the buffer cacheReinUsesLisp2021-02-131-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Reimplement the buffer cache using cached bindings and page level granularity for modification tracking. This also drops the usage of shared pointers and virtual functions from the cache. - Bindings are cached, allowing to skip work when the game changes few bits between draws. - OpenGL Assembly shaders no longer copy when a region has been modified from the GPU to emulate constant buffers, instead GL_EXT_memory_object is used to alias sub-buffers within the same allocation. - OpenGL Assembly shaders stream constant buffer data using glProgramBufferParametersIuivNV, from NV_parameter_buffer_object. In theory this should save one hash table resolve inside the driver compared to glBufferSubData. - A new OpenGL stream buffer is implemented based on fences for drivers that are not Nvidia's proprietary, due to their low performance on partial glBufferSubData calls synchronized with 3D rendering (that some games use a lot). - Most optimizations are shared between APIs now, allowing Vulkan to cache more bindings than before, skipping unnecesarry work. This commit adds the necessary infrastructure to use Vulkan object from OpenGL. Overall, it improves performance and fixes some bugs present on the old cache. There are still some edge cases hit by some games that harm performance on some vendors, this are planned to be fixed in later commits.
* video_core: Rewrite the texture cacheReinUsesLisp2020-12-301-14/+9
| | | | | | | | | | | | | | The current texture cache has several points that hurt maintainability and performance. It's easy to break unrelated parts of the cache when doing minor changes. The cache can easily forget valuable information about the cached textures by CPU writes or simply by its normal usage.The current texture cache has several points that hurt maintainability and performance. It's easy to break unrelated parts of the cache when doing minor changes. The cache can easily forget valuable information about the cached textures by CPU writes or simply by its normal usage. This commit aims to address those issues.
* video_core: Adjust `NUM` macro to avoid Clang warningcomex2020-12-071-1/+1
| | | | | | | | | | | | | | | | The previous definition was: #define NUM(field_name) (sizeof(Maxwell3D::Regs::field_name) / sizeof(u32)) In cases where `field_name` happens to refer to an array, Clang thinks `sizeof(an array value) / sizeof(a type)` is an instance of the idiom where `sizeof` is used to compute an array length. So it thinks the type in the denominator ought to be the array element type, and warns if it isn't, assuming this is a mistake. In reality, `NUM` is not used to get array lengths at all, so there is no mistake. Silence the warning by applying Clang's suggested workaround of parenthesizing the denominator.
* video_core: Remove all Core::System references in rendererReinUsesLisp2020-09-061-11/+3
| | | | | | | | | Now that the GPU is initialized when video backends are initialized, it's no longer needed to query components once the game is running: it can be done when yuzu is booting. This allows us to pass components between constructors and in the process remove all Core::System references in the video backend.
* vk_state_tracker: Fix primitive topologyReinUsesLisp2020-08-211-6/+1
| | | | | | | | | State track the current primitive topology with a regular comparison instead of using dirty flags. This fixes a bug in dirty flags for this particular state and it also avoids unnecessary state changes as this property is stored in a frequently changed bit field.
* vk_state_tracker: Fix dirty flags for stencil_enable on VK_EXT_extended_dynamic_stateReinUsesLisp2020-07-131-0/+1
| | | | | Fixes a regression on any game using stencil on devices with VK_EXT_extended_dynamic_state.
* vk_rasterizer: Use VK_EXT_extended_dynamic_stateReinUsesLisp2020-06-271-0/+68
|
* DirtyFlags: relax need to set render_targets as dirty Fernando Sahmkow2020-03-141-2/+0
| | | | | The texture cache already takes care of setting a render target to dirty when invalidated.
* dirty_flags: Deduplicate code between OpenGL and VulkanReinUsesLisp2020-02-281-39/+2
|
* state_tracker: Remove type traits with named structuresReinUsesLisp2020-02-281-5/+6
|
* vk_state_tracker: Implement dirty flags for stencil propertiesReinUsesLisp2020-02-281-0/+13
|
* vk_state_tracker: Implement dirty flags for depth boundsReinUsesLisp2020-02-281-0/+6
|
* vk_state_tracker: Implement dirty flags for blend constantsReinUsesLisp2020-02-281-0/+6
|
* vk_state_tracker: Implement dirty flags for depth biasReinUsesLisp2020-02-281-0/+9
|
* vk_state_tracker: Implement dirty flags for scissorsReinUsesLisp2020-02-281-0/+6
|
* vk_state_tracker: Initial implementationReinUsesLisp2020-02-281-0/+97
Add support for render targets and viewports.