From 2851c218e28cb06be5b5621465a14eedddd9bf05 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Wed, 8 Jul 2020 13:15:19 -0700 Subject: [PATCH] intel/tools: Don't allow empty type specifier It's preferable to require an explicit type. Reviewed-by: Sagar Ghuge Part-of: --- src/intel/tools/i965_gram.y | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } -- 2.30.2