summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_codegen.h
Commit message (Collapse)AuthorAgeFilesLines
* mesa: move shader/slang/* sources to main/slang/*Brian Paul2010-06-101-73/+0
| | | | Reduce the source tree depth a bit.
* glsl: added uniform initializer checkBrian Paul2009-12-291-0/+1
| | | | | | | | | GLSL 1.10 disallows initializers for uniforms but GLSL 1.20 and later allows them. This patch uses the #version directive to allow/disallow uniform initializers. This addresses bug 25807, but piglit also needs to be fixed to specify the GLSL version in the shader.
* glsl: fix assorted regressions related to early-return-removalBrian Paul2009-06-261-0/+1
|
* glsl: comments, field reorderingBrian Paul2009-06-261-1/+4
|
* glsl: rework loop nesting codeBrian Paul2009-06-261-2/+8
|
* glsl: fix a bug involving 'continue' in 'for' loopsBrian Paul2009-06-261-0/+1
| | | | | | | | Need to execute the for loop's increment code before we continue. Add a slang_assemble_ctx::CurLoopOper field to keep track of the containing loop and avoid the "cont if true" path in this situation. Plus, assorted clean-ups.
* glsl: added slang_assemble_ctx::EmitContReturn field, initBrian Paul2009-06-261-0/+1
|
* Revert "slang: if/else/break & if/else/continue work for unrolled loops"Brian Paul2009-06-261-1/+0
| | | | | | | | | | | We should just check if the loop contains a continue/break in the _slang_can_unroll_for_loop() test function... This reverts commit 989856bde47d699d7e18798df4013fbf962e1d4b. Conflicts: src/mesa/shader/slang/slang_codegen.h
* glsl: implement compiling/linking of separate compilation unitsBrian Paul2009-04-011-0/+1
| | | | | | | | | A shader program may consist of multiple shaders (source code units). If we find there are unresolved functions after compiling the unit that defines main(), we'll concatenate all the respective vertex or fragment shaders then recompile. This isn't foolproof but should work in most cases.
* slang: if/else/break & if/else/continue work for unrolled loopsAlan Hourihane2009-03-191-0/+1
|
* glsl: propagate pragma info down into compiler from preprocessorBrian Paul2009-01-141-0/+1
|
* mesa: move some glsl compiler functions to different files to be more consistantBrian Paul2008-12-121-0/+13
|
* mesa: import latest GLSL code from gallium-0.1 branchBrian Paul2008-08-161-1/+1
|
* _slang_gen_function_call_name() now tries to adapt function calls (expandBrian2007-01-171-0/+3
| | | | vectors, insert casts) when a perfect match isn't found.
* checkpoint: codegen for global vars w/ initializersBrian2007-01-101-4/+3
|
* Checkpoint: re-org of (global) variable allocation code. More to come...Brian2007-01-081-1/+2
|
* Checkpoint glsl compiler work: sampler uniforms now implemented, linked ↵Brian2007-01-051-0/+3
| | | | properly.
* Checkpoint new GLSL compiler back-end to produce fp/vp-style assembly ↵Brian2006-12-131-0/+39
instructions.