ir_function_signature::constant_expression_value computes results from 
builtin functions when given constant arguments.  Problem is, it 
either duplicates the code from 
ir_expression::constant_expression_value or the function definitions 
from builtins/ir/*.  So this patch instead "runs" the definition from 
ir/*, leaving the computations to ir_expression. 
 
Part of the complexity of this not very complex series comes from 
wanting to be able to run builtins including temporaries such as 
transpose or inverse.  This allows to test such functions through 
glsl_compiler --dump-lir before hooking up the gl side. 

  OG.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to