diff options
author | Michal Krol <[email protected]> | 2009-11-23 10:51:07 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-11-23 10:51:07 +0100 |
commit | cc93fa3527e64963acd0e643d7d1061306d9e1df (patch) | |
tree | d6408fb012baf549c038cae9c2541c98bdf4269d /src/gallium/drivers/softpipe | |
parent | cc35a454da08e7303c76a51972bcccf7d67b7704 (diff) |
softpipe: Initialise TGSI machine's Face.
Diffstat (limited to 'src/gallium/drivers/softpipe')
-rw-r--r-- | 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 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; |