softpipe: Initialise TGSI machine's Face.
authorMichal Krol <michal@vmware.com>
Mon, 23 Nov 2009 09:51:07 +0000 (10:51 +0100)
committerMichal Krol <michal@vmware.com>
Mon, 23 Nov 2009 09:51:07 +0000 (10:51 +0100)
src/gallium/drivers/softpipe/sp_fs_exec.c

index 4076114d392a894165e5e6c3419eb63fc4d6a0e5..a8999ed34794db88cf8eef71a9f70d930066a9ff 100644 (file)
@@ -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;