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:
parent
cc6fc963f0
commit
e573f21edd
|
@ -1853,7 +1853,7 @@ statereg:
|
||||||
controlreg:
|
controlreg:
|
||||||
CONTROLREG subregnum
|
CONTROLREG subregnum
|
||||||
{
|
{
|
||||||
if ($2 > 4)
|
if ($2 > 3)
|
||||||
error(&@2, "control sub register number %d"
|
error(&@2, "control sub register number %d"
|
||||||
" out of range\n", $2);
|
" out of range\n", $2);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue