projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9536314
)
gallium: comments about fragment Z computation
author
Brian
<brian.paul@tungstengraphics.com>
Thu, 31 Jan 2008 20:37:01 +0000
(13:37 -0700)
committer
Brian
<brian.paul@tungstengraphics.com>
Thu, 31 Jan 2008 20:41:14 +0000
(13:41 -0700)
src/mesa/pipe/softpipe/sp_quad_fs.c
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/softpipe/sp_quad_fs.c
b/src/mesa/pipe/softpipe/sp_quad_fs.c
index c9cc8afa0ce71594065a99abb64107dc0b442587..90691c6065d1cbdb25f8618ee207588eae385c73 100644
(file)
--- a/
src/mesa/pipe/softpipe/sp_quad_fs.c
+++ b/
src/mesa/pipe/softpipe/sp_quad_fs.c
@@
-168,6
+168,11
@@
shade_quad(
sizeof( quad->outputs.color ) );
}
+ /*
+ * XXX the following code for updating quad->outputs.depth
+ * isn't really needed if we did early z testing.
+ */
+
/* store result Z */
if (qss->depthOutSlot >= 0) {
/* output[slot] is new Z */
@@
-181,6
+186,10
@@
shade_quad(
uint i;
for (i = 0; i < 4; i++) {
quad->outputs.depth[i] = machine->Inputs[0].xyzw[2].f[i];
+ /* XXX not sure the above line is always correct. The following
+ * might be better:
+ quad->outputs.depth[i] = machine->QuadPos.xyzw[2].f[i];
+ */
}
}