summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/slang_simplify.c
AgeCommit message (Collapse)Author
2008-08-04mesa: glsl: set literal_size for const varsBrian Paul
2008-08-04mesa: glsl: handle user-defined const vars in expression simplificationBrian Paul
2008-07-25mesa: glsl: assorted fixes for resolving polymorphic functionsBrian Paul
Plus, - fix some issues in casting function arguments to format param types. - fix some vec/mat constructor bugs - find/report more syntax/semantic errors
2008-07-25mesa: glsl: additional error detectionBrian Paul
Plus begin some fixes for vec/matrix constructors.
2008-07-24mesa: Prefix main includes with dir to avoid conflicts.José Fonseca
Some of the headers in src/mesa/main have pretty common names which easily conflict with third-party code, e.g. config.h
2008-07-23mesa: glsl: fix/simplify built-in constant lookupBrian Paul
2008-07-15mesa: Silence compiler warnings on Windows.Michal Krol
2008-07-02mesa: additional GLSL built-in constantsBrian Paul
2007-03-13Check for, simplify vec2/3/4(x). Only do call adapting for constructors.Brian
2007-02-26Overhaul of error handling.Brian
2007-02-16change all enum tokens to uppercaseBrian
2007-02-03Add literal_size field to slang_operation.Brian
Used to track the number of components in a float/int/bool literal. Helps with some typechecking things. Fixes problems with calls such as "distance(v2, vec2(1.0, 2.0))"
2007-02-02s/slang_assembly_typeinfo/slang_typeinfo/Brian
2007-02-02s/slang_assembly_name_space/slang_name_space/Brian
2007-02-02Move guts of slang_lookup_constant() into a new function in slang_simplify.cBrian
2007-02-01Fix logic in _slang_simplify(): vec2() constructor case wasn't getting used.Brian
2007-01-17New _slang_adapt_call() function.Brian
This is used to modify function calls (when possible) to make the arguments map to the function parameters. This includes "unrolling" vector types and doing casts. Example: vec2 v2 = vec2(1.2, 3.4) ivec3 iv = ivec3(false, v2); Is converted into: ivec3 iv = ivec3(int(false), int(v2[0]), int(v2[1]))
2007-01-15added vec3 constructor codeBrian
2006-12-13Checkpoint new GLSL compiler back-end to produce fp/vp-style assembly ↵Brian
instructions.