mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
glsl: Remove redundant semantic check in parser
The removed semantic check also exists in ast_type_specifier::hir(), which
is a more natural location for it.
The check verified that precision statements are applied only to types
float and int.
(cherry picked from commit a9bf8c12ee)
This commit is contained in:
parent
f5819379ed
commit
6fc2c15dbd
1 changed files with 0 additions and 6 deletions
|
|
@ -704,12 +704,6 @@ declaration:
|
|||
}
|
||||
| PRECISION precision_qualifier type_specifier_no_prec ';'
|
||||
{
|
||||
if (($3->type_specifier != ast_float)
|
||||
&& ($3->type_specifier != ast_int)) {
|
||||
_mesa_glsl_error(& @3, state, "global precision qualifier can "
|
||||
"only be applied to `int' or `float'\n");
|
||||
YYERROR;
|
||||
}
|
||||
$3->precision = $2;
|
||||
$3->is_precision_statement = true;
|
||||
$$ = $3;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue