summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/maxwell_3d.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-05-08 21:16:53 +0200
committerGitHub <noreply@github.com>2020-05-08 21:16:53 +0200
commit50c27d5ae1bfe6cff6f091f07d68ab7b8e394d9d (patch)
tree594f42eb18464e5370917bfad61694ecce7a050b /src/video_core/engines/maxwell_3d.cpp
parentMerge pull request #3879 from lioncash/global2 (diff)
parentvk_graphics_pipeline: Implement viewport swizzles with NV_viewport_swizzle (diff)
downloadyuzu-50c27d5ae1bfe6cff6f091f07d68ab7b8e394d9d.tar
yuzu-50c27d5ae1bfe6cff6f091f07d68ab7b8e394d9d.tar.gz
yuzu-50c27d5ae1bfe6cff6f091f07d68ab7b8e394d9d.tar.bz2
yuzu-50c27d5ae1bfe6cff6f091f07d68ab7b8e394d9d.tar.lz
yuzu-50c27d5ae1bfe6cff6f091f07d68ab7b8e394d9d.tar.xz
yuzu-50c27d5ae1bfe6cff6f091f07d68ab7b8e394d9d.tar.zst
yuzu-50c27d5ae1bfe6cff6f091f07d68ab7b8e394d9d.zip
Diffstat (limited to 'src/video_core/engines/maxwell_3d.cpp')
-rw-r--r--src/video_core/engines/maxwell_3d.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp
index 33936e209..024c9e43b 100644
--- a/src/video_core/engines/maxwell_3d.cpp
+++ b/src/video_core/engines/maxwell_3d.cpp
@@ -44,6 +44,12 @@ void Maxwell3D::InitializeRegisterDefaults() {
viewport.depth_range_near = 0.0f;
viewport.depth_range_far = 1.0f;
}
+ for (auto& viewport : regs.viewport_transform) {
+ viewport.swizzle.x.Assign(Regs::ViewportSwizzle::PositiveX);
+ viewport.swizzle.y.Assign(Regs::ViewportSwizzle::PositiveY);
+ viewport.swizzle.z.Assign(Regs::ViewportSwizzle::PositiveZ);
+ viewport.swizzle.w.Assign(Regs::ViewportSwizzle::PositiveW);
+ }
// Doom and Bomberman seems to use the uninitialized registers and just enable blend
// so initialize blend registers with sane values