intel/tools: Disallow control subregisters > 3

> 4 was probably a typo, since the documentation says that there are 4
subregisters (0-3).

Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5514>
This commit is contained in:
Matt Turner 2020-06-16 17:07:15 -07:00 committed by Marge Bot
parent cc6fc963f0
commit e573f21edd
1 changed files with 1 additions and 1 deletions

View File

@ -1853,7 +1853,7 @@ statereg:
controlreg:
CONTROLREG subregnum
{
if ($2 > 4)
if ($2 > 3)
error(&@2, "control sub register number %d"
" out of range\n", $2);