diff options
author | Kenneth Graunke <[email protected]> | 2010-06-30 14:11:00 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-06-30 14:54:58 -0700 |
commit | 77049a702ad54e09c4102fe8c964e069944f83e5 (patch) | |
tree | 32bdc6ef6eff71eeeba0550316c99c01be5d9dc1 | |
parent | 16efab1c4dee6e6a827ba5f1c482378159545ae5 (diff) |
glsl2: Implement AST->HIR support for the "discard" instruction.
-rw-r--r-- | src/glsl/ast_to_hir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index a0ca7e5f6df..7d966f848b3 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -2206,13 +2206,13 @@ ast_jump_statement::hir(exec_list *instructions, } case ast_discard: - /* FINISHME: discard support */ if (state->target != fragment_shader) { YYLTYPE loc = this->get_location(); _mesa_glsl_error(& loc, state, "`discard' may only appear in a fragment shader"); } + instructions->push_tail(new(ctx) ir_discard); break; case ast_break: |