summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader
Commit message (Collapse)AuthorAgeFilesLines
* mesa: remove unneeded #includeBrian Paul2008-09-211-1/+0
| | | | (cherry picked from commit 6363960db55769db73021081b60f1028723d9f58)
* mesa: move fixed function vertex program builder from tnl to core mesaKeith Whitwell2008-09-215-11/+296
| | | | | | Also unify caching of fragment and vertex programs in shader/prog_cache.c` Brought across from gallium-0.2
* mesa: prefix a bunch of #include lines with "main/".Brian Paul2008-09-1818-67/+67
| | | | | This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code...
* mesa: fix bug in previous changes to _slang_resolve_attributes()Brian Paul2008-09-171-1/+3
|
* mesa: rework GLSL vertex attribute bindingBrian Paul2008-09-163-102/+107
| | | | | | | Calls to glBindAttribLocation() should not take effect until the next time that glLinkProgram() is called. gl_shader_program::Attributes now just contains user-defined bindings. gl_shader_program::VertexProgram->Attributes contains the actual/final bindings.
* mesa: glsl: regenerated fileBrian Paul2008-08-251-552/+552
|
* mesa: glsl: grab latest fixes from gallium-0.1 branchBrian Paul2008-08-256-83/+189
| | | | | | | Includes: 1. Fixes failed asserting about bad swizzles in src reg emit. 2. Tracks uniform var usage. 3. Emit exp() in terms of EXP2 instruction.
* mesa: turn off 'x' bit misset on a few .h and .syn filesBrian Paul2008-08-164-0/+0
|
* mesa: import latest GLSL code from gallium-0.1 branchBrian Paul2008-08-1640-3147/+3632
|
* mesa: glsl: add missing sampler types in sizeof_glsl_type(), bug 17079Brian Paul2008-08-111-2/+13
|
* disable debug code accidentally enabled by prev commitBrian Paul2008-08-061-2/+2
|
* mesa: glsl: count number of temp regs usedHaihao Xiang2008-08-062-5/+36
|
* mesa: glsl: remove old assertion (fixes glsl/bitmap.c)Brian Paul2008-07-291-1/+1
|
* mesa: disable debug codeBrian Paul2008-07-291-1/+1
|
* mesa: regenerated filesBrian Paul2008-07-292-820/+800
|
* mesa: Silence compiler warnings on Windows.Brian Paul2008-07-297-17/+19
|
* mesa: cast to fix warningBrian Paul2008-07-291-1/+1
|
* mesa: fix bug/failure in recursive function inliningBrian Paul2008-07-291-5/+27
| | | | | Fixes a failure for cases such as y = f(a, f(a, b)) All the usual tests still pass but regressions are possible...
* mesa: glsl: silence warning (s/int/GLuint)Brian Paul2008-07-291-1/+1
|
* mesa: remove stray debug codeBrian Paul2008-07-291-1/+0
|
* mesa: glsl: assorted fixes for resolving polymorphic functionsBrian Paul2008-07-298-205/+393
| | | | | | | 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: re-order some constructorsBrian Paul2008-07-291-12/+12
|
* mesa: glsl: remove unneeded operatorsBrian Paul2008-07-291-50/+0
|
* mesa: glsl: added null ptr checkBrian Paul2008-07-291-1/+2
|
* mesa: fix issues causing warnings on WindowsBrian Paul2008-07-291-1/+2
|
* mesa: glsl: additional error detectionBrian Paul2008-07-293-10/+64
| | | | Plus begin some fixes for vec/matrix constructors.
* mesa: gls: fix broken else clause of conditional break/continueBrian Paul2008-07-292-13/+5
| | | | | | | | | | | | | In the following case: for () { if (cond) break; // or continue; else something; } The "something" block didn't get emitted.
* mesa: glsl: only try to link shaders defining main()Brian Paul2008-07-293-35/+29
|
* mesa: Silence compiler warning on windows.Michal Krol2008-07-291-1/+1
|
* mesa: glsl: fix/simplify array element handlingBrian Paul2008-07-291-39/+15
| | | | Also fix bug in comparing large structs/arrays.
* mesa: glsl: mark constructor params as constBrian Paul2008-07-291-1/+2
|
* mesa: glsl: rework swizzle storage handlingBrian Paul2008-07-293-53/+40
| | | | Build on the heirarchal approach implemented for arrays/structs.
* mesa: fix uninitialized varBrian Paul2008-07-291-0/+1
|
* mesa: glsl: implement constructor functions for user-defined typesBrian Paul2008-07-292-5/+174
|
* mesa: remove stray debug assertionBrian Paul2008-07-291-1/+0
|
* mesa: fix glUniform error checking for samplersBrian2008-07-291-0/+24
|
* mesa: refactor: move _mesa_Bind/Gen/DeleteProgram() to arbprogram.cBrian Paul2008-07-294-226/+213
| | | | No API-level functions now in program.c.
* mesa: initial support for GLSL struct/array comparisonsBrian Paul2008-07-291-14/+57
|
* mesa: added null ptr check (error handling case)Brian Paul2008-07-291-0/+3
|
* mesa: fix +=, -=, etc. operatorsBrian Paul2008-07-291-4/+4
|
* mesa: fix some issues in _mesa_validate_program()Brian Paul2008-07-291-5/+11
|
* mesa: assorted glsl uniform/attribute fixesBrian Paul2008-07-295-43/+166
| | | | | | Fix incorrect uniform/attribute size query results. Add missing error checking for glUniform, glUniformMatrix params Fix an array size/allocation error.
* mesa: glsl: various writemask/swizzle improvements and clean-upsBrian Paul2008-07-295-70/+81
|
* mesa: rework array/struct addressing code.Brian Paul2008-07-297-138/+372
| | | | | | | The slang_ir_storage type now has a pointer to parent storage to represent storage of an array element within an array, or a field within a struct. This fixes some problems related to addressing of fields/elements in non- trivial cases. More work to follow.
* mesa: fix some GLSL /= int operatorsBrian Paul2008-07-291-7/+21
| | | | plus add a few more special constructors to improve code quality.
* mesa: fix set_program_uniform_matrix(): need to loop over matrix countBrian Paul2008-07-291-18/+24
|
* mesa: implement grammar/parsing for precision/invariant syntaxBrian Paul2008-07-294-10/+251
| | | | Plus, fix some issues with pre-defined preprocessor symbols and version checking.
* mesa: Silence compiler warnings on Windows.Brian Paul2008-07-291-7/+3
|
* mesa: fix some function inlining bugsBrian Paul2008-07-294-1/+53
| | | | | | Need to add local vars of original function to the new scope's variable list (though the DECLs were already present). In slang_operation_copy() call slang_replace_scope() for SLANG_OPER_BLOCK_NEW_SCOPE opers.
* mesa: improved printingBrian Paul2008-07-291-4/+8
|