projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc6fc96
)
intel/tools: Disallow control subregisters > 3
author
Matt Turner
<mattst88@gmail.com>
Wed, 17 Jun 2020 00:07:15 +0000
(17:07 -0700)
committer
Marge Bot
<eric+marge@anholt.net>
Fri, 19 Jun 2020 02:10:40 +0000
(
02:10
+0000)
> 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>
src/intel/tools/i965_gram.y
patch
|
blob
|
history
diff --git
a/src/intel/tools/i965_gram.y
b/src/intel/tools/i965_gram.y
index e236113771c618abb1e99c55671db3e579b7223b..2aaf1471c5f530f2b87ac0f16d0805e4ce18652c 100644
(file)
--- 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);