diff options
author | Merov Linden <merov@lindenlab.com> | 2013-10-04 11:27:59 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2013-10-04 11:27:59 -0700 |
commit | 98a89748789034a53f129e19d06649d79b384c52 (patch) | |
tree | 39a1aefb35402db02c8791bc3e5735c36116f426 /scripts/gpu_table_tester | |
parent | 796be733b374beb5660ee2713fc28c4e69331cbd (diff) | |
parent | 1e32b9dd33fb9e2f0d9a7935a3696b423a191354 (diff) |
Pull merge from viewer-fbc
Diffstat (limited to 'scripts/gpu_table_tester')
-rwxr-xr-x | scripts/gpu_table_tester | 4 |
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) |