Mesa (master): softpipe: Initialise TGSI machine's Face.

Michał Król michal at kemper.freedesktop.org
Mon Nov 23 09:58:36 UTC 2009


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

Author: Michal Krol <michal at vmware.com>
Date:   Mon Nov 23 10:51:07 2009 +0100

softpipe: Initialise TGSI machine's Face.

---

 src/gallium/drivers/softpipe/sp_fs_exec.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/softpipe/sp_fs_exec.c b/src/gallium/drivers/softpipe/sp_fs_exec.c
index 4076114..a8999ed 100644
--- a/src/gallium/drivers/softpipe/sp_fs_exec.c
+++ b/src/gallium/drivers/softpipe/sp_fs_exec.c
@@ -126,7 +126,13 @@ exec_run( const struct sp_fragment_shader *base,
    setup_pos_vector(quad->posCoef, 
                     (float)quad->input.x0, (float)quad->input.y0, 
                     &machine->QuadPos);
-   
+
+   if (quad->input.facing) {
+      machine->Face = -1.0f;
+   } else {
+      machine->Face = 1.0f;
+   }
+
    quad->inout.mask &= tgsi_exec_machine_run( machine );
    if (quad->inout.mask == 0)
       return FALSE;




More information about the mesa-commit mailing list