summaryrefslogtreecommitdiff
path: root/src/glsl/apps
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2009-09-04 10:49:12 +0200
committerMichal Krol <michal@vmware.com>2009-09-07 10:11:59 +0200
commit94321b44416f47eb08bf72c93f4299ff7dc47017 (patch)
treecf5f08c62b578b06ded52b7e910be0bc569992c6 /src/glsl/apps
parent0e046420e468bcb81301aa5a5e4de736a8b4844a (diff)
glsl: Handle pragma tokens in apps/process.
Diffstat (limited to 'src/glsl/apps')
-rw-r--r--src/glsl/apps/process.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/glsl/apps/process.c b/src/glsl/apps/process.c
index d01294f3407..9a450ce5a7b 100644
--- 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);
}