summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-04-16 21:15:07 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-04-16 21:15:07 -0300
commit238c6016f935fa73086d7a6609af59fee328717b (patch)
tree33942df0d326ef1963e00db6fbae22cc715901f0 /src
parentc81f2561111541e1b5b7f18b70ea69f93a33904d (diff)
maxwell_3d: Initialize format attributes constant as one
nouveau expects this to be true but it doesn't set it.
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() {
color_mask.A.Assign(1);
}
+ for (auto& format : regs.vertex_attrib_format) {
+ format.constant.Assign(1);
+ }
+
// NVN games expect these values to be enabled at boot
regs.rasterize_enable = 1;
regs.rt_separate_frag_data = 1;