projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34e7179
)
freedreno/ir3: Reset lex line number when we start parsing
author
Kristian H. Kristensen
<hoegsberg@google.com>
Thu, 23 Apr 2020 18:33:57 +0000
(11:33 -0700)
committer
Marge Bot
<eric+marge@anholt.net>
Sat, 25 Apr 2020 00:03:43 +0000
(
00:03
+0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4741>
src/freedreno/ir3/ir3_parser.y
patch
|
blob
|
history
diff --git
a/src/freedreno/ir3/ir3_parser.y
b/src/freedreno/ir3/ir3_parser.y
index b42ea9d4fe21d7266acd4de5fa912a10d9f40783..c9cede4b725121e8baf238ab53e3a39cc7ffe6fa 100644
(file)
--- a/
src/freedreno/ir3/ir3_parser.y
+++ b/
src/freedreno/ir3/ir3_parser.y
@@
-196,6
+196,7
@@
int yydebug;
extern int yylex(void);
extern FILE *ir3_yyin;
+void ir3_yyset_lineno(int _line_number);
int yyparse(void);
@@
-207,6
+208,7
@@
static void yyerror(const char *error)
struct ir3 * ir3_parse(struct ir3_shader_variant *v,
struct ir3_kernel_info *k, FILE *f)
{
+ ir3_yyset_lineno(1);
ir3_yyin = f;
#ifdef YYDEBUG
yydebug = 1;