imageworks/OpenShadingLanguage — pull request #157 by lgritz (2012-09-22 00:48:45+00:00)
Title: Fix oso output of matrix parameter initialization.

Fix oso output of matrix parameter initialization.

(1) Some combinations not output at all!
(2) Initializing to 1 set the initialization to (1,1,1,1...) instead of ident.
(3) Initializing matrices to constructed constants would emit init ops even when not needed. (Fixing this may reduce init ops and improve perf slightly by avoiding doubly-initializing matrices.)

Interestingly, \#3 largely covered up \#1 and \#2, by re-copying the correct
value in the process of initializing redundantly.