mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/hlsl: Merge the "discard_statement" rule into "jump_statement".
This commit is contained in:
parent
588784e4dc
commit
7d521db3db
Notes:
Alexandre Julliard
2023-06-28 23:03:54 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/230
@ -4431,7 +4431,6 @@ static void validate_texture_format_type(struct hlsl_ctx *ctx, struct hlsl_type
|
||||
%type <list> conditional_expr
|
||||
%type <list> declaration
|
||||
%type <list> declaration_statement
|
||||
%type <list> discard_statement
|
||||
%type <list> equality_expr
|
||||
%type <list> expr
|
||||
%type <list> expr_optional
|
||||
@ -5741,7 +5740,6 @@ statement:
|
||||
declaration_statement
|
||||
| expr_statement
|
||||
| compound_statement
|
||||
| discard_statement
|
||||
| jump_statement
|
||||
| selection_statement
|
||||
| loop_statement
|
||||
@ -5760,9 +5758,7 @@ jump_statement:
|
||||
if (!add_return(ctx, $$, NULL, &@1))
|
||||
YYABORT;
|
||||
}
|
||||
|
||||
discard_statement:
|
||||
KW_DISCARD ';'
|
||||
| KW_DISCARD ';'
|
||||
{
|
||||
struct hlsl_ir_node *discard, *c;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user