Mesa (master): intel/tools: Disallow control subregisters > 3
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jun 19 02:24:09 UTC 2020
Module: Mesa
Branch: master
Commit: e573f21edd39c3e3ab8c10579851bc2bd100f0bb
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e573f21edd39c3e3ab8c10579851bc2bd100f0bb
Author: Matt Turner <mattst88 at gmail.com>
Date: Tue Jun 16 17:07:15 2020 -0700
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 at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5514>
---
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);
More information about the mesa-commit
mailing list