Find a file
Carl Worth b3bd77da56 glsl_type: Add a talloc-based new
And hook it up at the two sites it's called.

Note that with this change we still don't use glsl_type* objects as
talloc contexts, (see things like get_array_instance that accept both
a talloc 'ctx' as well as a glsl_type*). The reason for this is that
the code is still using many instance of glsl_type objects not created
with new.

This closes 3 leaks in the glsl-orangebook-ch06-bump.frag test:

	total heap usage: 55,623 allocs, 55,618

Leaving only 5 leaks to go.
2010-06-23 19:04:45 -07:00
builtins Add forgotten autogenerated EXT_texture_array_fs folder. 2010-06-09 16:46:09 -07:00
glcpp preprocessor: Initialize a potentially uninitialized variable. 2010-06-23 16:13:31 -07:00
main Import some bits Mesa's mtypes.h 2010-06-23 11:24:26 -07:00
tests Ensure that both parameter lists are the same length in function overloading. 2010-04-21 15:36:36 -07:00
.dir-locals.el Set C++ indent too. 2010-03-08 13:02:58 -08:00
.gitignore Add missing build products to gitignore 2010-06-22 12:24:42 -07:00
ast.h ast_node: Add new talloc-based new() 2010-06-23 18:15:28 -07:00
ast_expr.cpp Fix up the operator printing for the logic or and beyond, check array bounds. 2010-03-25 16:47:49 -07:00
ast_function.cpp Close memory leaks in glsl_type (constructor and get_array_instance) 2010-06-23 19:00:42 -07:00
ast_to_hir.cpp glsl_type: Add a talloc-based new 2010-06-23 19:04:45 -07:00
ast_type.cpp Add parser support for texture rectangle types 2010-03-29 16:44:29 -07:00
autogen.sh autoconf for the ... 2010-02-25 17:17:23 -08:00
builtin_function.cpp Implement 1.30 int/uint variants of min/max/clamp. 2010-06-09 16:14:45 -07:00
builtin_types.h Add EXT_texture_array support. 2010-06-09 11:14:58 -07:00
builtin_variables.h ir_variable: Set locations for shader built-in variables 2010-06-23 10:56:03 -07:00
configure.ac configure: Ensure that config.h can be safely included multiple times. 2010-06-23 16:13:31 -07:00
glsl_lexer.lpp Close memory leak in lexer. 2010-06-23 19:00:42 -07:00
glsl_parser.ypp ast_node: Add new talloc-based new() 2010-06-23 18:15:28 -07:00
glsl_parser_extras.cpp ast_node: Remove empty destructor. 2010-06-23 16:16:32 -07:00
glsl_parser_extras.h glcpp: Print to the main compiler's infolog, not stdout. 2010-06-21 12:41:05 -07:00
glsl_symbol_table.h glsl_symbol_table: Add new talloc-based new() 2010-06-23 16:35:45 -07:00
glsl_types.cpp glsl_type: Add a talloc-based new 2010-06-23 19:04:45 -07:00
glsl_types.h glsl_type: Add a talloc-based new 2010-06-23 19:04:45 -07:00
hash_table.c Initial commit. lol 2010-02-22 13:19:34 -08:00
hash_table.h Add proper wrappers so that C++ code can use hash_table type 2010-03-30 16:57:29 -07:00
hir_field_selection.cpp Close memory leak in ir_call::get_error_instruction. 2010-06-23 19:00:42 -07:00
ir.cpp Close memory leak in ir_call::get_error_instruction. 2010-06-23 19:00:42 -07:00
ir.h Close memory leak in ir_call::get_error_instruction. 2010-06-23 19:00:42 -07:00
ir_basic_block.cpp Include stdio.h and stdlib.h everywhere, and don't cook our own #define NULL. 2010-06-22 12:30:55 -07:00
ir_basic_block.h ir_copy_propagation: Return true if we optimized out any assignments. 2010-05-05 09:32:44 -07:00
ir_clone.cpp exec_node: Add new talloc-based new() 2010-06-23 18:59:35 -07:00
ir_constant_expression.cpp exec_node: Add new talloc-based new() 2010-06-23 18:59:35 -07:00
ir_constant_folding.cpp Include stdio.h and stdlib.h everywhere, and don't cook our own #define NULL. 2010-06-22 12:30:55 -07:00
ir_constant_variable.cpp ir: Give ir_instruction a print visitor helper. 2010-06-22 18:18:30 -07:00
ir_copy_propagation.cpp exec_node: Add new talloc-based new() 2010-06-23 18:59:35 -07:00
ir_dead_code.cpp exec_node: Add new talloc-based new() 2010-06-23 18:59:35 -07:00
ir_dead_code_local.cpp exec_node: Add new talloc-based new() 2010-06-23 18:59:35 -07:00
ir_expression_flattening.cpp exec_node: Add new talloc-based new() 2010-06-23 18:59:35 -07:00
ir_expression_flattening.h Add support for inlining calls done inside of expressions. 2010-04-16 12:56:18 -07:00
ir_function.cpp Factor out parameter list matching from ast_function::hir for later reuse. 2010-04-28 15:34:52 -07:00
ir_function_can_inline.cpp ir_function_inlining: Allow inlining of loops and conditionals. 2010-06-23 15:20:29 -07:00
ir_function_inlining.cpp exec_node: Add new talloc-based new() 2010-06-23 18:59:35 -07:00
ir_function_inlining.h Move optimization pass prototypes to a single header. 2010-05-05 11:47:33 -07:00
ir_hierarchical_visitor.cpp ir_hierarchical_visitor: Add generic callback functionality 2010-06-23 09:25:28 -07:00
ir_hierarchical_visitor.h Fix typos of "variable" as "varaible" 2010-06-23 16:12:53 -07:00
ir_hv_accept.cpp Hook up texturing in the hierarchical visitor. 2010-06-22 18:18:30 -07:00
ir_if_simplification.cpp Include stdio.h and stdlib.h everywhere, and don't cook our own #define NULL. 2010-06-22 12:30:55 -07:00
ir_optimization.h ir_constant_variable: New pass to mark constant-assigned variables constant. 2010-06-01 15:15:04 -07:00
ir_print_visitor.cpp Add a virtual clone() method to ir_instruction. 2010-06-23 15:20:29 -07:00
ir_print_visitor.h ir_print_visitor: Add support for ir_texture. 2010-06-09 11:14:57 -07:00
ir_reader.cpp Close memory leaks in glsl_type (constructor and get_array_instance) 2010-06-23 19:00:42 -07:00
ir_reader.h Add stub ir_reader and new 'i' mode for reading IR rather than GLSL. 2010-04-28 18:14:53 -07:00
ir_swizzle_swizzle.cpp Include stdio.h and stdlib.h everywhere, and don't cook our own #define NULL. 2010-06-22 12:30:55 -07:00
ir_validate.cpp ir_validate: Use callback functionality in ir_hierarchical_visitor 2010-06-23 09:25:33 -07:00
ir_variable.cpp Close memory leaks in glsl_type (constructor and get_array_instance) 2010-06-23 19:00:42 -07:00
ir_vec_index_to_swizzle.cpp exec_node: Add new talloc-based new() 2010-06-23 18:59:35 -07:00
ir_visitor.h Add stub visitor support for ir_texture. 2010-06-09 11:14:57 -07:00
linker.cpp Add a virtual clone() method to ir_instruction. 2010-06-23 15:20:29 -07:00
list.h exec_node: Add new talloc-based new() 2010-06-23 18:59:35 -07:00
main.cpp main: Close memory leak of shader string from load_text_file. 2010-06-23 19:00:42 -07:00
Makefile.am Add a virtual clone() method to ir_instruction. 2010-06-23 15:20:29 -07:00
program.h Import gl_program_parameter and gl_program_parameter_list types from Mesa 2010-06-23 11:24:26 -07:00
s_expression.cpp s_symbol: Close memory leak of symbol name. 2010-06-23 19:00:42 -07:00
s_expression.h exec_node: Add new talloc-based new() 2010-06-23 18:59:35 -07:00
symbol_table.c Allow duplicate symbols at the same scope that are in different name spaces 2010-03-24 14:56:36 -07:00
symbol_table.h Add function to determine the scope where a variable is declared 2010-03-19 15:32:57 -07:00
TODO TODO: Add note about initializers for constants 2010-06-17 20:37:17 -07:00