projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc35a45
)
softpipe: Initialise TGSI machine's Face.
author
Michal Krol
<michal@vmware.com>
Mon, 23 Nov 2009 09:51:07 +0000
(10:51 +0100)
committer
Michal Krol
<michal@vmware.com>
Mon, 23 Nov 2009 09:51:07 +0000
(10:51 +0100)
src/gallium/drivers/softpipe/sp_fs_exec.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/softpipe/sp_fs_exec.c
b/src/gallium/drivers/softpipe/sp_fs_exec.c
index 4076114d392a894165e5e6c3419eb63fc4d6a0e5..a8999ed34794db88cf8eef71a9f70d930066a9ff 100644
(file)
--- 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;