mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 13:30:11 +01:00
gallium: comments about fragment Z computation
This commit is contained in:
parent
9536314a6c
commit
acb81374c1
1 changed files with 9 additions and 0 deletions
|
|
@ -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];
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue