glsl2: Implement AST->HIR support for the "discard" instruction.

This commit is contained in:
Kenneth Graunke 2010-06-30 14:11:00 -07:00 committed by Ian Romanick
parent 16efab1c4d
commit 77049a702a

View file

@ -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: