projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5b3b2a
)
ir_to_mesa: Add support for discard instructions.
author
Eric Anholt
<eric@anholt.net>
Thu, 1 Jul 2010 00:31:06 +0000
(17:31 -0700)
committer
Eric Anholt
<eric@anholt.net>
Thu, 1 Jul 2010 00:31:06 +0000
(17:31 -0700)
Fixes glsl-fs-discard-01.
src/mesa/shader/ir_to_mesa.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/shader/ir_to_mesa.cpp
b/src/mesa/shader/ir_to_mesa.cpp
index b140d96851f82e05577f3a392976e6595e15c583..b270e2da413db2fdc4e768e87d8c53b9d441cd93 100644
(file)
--- a/
src/mesa/shader/ir_to_mesa.cpp
+++ b/
src/mesa/shader/ir_to_mesa.cpp
@@
-1342,9
+1342,10
@@
ir_to_mesa_visitor::visit(ir_return *ir)
void
ir_to_mesa_visitor::visit(ir_discard *ir)
{
- assert(
0);
+ assert(
ir->condition == NULL); /* FINISHME */
- ir->condition->accept(this);
+ ir_to_mesa_emit_op1(ir, OPCODE_KIL_NV,
+ ir_to_mesa_undef_dst, ir_to_mesa_undef);
}
void