diff options
author | Eric Anholt <[email protected]> | 2009-03-23 16:29:31 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2009-03-23 22:52:51 -0700 |
commit | 699db6d842c52d0b3b98b320f8ef1104a65fa783 (patch) | |
tree | 90b80117968b4cb7ec3fe186e7a24b28339774c0 /src/mesa/drivers/dri/i965/brw_wm_pass1.c | |
parent | 411d913ccea362dbd75411266d7abb685214ee93 (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_pass1.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_pass1.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_pass1.c b/src/mesa/drivers/dri/i965/brw_wm_pass1.c index cf031899dd2..ab9aa2f10d0 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_pass1.c +++ b/src/mesa/drivers/dri/i965/brw_wm_pass1.c @@ -268,6 +268,7 @@ void brw_wm_pass1( struct brw_wm_compile *c ) break; case OPCODE_DST: + case WM_FRONTFACING: default: break; } |