softjit: Fix locked stencil reg.

This commit is contained in:
Unknown W. Brackets 2021-11-28 20:24:56 -08:00
parent 0ef1df79b9
commit bfe82e417d

View File

@ -608,6 +608,7 @@ bool PixelJitCache::Jit_StencilAndDepthTest(const PixelFuncID &id) {
success = success && Jit_ApplyStencilOp(id, id.ZPass(), stencilReg);
// At this point, stencilReg can't be spilled. It contains the updated value.
regCache_.Unlock(stencilReg, RegCache::GEN_STENCIL);
regCache_.ForceRetain(RegCache::GEN_STENCIL);
return success;