summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_codegen.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-01-19 10:15:34 -0700
committerBrian <[email protected]>2007-01-19 10:15:34 -0700
commita0092c51b1c334ef8d4a58939dc583b2aafbce69 (patch)
tree5b7f779f3f46f0078d5cacbe48639ec8442f4b1e /src/mesa/shader/slang/slang_codegen.c
parent8374ccb66ff13074a3f5938da1e22a48921c5328 (diff)
Implement fragment discard/kill.
Diffstat (limited to 'src/mesa/shader/slang/slang_codegen.c')
-rw-r--r--src/mesa/shader/slang/slang_codegen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c
index ea08c46fcfe..76dcca576d2 100644
--- a/src/mesa/shader/slang/slang_codegen.c
+++ b/src/mesa/shader/slang/slang_codegen.c
@@ -2054,6 +2054,9 @@ _slang_gen_operation(slang_assemble_ctx * A, slang_operation *oper)
RETURN_ERROR("'continue' not in loop", 0);
}
return new_jump(A->CurLoopCont);
+ case slang_oper_discard:
+ return new_node(IR_KILL, NULL, NULL);
+
case slang_oper_equal:
return new_node(IR_SEQUAL,
_slang_gen_operation(A, &oper->children[0]),