summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2017-11-04 13:49:04 -0400
committerIlia Mirkin <[email protected]>2017-11-08 22:32:43 -0500
commit35433494f35f049aa0ba993391871504abfa0cc0 (patch)
tree7983132eb004912da7bcec93208f3b283123a6e3
parent9c53b80ff94c60bef18af6fbeee30bae43b42485 (diff)
nv50: make blending work so that zero wins in a multiplication
This matches nvc0 behavior, tested with the fbo-float-nan piglit. Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Tobias Klausmann<[email protected]>
-rw-r--r--src/gallium/drivers/nouveau/nv50/nv50_screen.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_screen.c b/src/gallium/drivers/nouveau/nv50/nv50_screen.c
index 90c19b7d2cd..c2e69f55134 100644
--- a/src/gallium/drivers/nouveau/nv50/nv50_screen.c
+++ b/src/gallium/drivers/nouveau/nv50/nv50_screen.c
@@ -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);
}