diff options
author | Ben Skeggs <skeggsb@gmail.com> | 2007-12-23 16:19:25 +1100 |
---|---|---|
committer | Ben Skeggs <skeggsb@gmail.com> | 2007-12-23 16:19:25 +1100 |
commit | 7372a596a9b960b212c839ef4ee1a1358b224047 (patch) | |
tree | 3c751eeefe546e29263824adb462f77328cbe663 /src/mesa/pipe/nv40 | |
parent | 74757eb970984b0404c17255f3639d8a40591964 (diff) |
nv40: seems we have stencil faces around the wrong way.
Diffstat (limited to 'src/mesa/pipe/nv40')
-rw-r--r-- | src/mesa/pipe/nv40/nv40_state.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/pipe/nv40/nv40_state.c b/src/mesa/pipe/nv40/nv40_state.c index 12b2c2a8e8..8fa40ce8ef 100644 --- a/src/mesa/pipe/nv40/nv40_state.c +++ b/src/mesa/pipe/nv40/nv40_state.c @@ -425,9 +425,10 @@ nv40_depth_stencil_alpha_state_bind(struct pipe_context *pipe, void *hwcso) BEGIN_RING(curie, NV40TCL_DEPTH_FUNC, 3); OUT_RINGp ((uint32_t *)&hw->depth, 3); + /*XXX: fix in nouveau_class.h, faces backwards.. */ BEGIN_RING(curie, NV40TCL_STENCIL_BACK_ENABLE, 16); - OUT_RINGp ((uint32_t *)&hw->stencil.back, 8); OUT_RINGp ((uint32_t *)&hw->stencil.front, 8); + OUT_RINGp ((uint32_t *)&hw->stencil.back, 8); BEGIN_RING(curie, NV40TCL_ALPHA_TEST_ENABLE, 3); OUT_RINGp ((uint32_t *)&hw->alpha.enabled, 3); } |