Module: Mesa
Branch: master
Commit: d399ce7615d58486dda34d953ade6ad7b837bc42
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d399ce7615d58486dda34d953ade6ad7b837bc42

Author: Tom Stellard <[email protected]>
Date:   Wed Sep  5 14:35:47 2012 -0400

radeon/llvm: Assert if we try to encode an unknown register

Reviewed-by: Michel Dänzer <[email protected]>

---

 src/gallium/drivers/radeon/SIGenRegisterInfo.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/radeon/SIGenRegisterInfo.pl 
b/src/gallium/drivers/radeon/SIGenRegisterInfo.pl
index 3813eb5..48bd567 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"
 }
 
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to