diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-22 08:14:29 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-22 08:14:29 +0100 |
commit | 9a82dec74a1f2059a18a52cf5c6b61b31617a6be (patch) | |
tree | 0ad83c6ebeb8bf17065fa5dee99ae40f0ac68df4 /src/video_core/engines/maxwell_3d.cpp | |
parent | Merge pull request #2035 from lioncash/fwd-decl (diff) | |
download | yuzu-9a82dec74a1f2059a18a52cf5c6b61b31617a6be.tar yuzu-9a82dec74a1f2059a18a52cf5c6b61b31617a6be.tar.gz yuzu-9a82dec74a1f2059a18a52cf5c6b61b31617a6be.tar.bz2 yuzu-9a82dec74a1f2059a18a52cf5c6b61b31617a6be.tar.lz yuzu-9a82dec74a1f2059a18a52cf5c6b61b31617a6be.tar.xz yuzu-9a82dec74a1f2059a18a52cf5c6b61b31617a6be.tar.zst yuzu-9a82dec74a1f2059a18a52cf5c6b61b31617a6be.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index d64a5080b..a388b3944 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp @@ -37,6 +37,7 @@ void Maxwell3D::InitializeRegisterDefaults() { regs.viewports[viewport].depth_range_near = 0.0f; regs.viewports[viewport].depth_range_far = 1.0f; } + // Doom and Bomberman seems to use the uninitialized registers and just enable blend // so initialize blend registers with sane values regs.blend.equation_rgb = Regs::Blend::Equation::Add; @@ -66,6 +67,7 @@ void Maxwell3D::InitializeRegisterDefaults() { regs.stencil_back_func_func = Regs::ComparisonOp::Always; regs.stencil_back_func_mask = 0xFFFFFFFF; regs.stencil_back_mask = 0xFFFFFFFF; + // TODO(Rodrigo): Most games do not set a point size. I think this is a case of a // register carrying a default value. Assume it's OpenGL's default (1). regs.point_size = 1.0f; @@ -78,6 +80,9 @@ void Maxwell3D::InitializeRegisterDefaults() { regs.color_mask[color_mask].B.Assign(1); regs.color_mask[color_mask].A.Assign(1); } + + // Commercial games seem to assume this value is enabled and nouveau sets this value manually. + regs.rt_separate_frag_data = 1; } void Maxwell3D::CallMacroMethod(u32 method, std::vector<u32> parameters) { |