projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e38d2f7
)
ir_to_mesa: When emitting a pixel kill, flag that we did so.
author
Eric Anholt
<eric@anholt.net>
Tue, 31 Aug 2010 20:02:59 +0000
(13:02 -0700)
committer
Eric Anholt
<eric@anholt.net>
Tue, 31 Aug 2010 22:43:49 +0000
(15:43 -0700)
Both i965 and swrast rely on UsesKill to determine whether to do early
depth writes. Fixes glsl-fs-discard-02.
Bug #29835.
src/mesa/program/ir_to_mesa.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/program/ir_to_mesa.cpp
b/src/mesa/program/ir_to_mesa.cpp
index 8f39a225af58c0c80ed3681734acb3b1a38eee0f..57458d02812bcf79904b9bdf93ae38f61f88248d 100644
(file)
--- a/
src/mesa/program/ir_to_mesa.cpp
+++ b/
src/mesa/program/ir_to_mesa.cpp
@@
-2041,9
+2041,12
@@
ir_to_mesa_visitor::visit(ir_return *ir)
void
ir_to_mesa_visitor::visit(ir_discard *ir)
{
+ struct gl_fragment_program *fp = (struct gl_fragment_program *)this->prog;
+
assert(ir->condition == NULL); /* FINISHME */
ir_to_mesa_emit_op0(ir, OPCODE_KIL_NV);
+ fp->UsesKill = GL_TRUE;
}
void