summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-09-05 14:35:47 -0400
committerTom Stellard <[email protected]>2012-09-11 14:53:48 -0400
commitd399ce7615d58486dda34d953ade6ad7b837bc42 (patch)
treebfe1998e735563feb1d1e91dbe74b218dcd9daac /src/gallium/drivers/radeon
parent0df2753ad21175d8914a8c2ca512cf79246c10fd (diff)
radeon/llvm: Assert if we try to encode an unknown register
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r--src/gallium/drivers/radeon/SIGenRegisterInfo.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/SIGenRegisterInfo.pl b/src/gallium/drivers/radeon/SIGenRegisterInfo.pl
index 3813eb5ad12..48bd5676eb0 100644
--- a/src/gallium/drivers/radeon/SIGenRegisterInfo.pl
+++ b/src/gallium/drivers/radeon/SIGenRegisterInfo.pl
@@ -241,7 +241,7 @@ if ($INDEX_FILE ne '') {
}
print $fh " return $key;\n";
}
- print $fh " default: return 0;\n }\n}\n"
+ print $fh " default: assert(!\"Unknown Register\"); return 0;\n }\n}\n"
}