From 238c6016f935fa73086d7a6609af59fee328717b Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Thu, 16 Apr 2020 21:15:07 -0300 Subject: maxwell_3d: Initialize format attributes constant as one nouveau expects this to be true but it doesn't set it. --- src/video_core/engines/maxwell_3d.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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; -- cgit v1.2.3