intel/tools: Don't allow empty type specifier

It's preferable to require an explicit type.

Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5956>
This commit is contained in:
Matt Turner 2020-07-08 13:15:19 -07:00
parent 6809b93411
commit 2851c218e2
1 changed files with 1 additions and 2 deletions

View File

@ -2013,8 +2013,7 @@ region_wh:
;
srctype:
%empty { $$ = retype($$, BRW_REGISTER_TYPE_F); }
| TYPE_F { $$ = retype($$, BRW_REGISTER_TYPE_F); }
TYPE_F { $$ = retype($$, BRW_REGISTER_TYPE_F); }
| TYPE_UD { $$ = retype($$, BRW_REGISTER_TYPE_UD); }
| TYPE_D { $$ = retype($$, BRW_REGISTER_TYPE_D); }
| TYPE_UW { $$ = retype($$, BRW_REGISTER_TYPE_UW); }