projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'llvm-cliptest-viewport'
[mesa.git]
/
src
/
gallium
/
drivers
/
softpipe
/
sp_fs_exec.c
diff --git
a/src/gallium/drivers/softpipe/sp_fs_exec.c
b/src/gallium/drivers/softpipe/sp_fs_exec.c
index 67e2c8f8bc4223737fe3b24d0e6a4a7900b810f3..346e1b402baba023916102fdc59789429216e3ab 100644
(file)
--- a/
src/gallium/drivers/softpipe/sp_fs_exec.c
+++ b/
src/gallium/drivers/softpipe/sp_fs_exec.c
@@
-158,9
+158,17
@@
exec_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++) {
+
+ for (j = 0; j < 4; j++)
quad->output.depth[j] = machine->Outputs[i].xyzw[2].f[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] = (unsigned)machine->Outputs[i].xyzw[1].f[j];
}
break;
}
}
break;
}