From: Michal Krol Date: Mon, 23 Nov 2009 09:51:07 +0000 (+0100) Subject: softpipe: Initialise TGSI machine's Face. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc93fa3527e64963acd0e643d7d1061306d9e1df;p=mesa.git softpipe: Initialise TGSI machine's Face. --- diff --git a/src/gallium/drivers/softpipe/sp_fs_exec.c b/src/gallium/drivers/softpipe/sp_fs_exec.c index 4076114d392..a8999ed3479 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;