From: Matt Turner Date: Wed, 17 Jun 2020 00:07:15 +0000 (-0700) Subject: intel/tools: Disallow control subregisters > 3 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e573f21edd39c3e3ab8c10579851bc2bd100f0bb;p=mesa.git 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 Part-of: --- diff --git a/src/intel/tools/i965_gram.y b/src/intel/tools/i965_gram.y index e236113771c..2aaf1471c5f 100644 --- a/src/intel/tools/i965_gram.y +++ b/src/intel/tools/i965_gram.y @@ -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);