summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_wm_debug.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-03-23 16:29:31 -0700
committerEric Anholt <eric@anholt.net>2009-03-23 22:52:51 -0700
commit699db6d842c52d0b3b98b320f8ef1104a65fa783 (patch)
tree90b80117968b4cb7ec3fe186e7a24b28339774c0 /src/mesa/drivers/dri/i965/brw_wm_debug.c
parent411d913ccea362dbd75411266d7abb685214ee93 (diff)
i965: Fix glFrontFacing in twoside GLSL demo.
This also cuts instructions by just using the existing bit in the payload rather than computing it from the determinant in the SF unit and passing it as a varying down to the WM. Something still goes wrong with getting the backface color right, but a simpler shader appears to get the right result.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm_debug.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm_debug.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_debug.c b/src/mesa/drivers/dri/i965/brw_wm_debug.c
index 8f07f89ebc..220821087c 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_debug.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_debug.c
@@ -130,6 +130,9 @@ void brw_wm_print_insn( struct brw_wm_compile *c,
case WM_FB_WRITE:
_mesa_printf(" = FB_WRITE");
break;
+ case WM_FRONTFACING:
+ _mesa_printf(" = FRONTFACING");
+ break;
default:
_mesa_printf(" = %s", _mesa_opcode_string(inst->opcode));
break;