New _slang_adapt_call() function.
authorBrian <brian@yutani.localnet.net>
Wed, 17 Jan 2007 23:11:50 +0000 (16:11 -0700)
committerBrian <brian@yutani.localnet.net>
Wed, 17 Jan 2007 23:11:50 +0000 (16:11 -0700)
commiteabb7e66bd6fa9770bcf17833cf9fc6317ae7948
tree1f53912e17f281130033f69e4a2ca82cce047d68
parent397b807ad5045c354f3fb2079b7779a6d671dc03
New _slang_adapt_call() function.

This is used to modify function calls (when possible) to make the arguments
map to the function parameters.  This includes "unrolling" vector types
and doing casts.

Example:
   vec2 v2 = vec2(1.2, 3.4)
   ivec3 iv = ivec3(false, v2);
Is converted into:
   ivec3 iv = ivec3(int(false), int(v2[0]), int(v2[1]))
src/mesa/shader/slang/slang_simplify.c
src/mesa/shader/slang/slang_simplify.h