projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76e5406
)
nouveau: allow more tokens by default to avoid parse failures
author
Ilia Mirkin
<imirkin@alum.mit.edu>
Fri, 29 Aug 2014 01:52:13 +0000
(21:52 -0400)
committer
Ilia Mirkin
<imirkin@alum.mit.edu>
Fri, 29 Aug 2014 01:53:55 +0000
(21:53 -0400)
Also print a note saying that parsing failed to help isolate issues.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nouveau_compiler.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nouveau/nouveau_compiler.c
b/src/gallium/drivers/nouveau/nouveau_compiler.c
index ac22035ca8293d85141a5219b7f57432fbaa9d62..86604984220b719b630471fd290f27c98c649f9b 100644
(file)
--- a/
src/gallium/drivers/nouveau/nouveau_compiler.c
+++ b/
src/gallium/drivers/nouveau/nouveau_compiler.c
@@
-139,7
+139,7
@@
nouveau_codegen(int chipset, int type, struct tgsi_token tokens[],
int
main(int argc, char *argv[])
{
- struct tgsi_token tokens[
1024
];
+ struct tgsi_token tokens[
4096
];
int i, chipset = 0, type = -1;
const char *filename = NULL;
FILE *f;
@@
-195,8
+195,10
@@
main(int argc, char *argv[])
return 1;
}
- if (!tgsi_text_translate(text, tokens, Elements(tokens)))
+ if (!tgsi_text_translate(text, tokens, Elements(tokens))) {
+ _debug_printf("Failed to parse TGSI shader\n");
return 1;
+ }
if (chipset >= 0x50) {
i = nouveau_codegen(chipset, type, tokens, &size, &code);