From: Matt Turner Date: Wed, 8 Jul 2020 20:15:19 +0000 (-0700) Subject: intel/tools: Don't allow empty type specifier X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2851c218e28cb06be5b5621465a14eedddd9bf05;p=mesa.git intel/tools: Don't allow empty type specifier It's preferable to require an explicit type. Reviewed-by: Sagar Ghuge Part-of: --- diff --git a/src/intel/tools/i965_gram.y b/src/intel/tools/i965_gram.y index a5f2d780efa..a010e93bc68 100644 --- a/src/intel/tools/i965_gram.y +++ b/src/intel/tools/i965_gram.y @@ -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); }