intel/tools: Remove unnecessary reg number checking
authorMatt Turner <mattst88@gmail.com>
Tue, 16 Jun 2020 23:53:57 +0000 (16:53 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 19 Jun 2020 02:10:40 +0000 (02:10 +0000)
commit27557e71102055889cc9d2213024e154655b3d92
tree67b980c4660badc7c85e237742e57068ecca59ad
parentf8110226baa8239540bedbb6c2ae95812f0cbc4b
intel/tools: Remove unnecessary reg number checking

a0 is the only address register, and cr0 is the only control register,
so there's no need to return the register number, espcially since the
lexer explicitly consumes "a0" and "cr0".

Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5514>
src/intel/tools/i965_gram.y
src/intel/tools/i965_lex.l