From: Kenneth Graunke Date: Thu, 3 Jun 2010 21:51:40 +0000 (-0700) Subject: generate_builtins.pl: Support _fs directories as well as _vs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d1fc46f0cdf63677aac05f987cdd5b18453da2f;p=mesa.git generate_builtins.pl: Support _fs directories as well as _vs. --- diff --git a/builtins/tools/generate_builtins.pl b/builtins/tools/generate_builtins.pl index 9ce0ce3a608..71c0a4d8c00 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) / ";