summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorsimon_linden <none@none>2013-09-09 16:17:16 -0700
committersimon_linden <none@none>2013-09-09 16:17:16 -0700
commite2019e8a3b5175eb6d7322fbe7c466f213854640 (patch)
tree1e2fbeaeb249e0f3f0f91e94af213c1840438581 /scripts
parent6dd7e0c9ef587c6c05726d407bef8b51018a7a4b (diff)
parent2c1d89c57ec21e4790eb14066d2291282a1000b4 (diff)
Merge downstream code with viewer-release
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gpu_table_tester4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/gpu_table_tester b/scripts/gpu_table_tester
index 9bc958636d..0fe3e9e8f7 100755
--- a/scripts/gpu_table_tester
+++ b/scripts/gpu_table_tester
@@ -73,6 +73,10 @@ die "Must specify a --gpu-table <gpu_table.txt> value"
open(GPUS, "<$GpuTable")
|| die "Failed to open gpu table '$GpuTable':\n\t$!\n";
+my $FirstLine = <GPUS>;
+die "First line of gpu table does not begin with '//GPU_TABLE'"
+ unless $FirstLine =~ m|^//GPU_TABLE|;
+
# Parse the GPU table into these tables, indexed by the name
my %NameLine; # name -> line number on which a given name was found (catches duplicate names)
my %RecognizerLine; # name -> line number on which a given name was found (catches duplicate names)