projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
glsl: fix crash in loop analysis when some controls can't be determined
[mesa.git]
/
src
/
gallium
/
drivers
/
softpipe
/
sp_fs_sse.c
diff --git
a/src/gallium/drivers/softpipe/sp_fs_sse.c
b/src/gallium/drivers/softpipe/sp_fs_sse.c
index daa158df7c495a2296f1aa8429b939fac8aaacbd..5b18cd035e36f35211b8af04cf6bcf82bd5f71af 100644
(file)
--- a/
src/gallium/drivers/softpipe/sp_fs_sse.c
+++ b/
src/gallium/drivers/softpipe/sp_fs_sse.c
@@
-169,9
+169,15
@@
fs_sse_run( const struct sp_fragment_shader *base,
case TGSI_SEMANTIC_POSITION:
{
uint j;
case TGSI_SEMANTIC_POSITION:
{
uint j;
- for (j = 0; j < 4; j++) {
- quad->output.depth[j] = machine->Outputs[0].xyzw[2].f[j];
- }
+ for (j = 0; j < 4; j++)
+ quad->output.depth[j] = machine->Outputs[i].xyzw[2].f[j];
+ }
+ break;
+ case TGSI_SEMANTIC_STENCIL:
+ {
+ uint j;
+ for (j = 0; j < 4; j++)
+ quad->output.stencil[j] = machine->Outputs[i].xyzw[1].f[j];
}
break;
}
}
break;
}