diff options
author | bunnei <bunneidev@gmail.com> | 2018-11-12 04:58:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-12 04:58:16 +0100 |
commit | 2c6efda2352a1133a1091d2aa206b1f044b7642a (patch) | |
tree | 2a1bbae2d93fb2a52f0ff3f7802919cef8b4d6d3 /src/video_core/engines/maxwell_3d.cpp | |
parent | Merge pull request #1652 from FreddyFunk/static-cast (diff) | |
parent | Use core extensions when available to set max anisotropic filtering level (diff) | |
download | yuzu-2c6efda2352a1133a1091d2aa206b1f044b7642a.tar yuzu-2c6efda2352a1133a1091d2aa206b1f044b7642a.tar.gz yuzu-2c6efda2352a1133a1091d2aa206b1f044b7642a.tar.bz2 yuzu-2c6efda2352a1133a1091d2aa206b1f044b7642a.tar.lz yuzu-2c6efda2352a1133a1091d2aa206b1f044b7642a.tar.xz yuzu-2c6efda2352a1133a1091d2aa206b1f044b7642a.tar.zst yuzu-2c6efda2352a1133a1091d2aa206b1f044b7642a.zip |
Diffstat (limited to 'src/video_core/engines/maxwell_3d.cpp')
-rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index 5ae836aca..d1777b25b 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp @@ -53,6 +53,19 @@ void Maxwell3D::InitializeRegisterDefaults() { regs.independent_blend[blend_index].factor_source_a = Regs::Blend::Factor::One; regs.independent_blend[blend_index].factor_dest_a = Regs::Blend::Factor::Zero; } + regs.stencil_front_op_fail = Regs::StencilOp::Keep; + regs.stencil_front_op_zfail = Regs::StencilOp::Keep; + regs.stencil_front_op_zpass = Regs::StencilOp::Keep; + regs.stencil_front_func_func = Regs::ComparisonOp::Always; + regs.stencil_front_func_mask = 0xFFFFFFFF; + regs.stencil_front_mask = 0xFFFFFFFF; + regs.stencil_two_side_enable = 1; + regs.stencil_back_op_fail = Regs::StencilOp::Keep; + regs.stencil_back_op_zfail = Regs::StencilOp::Keep; + regs.stencil_back_op_zpass = Regs::StencilOp::Keep; + regs.stencil_back_func_func = Regs::ComparisonOp::Always; + regs.stencil_back_func_mask = 0xFFFFFFFF; + regs.stencil_back_mask = 0xFFFFFFFF; } void Maxwell3D::CallMacroMethod(u32 method, std::vector<u32> parameters) { |