From 9d1fc46f0cdf63677aac05f987cdd5b18453da2f Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 3 Jun 2010 14:51:40 -0700 Subject: generate_builtins.pl: Support _fs directories as well as _vs. --- builtins/tools/generate_builtins.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builtins/tools/generate_builtins.pl b/builtins/tools/generate_builtins.pl index 9ce0ce3a60..71c0a4d8c0 100755 --- 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) / "; -- cgit v1.2.3