surface dnDiffuse_srf () {
// __texture ends up in CCout so that it can be composited and mixed
Ci = debug("__N") * color(normalize(N));
}
X00004 [ dnOslMaterial ] Loaded "/u/sfr/tools/osl/default/osl-1.6/srf/dnDiffuse_srf.oso" (took 0.00s)
LLVM ERROR: Error reading bitcode file: Invalid record
surface dnDiffuse_srf () {
// __texture ends up in CCout so that it can be composited and mixed
Ci = debug("__N") * color(N);
}
I'd guess this is a bitcode version incompatibility (that error message comes from the bitcode reader); what version of LLVM is prman's OSL using?Without the normalize you're likely not generating anything more than a call (which is extremely stable) and also doesn't rely on anything in the OSL standard library (the big chunk of bitcode).You should be able to look at the bitcode using llvm-dis (the disassembler) but it might be a pain to get it out of the binary (presumably OSLs build step still shoves the bitcode into a constant array in the code).Solomon
--
You received this message because you are subscribed to the Google Groups "OSL Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osl-dev+u...@googlegroups.com.
To post to this group, send email to osl...@googlegroups.com.
Visit this group at http://groups.google.com/group/osl-dev.
For more options, visit https://groups.google.com/d/optout.
/user_data/test/oslllvm $ ldd /builds/dneg_prmanshadeops/0.18.6/4894c8c768/lib/prman/ris/bxdf/dnOslMaterial.so | grep -i llvmbit
libLLVMBitWriter.so => /builds/llvm/3.4.2/f53a4bc162/lib/libLLVMBitWriter.so (0x00007f66d4455000)
libLLVMBitReader.so => /builds/llvm/3.4.2/f53a4bc162/lib/libLLVMBitReader.so (0x00007f66d422b000)
To unsubscribe from this group and stop receiving emails from it, send an email to osl-dev+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to osl-dev+u...@googlegroups.com.
To post to this group, send email to osl...@googlegroups.com.
Visit this group at http://groups.google.com/group/osl-dev.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "OSL Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osl-dev+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to osl-dev+unsubscribe@googlegroups.com.
To post to this group, send email to osl...@googlegroups.com.
Visit this group at http://groups.google.com/group/osl-dev.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "OSL Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osl-dev+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to osl-dev+u...@googlegroups.com.
To post to this group, send email to osl...@googlegroups.com.
Visit this group at http://groups.google.com/group/osl-dev.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "OSL Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osl-dev+u...@googlegroups.com.
To post to this group, send email to osl...@googlegroups.com.
Visit this group at http://groups.google.com/group/osl-dev.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "OSL Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osl-dev+u...@googlegroups.com.