summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/vk_state_tracker.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-12-07video_core: Adjust `NUM` macro to avoid Clang warningcomex1-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.
2020-09-06video_core: Remove all Core::System references in rendererReinUsesLisp1-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.
2020-08-21vk_state_tracker: Fix primitive topologyReinUsesLisp1-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.
2020-07-13vk_state_tracker: Fix dirty flags for stencil_enable on VK_EXT_extended_dynamic_stateReinUsesLisp1-0/+1
Fixes a regression on any game using stencil on devices with VK_EXT_extended_dynamic_state.
2020-06-27vk_rasterizer: Use VK_EXT_extended_dynamic_stateReinUsesLisp1-0/+68
2020-03-14DirtyFlags: relax need to set render_targets as dirty Fernando Sahmkow1-2/+0
The texture cache already takes care of setting a render target to dirty when invalidated.
2020-02-28dirty_flags: Deduplicate code between OpenGL and VulkanReinUsesLisp1-39/+2
2020-02-28state_tracker: Remove type traits with named structuresReinUsesLisp1-5/+6
2020-02-28vk_state_tracker: Implement dirty flags for stencil propertiesReinUsesLisp1-0/+13
2020-02-28vk_state_tracker: Implement dirty flags for depth boundsReinUsesLisp1-0/+6
2020-02-28vk_state_tracker: Implement dirty flags for blend constantsReinUsesLisp1-0/+6
2020-02-28vk_state_tracker: Implement dirty flags for depth biasReinUsesLisp1-0/+9
2020-02-28vk_state_tracker: Implement dirty flags for scissorsReinUsesLisp1-0/+6
2020-02-28vk_state_tracker: Initial implementationReinUsesLisp1-0/+97
Add support for render targets and viewports.