vk_state_tracker: Implement dirty flags for stencil properties

This commit is contained in:
ReinUsesLisp
2020-02-21 01:09:02 -03:00
parent f9df2c6bcd
commit 6ac3eb4d87
3 changed files with 21 additions and 0 deletions

View File

@@ -1046,6 +1046,9 @@ void RasterizerVulkan::UpdateDepthBounds(Tegra::Engines::Maxwell3D& gpu) {
}
void RasterizerVulkan::UpdateStencilFaces(Tegra::Engines::Maxwell3D& gpu) {
if (!state_tracker.TouchStencilProperties()) {
return;
}
const auto& regs = gpu.regs;
if (regs.stencil_two_side_enable) {
// Separate values per face