Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5956>
notifyreg:
NOTIFYREG subregnum
{
- if ($1 > 0)
- error(&@1, "Notification register number %d"
- " out of range\n", $1);
-
int subnr = (p->devinfo->gen >= 11) ? 2 : 3;
if ($2 > subnr)
error(&@2, "Notification sub register number %d"
sr[0-9]+ { yylval.integer = atoi(yytext + 2); return STATEREG; }
/* notification registers */
-"n"[0-2]+ { yylval.integer = atoi(yytext + 1); BEGIN(REG); return NOTIFYREG; }
+"n0" { BEGIN(REG); return NOTIFYREG; }
/* IP register */
"ip" { return IPREG; }