mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-27 04:40:31 +01:00
intel/tools: Simplify notification register handling
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5956>
This commit is contained in:
parent
63181df09b
commit
ac7ecd205b
2 changed files with 1 additions and 5 deletions
|
|
@ -1813,10 +1813,6 @@ maskreg:
|
|||
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"
|
||||
|
|
|
|||
|
|
@ -333,7 +333,7 @@ m[0-9]+ { yylval.integer = atoi(yytext + 1); BEGIN(REG); return MSGREG; }
|
|||
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; }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue