mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
glsl2: Implement AST->HIR support for the "discard" instruction.
This commit is contained in:
parent
16efab1c4d
commit
77049a702a
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue