summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_simplify.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa: move shader/slang/* sources to main/slang/*Brian Paul2010-06-101-527/+0
| | | | Reduce the source tree depth a bit.
* glsl: Increase size of array in_slang_lookup_constant from 4 to 16.Vinson Lee2009-12-101-1/+1
| | | | For some cases, _mesa_GetIntegerv reads up to params[15].
* glsl: Fix array out-of-bounds access by _slang_lookup_constant.Vinson Lee2009-12-101-4/+5
|
* mesa: more glsl function renamingBrian Paul2008-12-121-2/+2
|
* mesa: glsl compiler function renamingBrian Paul2008-12-121-1/+1
|
* mesa: import latest GLSL code from gallium-0.1 branchBrian Paul2008-08-161-5/+57
|
* mesa: Silence compiler warnings on Windows.Brian Paul2008-07-291-2/+2
|
* mesa: glsl: assorted fixes for resolving polymorphic functionsBrian Paul2008-07-291-105/+126
| | | | | | | Plus, - fix some issues in casting function arguments to format param types. - fix some vec/mat constructor bugs - find/report more syntax/semantic errors
* mesa: glsl: additional error detectionBrian Paul2008-07-291-2/+6
| | | | Plus begin some fixes for vec/matrix constructors.
* Check for, simplify vec2/3/4(x). Only do call adapting for constructors.Brian2007-03-131-3/+25
|
* Overhaul of error handling.Brian2007-02-261-3/+3
|
* change all enum tokens to uppercaseBrian2007-02-161-33/+33
|
* Add literal_size field to slang_operation.Brian2007-02-031-7/+23
| | | | | | 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))"
* s/slang_assembly_typeinfo/slang_typeinfo/Brian2007-02-021-7/+7
|
* s/slang_assembly_name_space/slang_name_space/Brian2007-02-021-2/+2
|
* Move guts of slang_lookup_constant() into a new function in slang_simplify.cBrian2007-02-021-0/+58
|
* Fix logic in _slang_simplify(): vec2() constructor case wasn't getting used.Brian2007-02-011-18/+39
|
* New _slang_adapt_call() function.Brian2007-01-171-0/+148
| | | | | | | | | | | | 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]))
* added vec3 constructor codeBrian2007-01-151-0/+14
|
* Checkpoint new GLSL compiler back-end to produce fp/vp-style assembly ↵Brian2006-12-131-0/+170
instructions.