summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2020-04-20 21:40:18 -0400
committerGravatar GitHub2020-04-20 21:40:18 -0400
commitd3e0cefa600240c064f2d758cd5c74fc83ad3d40 (patch)
tree3a511d1b7c32f739b8e6e5a1cc66ff0475194db8 /src
parentMerge pull request #3733 from ambasta/patch-2 (diff)
parentmaxwell_3d: Initialize format attributes constant as one (diff)
downloadyuzu-d3e0cefa600240c064f2d758cd5c74fc83ad3d40.tar.gz
yuzu-d3e0cefa600240c064f2d758cd5c74fc83ad3d40.tar.xz
yuzu-d3e0cefa600240c064f2d758cd5c74fc83ad3d40.zip
Merge pull request #3695 from ReinUsesLisp/default-attributes
maxwell_3d: Initialize format attributes constant as one
Diffstat (limited to 'src')
-rw-r--r--src/video_core/engines/maxwell_3d.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp
index ba63b44b4..baa74ad4c 100644
--- a/src/video_core/engines/maxwell_3d.cpp
+++ b/src/video_core/engines/maxwell_3d.cpp
@@ -92,6 +92,10 @@ void Maxwell3D::InitializeRegisterDefaults() {
92 color_mask.A.Assign(1); 92 color_mask.A.Assign(1);
93 } 93 }
94 94
95 for (auto& format : regs.vertex_attrib_format) {
96 format.constant.Assign(1);
97 }
98
95 // NVN games expect these values to be enabled at boot 99 // NVN games expect these values to be enabled at boot
96 regs.rasterize_enable = 1; 100 regs.rasterize_enable = 1;
97 regs.rt_separate_frag_data = 1; 101 regs.rt_separate_frag_data = 1;