Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #14207 from unknownbrackets/vulkan-stencil
GPU: Use stencil discard workaround w/o depth test
  • Loading branch information
hrydgard committed Feb 23, 2021
2 parents 0cd5613 + 0640ebb commit a64737f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GPU/Common/ShaderId.cpp
Expand Up @@ -319,7 +319,7 @@ void ComputeFragmentShaderID(FShaderID *id_out, const Draw::Bugs &bugs) {

if (g_Config.bVendorBugChecksEnabled) {
if (bugs.Has(Draw::Bugs::NO_DEPTH_CANNOT_DISCARD_STENCIL)) {
id.SetBit(FS_BIT_NO_DEPTH_CANNOT_DISCARD_STENCIL, !IsStencilTestOutputDisabled() && !gstate.isDepthWriteEnabled());
id.SetBit(FS_BIT_NO_DEPTH_CANNOT_DISCARD_STENCIL, !IsStencilTestOutputDisabled() && (!gstate.isDepthTestEnabled() || !gstate.isDepthWriteEnabled()));
}
}
}
Expand Down

0 comments on commit a64737f

Please sign in to comment.