nv40: seems we have stencil faces around the wrong way.

This commit is contained in:
Ben Skeggs
2007-12-23 16:19:25 +11:00
parent 74757eb970
commit 7372a596a9
2 changed files with 5 additions and 1 deletions
@@ -222,6 +222,9 @@ nouveau_bo_map(struct nouveau_bo *bo, uint32_t flags)
if (!nvbo)
return -EINVAL;
if (nvbo->fence)
nouveau_fence_wait(&nvbo->fence);
if (nvbo->sysmem)
bo->map = nvbo->sysmem;
else
+2 -1
View File
@@ -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);
}