diff options
| author | 2020-04-20 21:40:18 -0400 | |
|---|---|---|
| committer | 2020-04-20 21:40:18 -0400 | |
| commit | d3e0cefa600240c064f2d758cd5c74fc83ad3d40 (patch) | |
| tree | 3a511d1b7c32f739b8e6e5a1cc66ff0475194db8 /src | |
| parent | Merge pull request #3733 from ambasta/patch-2 (diff) | |
| parent | maxwell_3d: Initialize format attributes constant as one (diff) | |
| download | yuzu-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.cpp | 4 |
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; |