projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e04642
)
glsl: Handle pragma tokens in apps/process.
author
Michal Krol
<michal@vmware.com>
Fri, 4 Sep 2009 08:49:12 +0000
(10:49 +0200)
committer
Michal Krol
<michal@vmware.com>
Mon, 7 Sep 2009 08:11:59 +0000
(10:11 +0200)
src/glsl/apps/process.c
patch
|
blob
|
history
diff --git
a/src/glsl/apps/process.c
b/src/glsl/apps/process.c
index d01294f34079e044bb4e4c874246a9261962721e..9a450ce5a7b4dc48f33cad5c1049a5773ff8de92 100644
(file)
--- a/
src/glsl/apps/process.c
+++ b/
src/glsl/apps/process.c
@@
-320,6
+320,14
@@
main(int argc,
fprintf(out, "%c", outtokens[i].data.other);
break;
+ case SL_PP_PRAGMA_OPTIMIZE:
+ fprintf(out, "#pragma optimize(%s)", outtokens[i].data.pragma ? "on" : "off");
+ break;
+
+ case SL_PP_PRAGMA_DEBUG:
+ fprintf(out, "#pragma debug(%s)", outtokens[i].data.pragma ? "on" : "off");
+ break;
+
default:
assert(0);
}