From e573f21edd39c3e3ab8c10579851bc2bd100f0bb Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 16 Jun 2020 17:07:15 -0700 Subject: [PATCH] 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: --- src/intel/tools/i965_gram.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2