diff options
| author | 2020-04-16 21:15:07 -0300 | |
|---|---|---|
| committer | 2020-04-16 21:15:07 -0300 | |
| commit | 238c6016f935fa73086d7a6609af59fee328717b (patch) | |
| tree | 33942df0d326ef1963e00db6fbae22cc715901f0 | |
| parent | Merge pull request #3600 from ReinUsesLisp/no-pointer-buf-cache (diff) | |
| download | yuzu-238c6016f935fa73086d7a6609af59fee328717b.tar.gz yuzu-238c6016f935fa73086d7a6609af59fee328717b.tar.xz yuzu-238c6016f935fa73086d7a6609af59fee328717b.zip | |
maxwell_3d: Initialize format attributes constant as one
nouveau expects this to be true but it doesn't set it.
| -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; |