summaryrefslogtreecommitdiff
path: root/hir_field_selection.cpp
AgeCommit message (Collapse)AuthorFilesLines
2010-06-23exec_node: Add new talloc-based new()Carl Worth1-2/+3
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 Anholt1-2/+2
2010-05-26Begin refactoring ir_dereferenceIan Romanick1-1/+2
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 Romanick1-1/+7
2010-03-26Use glsl_type::is_error instead of comparison with glsl_error_type pointerIan Romanick1-1/+1
2010-03-26Move swizzles out of ir_dereference and into their own class.Kenneth Graunke1-107/+12
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 Graunke1-4/+4
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-24Use glsl_type::get_instance instead of _mesa_glsl_get_vector_typeIan Romanick1-2/+3
2010-03-24Fix typo in swizzle processing loopIan Romanick1-1/+1
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 Romanick1-4/+3
Add 'const' and 'static const' in a couple of places.
2010-03-24Use ir_dereference::set_swizzleIan Romanick1-22/+3
2010-03-09Convert is_glsl_type_vector to glsl_type::is_vectorIan Romanick1-1/+1
2010-03-08Conver IR structures to use exec_list instead of simple_nodeIan Romanick1-1/+1
2010-03-01Make AST->HIR conversion a method of ast_node, re-enableIan Romanick1-1/+1
2010-02-25Convert to new interfaces so that it will compileIan Romanick1-6/+6
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 Romanick1-0/+187