nv50: make blending work so that zero wins in a multiplication
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 4 Nov 2017 17:49:04 +0000 (13:49 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 9 Nov 2017 03:32:43 +0000 (22:32 -0500)
This matches nvc0 behavior, tested with the fbo-float-nan piglit.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tobias Klausmann<tobias.johannes.klausmann@mni.thm.de>
src/gallium/drivers/nouveau/nv50/nv50_screen.c

index 90c19b7d2cd99b1cf2867986f87c06c9c0fdb5bf..c2e69f55134f2eec165e7bdc37ed9f8287f20caf 100644 (file)
@@ -772,6 +772,11 @@ nv50_screen_init_hwctx(struct nv50_screen *screen)
       PUSH_DATA (push, 0);
    }
 
+   BEGIN_NV04(push, NV50_3D(UNK0FDC), 1);
+   PUSH_DATA (push, 1);
+   BEGIN_NV04(push, NV50_3D(UNK19C0), 1);
+   PUSH_DATA (push, 1);
+
    PUSH_KICK (push);
 }