summaryrefslogtreecommitdiff
path: root/src/glsl/glsl_types.cpp
AgeCommit message (Collapse)Author
2010-08-04glsl2: Remove uses of deprecated TALLOC_CTX type.Kenneth Graunke
2010-08-02glsl_type: Use string key for array type hashIan Romanick
2010-08-02glsl2: Make glsl_types::ctx private againIan Romanick
2010-08-02glsl2: Give the path within src/mesa/ for headers instead of relying on -I.Aras Pranckevicius
2010-07-27glsl2: Talloc type names.Eric Anholt
Otherwise, we end up losing structure names after compile time, and dumping IR often ends up reporting some other mysterious string.
2010-07-20glsl2: glsl_type has its own talloc context, don't pass one inIan Romanick
2010-07-20glsl2: Add and use new variable mode ir_var_temporaryIan Romanick
This is quite a large patch because breaking it into smaller pieces would result in the tree being intermitently broken. The big changes are: * Add the ir_var_temporary variable mode * Change the ir_variable constructor to take the mode as a parameter and correctly specify the mode for all ir_varables. * Change the linker to not cross validate ir_var_temporary variables. * Change the linker to pull all ir_var_temporary variables from global scope into 'main'.
2010-07-20glsl2: talloc the glsl_struct_field[] we use to look up structure types.Eric Anholt
Since the types are singletons across the lifetime of the compiler, repeatedly compiling a program with the same structure type defined would drop a copy of the array on the floor per compile. This is a bit tricky because the static GLSL types are not called with the talloc-based new, so we have to use the global type context, which may not be initialized yet.
2010-07-20glsl2: Don't claim a match on structure types with different field names.Eric Anholt
We regularly do lookups on the field names of the structure to find the types within the struct, so returning a structure type with bad names will lead to lots of error types being found.
2010-07-12glsl2: Store the gl_type of the array's element type in the array.Eric Anholt
Fixes glsl-fs-uniform-array-1, glsl-vs-uniform-array-1, and the -2 tests on software.
2010-06-29glsl_type: Add _mesa_glsl_release_types to release all type related storageIan Romanick
2010-06-29glsl_type: All glsl_type objects live in their own talloc contextIan Romanick
2010-06-29glsl_type: Record type constructors are privateIan Romanick
2010-06-29glsl_type: Add get_record_instance methodIan Romanick
2010-06-29glsl_type: Vector, matrix, and sampler type constructors are privateIan Romanick
2010-06-29glsl_type: Make all static objects be class privateIan Romanick
2010-06-29glsl_type: Remove vector and matrix constructor generatorsIan Romanick
All scalar, vector, and matrix constructors are generated in-line during AST-to-HIR translation. There is no longer any need to generate function versions of the constructors.
2010-06-24glsl2: Wrap includes of C interfaces with extern "C".Eric Anholt
2010-06-24glsl2: Move the compiler to the subdirectory it will live in in Mesa.Eric Anholt