summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-04-21 03:40:18 +0200
committerGitHub <noreply@github.com>2020-04-21 03:40:18 +0200
commitd3e0cefa600240c064f2d758cd5c74fc83ad3d40 (patch)
tree3a511d1b7c32f739b8e6e5a1cc66ff0475194db8 /src/video_core
parentMerge pull request #3733 from ambasta/patch-2 (diff)
parentmaxwell_3d: Initialize format attributes constant as one (diff)
downloadyuzu-d3e0cefa600240c064f2d758cd5c74fc83ad3d40.tar
yuzu-d3e0cefa600240c064f2d758cd5c74fc83ad3d40.tar.gz
yuzu-d3e0cefa600240c064f2d758cd5c74fc83ad3d40.tar.bz2
yuzu-d3e0cefa600240c064f2d758cd5c74fc83ad3d40.tar.lz
yuzu-d3e0cefa600240c064f2d758cd5c74fc83ad3d40.tar.xz
yuzu-d3e0cefa600240c064f2d758cd5c74fc83ad3d40.tar.zst
yuzu-d3e0cefa600240c064f2d758cd5c74fc83ad3d40.zip
Diffstat (limited to 'src/video_core')
-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;