summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv20
diff options
context:
space:
mode:
authorPekka Paalanen <[email protected]>2009-01-31 23:28:38 +0200
committerPekka Paalanen <[email protected]>2009-01-31 23:41:23 +0200
commit767f72c1087ff253288c3e62a4f0d8b4d8257c9c (patch)
treead9c517ed0298609a7ad01076b57d0cbf935915e /src/gallium/drivers/nv20
parent9116f9408ed373109cbf7d25998692846f2e2ef3 (diff)
nv20: disable depth writes in hw init
Probably not necessary, but just in case. Depth registers point to the color buffer, when there is no depth buffer. Signed-off-by: Pekka Paalanen <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nv20')
-rw-r--r--src/gallium/drivers/nv20/nv20_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv20/nv20_context.c b/src/gallium/drivers/nv20/nv20_context.c
index 877ef5dcefd..e620166ff55 100644
--- a/src/gallium/drivers/nv20/nv20_context.c
+++ b/src/gallium/drivers/nv20/nv20_context.c
@@ -263,7 +263,7 @@ static void nv20_init_hwctx(struct nv20_context *nv20)
BEGIN_RING(kelvin, NV20TCL_DEPTH_FUNC, 1);
OUT_RING (NV20TCL_DEPTH_FUNC_LESS);
BEGIN_RING(kelvin, NV20TCL_DEPTH_WRITE_ENABLE, 1);
- OUT_RING (1);
+ OUT_RING (0);
BEGIN_RING(kelvin, NV20TCL_DEPTH_TEST_ENABLE, 1);
OUT_RING (0);
BEGIN_RING(kelvin, NV20TCL_POLYGON_OFFSET_FACTOR, 2);