summaryrefslogtreecommitdiff
path: root/hir_field_selection.cpp
AgeCommit message (Collapse)Author
2010-06-23Close memory leak in ir_call::get_error_instruction.Carl Worth
By propagating a 'ctx' parameter through these calls. This fix happens to have no impact on glsl-orangebook-ch06-bump.frag, (since it doesn't trigger any errors).
2010-06-23exec_node: Add new talloc-based new()Carl Worth
And fix all callers to use the tallbac-based new for exec_node construction. We make ready use of talloc_parent in order to get valid, (and appropriate) talloc owners for everything we construct without having to add new 'ctx' parameters up and down all the call trees. This closes the majority of the memory leaks in the glsl-orangebook-ch06-bump.frag test: total heap usage: 55,623 allocs, 42,672 frees (was 14,533 frees) Now 76.7% leak-free. Woo-hoo!
2010-06-22Include stdio.h and stdlib.h everywhere, and don't cook our own #define NULL.Eric Anholt
2010-05-26Begin refactoring ir_dereferenceIan Romanick
Create separate subclasses of ir_dereference for variable, array, and record dereferences. As a side effect, array and record dereferences no longer point to ir_variable objects directly. Instead they each point to an ir_dereference_variable object. This is the first of several steps in the refactoring process. The intention is that ir_dereference will eventually become an abstract base class.
2010-04-28Convert structure field dereferences to HIRIan Romanick
2010-03-26Use glsl_type::is_error instead of comparison with glsl_error_type pointerIan Romanick
2010-03-26Move swizzles out of ir_dereference and into their own class.Kenneth Graunke
Also turn generate_swizzle into a static "create" method of the new class; we'll want to use it for the IR reader as well. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-26Add new abstract ir_rvalue class; rework accordingly.Kenneth Graunke
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-24Use glsl_type::get_instance instead of _mesa_glsl_get_vector_typeIan Romanick
2010-03-24Fix typo in swizzle processing loopIan Romanick
One of the accesses to str in the loop used str[0] instead of str[i]. Reported-by: Kenneth Graunke
2010-03-24Trivial cleanups in generate_swizzleIan Romanick
Add 'const' and 'static const' in a couple of places.
2010-03-24Use ir_dereference::set_swizzleIan Romanick
2010-03-09Convert is_glsl_type_vector to glsl_type::is_vectorIan Romanick
2010-03-08Conver IR structures to use exec_list instead of simple_nodeIan Romanick
2010-03-01Make AST->HIR conversion a method of ast_node, re-enableIan Romanick
2010-02-25Convert to new interfaces so that it will compileIan Romanick
Convert TRUE and FALSE to true and false. Convert _mesa_ast_get_location to ast_node::get_location.
2010-02-22Rename .cc files to .cppIan Romanick