summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/slang_simplify.c
AgeCommit message (Collapse)Author
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.