[Mesa-dev] [PATCH 0/5] Constants through builtins evaluation rewrite

Olivier Galibert galibert at pobox.com
Fri Apr 27 01:27:59 PDT 2012


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.


More information about the mesa-dev mailing list