projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56d3f6a
)
generate_builtins.pl: Support _fs directories as well as _vs.
author
Kenneth Graunke
<kenneth@whitecape.org>
Thu, 3 Jun 2010 21:51:40 +0000
(14:51 -0700)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Wed, 9 Jun 2010 18:14:57 +0000
(11:14 -0700)
builtins/tools/generate_builtins.pl
patch
|
blob
|
history
diff --git
a/builtins/tools/generate_builtins.pl
b/builtins/tools/generate_builtins.pl
index 9ce0ce3a608a4a05845d8a0fbf669732d38ffd23..71c0a4d8c0072d70e64fb165f8f1da98016197c7 100755
(executable)
--- a/
builtins/tools/generate_builtins.pl
+++ b/
builtins/tools/generate_builtins.pl
@@
-102,10
+102,12
@@
foreach $version (@versions) {
$version_number = $version;
if ($version =~ m/_vs/) {
$version_check = " && state->target == vertex_shader";
- $version_number =~ s/_vs//;
+ } elsif ($version =~ m/_fs/) {
+ $version_check = " && state->target == fragment_shader";
} else {
$version_check = "";
}
+ $version_number =~ s/_[vf]s//;
print " if (state->language_version >= $version_number$version_check)\n";
print " read_builtins(state, instructions, functions_for_$version,\n";
print " sizeof(functions_for_$version) / ";