Mesa (master): i965: Fix gen6 front cull mode.

Eric Anholt anholt at kemper.freedesktop.org
Sat Jun 12 21:48:24 PDT 2010


Module: Mesa
Branch: master
Commit: 1dc573a881f5b1413d156b64f5fdd0a57825c02a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1dc573a881f5b1413d156b64f5fdd0a57825c02a

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Jun 11 15:14:22 2010 -0700

i965: Fix gen6 front cull mode.

---

 src/mesa/drivers/dri/i965/gen6_sf_state.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/gen6_sf_state.c b/src/mesa/drivers/dri/i965/gen6_sf_state.c
index 8d96b44..51940ef 100644
--- a/src/mesa/drivers/dri/i965/gen6_sf_state.c
+++ b/src/mesa/drivers/dri/i965/gen6_sf_state.c
@@ -87,7 +87,7 @@ upload_sf_state(struct brw_context *brw)
    if (ctx->Polygon.CullFlag) {
       switch (ctx->Polygon.CullFaceMode) {
       case GL_FRONT:
-	 dw3 |= GEN6_SF_CULL_BOTH;
+	 dw3 |= GEN6_SF_CULL_FRONT;
 	 break;
       case GL_BACK:
 	 dw3 |= GEN6_SF_CULL_BACK;



More information about the mesa-commit mailing list