summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang
Commit message (Collapse)AuthorAgeFilesLines
* mesa: glsl: implement constructor functions for user-defined typesBrian Paul2008-07-222-5/+174
|
* mesa: initial support for GLSL struct/array comparisonsBrian Paul2008-07-211-14/+57
|
* mesa: added null ptr check (error handling case)Brian Paul2008-07-211-0/+3
|
* mesa: fix +=, -=, etc. operatorsBrian Paul2008-07-211-4/+4
|
* mesa: assorted glsl uniform/attribute fixesBrian Paul2008-07-212-4/+22
| | | | | | Fix incorrect uniform/attribute size query results. Add missing error checking for glUniform, glUniformMatrix params Fix an array size/allocation error.
* mesa: remove debug codeBrian Paul2008-07-211-1/+0
|
* mesa: glsl: various writemask/swizzle improvements and clean-upsBrian Paul2008-07-183-68/+79
|
* mesa: rework array/struct addressing code.Brian Paul2008-07-187-142/+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: regenerated fileBrian Paul2008-07-181-790/+790
|
* mesa: fix some GLSL /= int operatorsBrian Paul2008-07-181-7/+21
| | | | plus add a few more special constructors to improve code quality.
* mesa: regenerated fileBrian Paul2008-07-171-482/+483
|
* mesa: fix/improve the atan(y,x) functionBrian Paul2008-07-171-10/+11
|
* mesa: fix temp re-use bug in emit_arith()Brian Paul2008-07-161-8/+20
|
* mesa: regenerated filesBrian Paul2008-07-162-19/+18
|
* mesa: fix copy&paste errors in degrees() functionsBrian Paul2008-07-161-3/+3
|
* mesa: implement grammar/parsing for precision/invariant syntaxBrian Paul2008-07-164-10/+251
| | | | Plus, fix some issues with pre-defined preprocessor symbols and version checking.
* mesa: Silence compiler warnings on Windows.Michal Krol2008-07-161-5/+2
|
* mesa: add missing IR_LOG2 caseBrian Paul2008-07-151-2/+3
|
* mesa: regenerated fileBrian Paul2008-07-151-364/+366
|
* mesa: fix some broken /= operatorsBrian Paul2008-07-151-3/+4
|
* mesa: regenerated fileBrian Paul2008-07-151-14/+14
|
* mesa: fix some broken bool, bvec2, bvec3, bvec4 constructorsBrian Paul2008-07-151-14/+14
|
* mesa: fix storage size computation in emit_arith()Brian Paul2008-07-151-2/+3
|
* mesa: fix some function inlining bugsBrian Paul2008-07-154-25/+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-151-6/+13
|
* mesa: Silence compiler warnings on Windows.Michal Krol2008-07-154-19/+16
|
* mesa: assemble main() after all other functionsBrian Paul2008-07-141-14/+22
| | | | Before, main() had to come after any functions it called.
* mesa: check for null shader->SourceBrian Paul2008-07-091-0/+3
|
* mesa: fix bug/failure in recursive function inliningBrian Paul2008-07-081-6/+56
| | | | | Fixes a failure for cases such as y = f(a, f(a, b)) All the usual tests still pass but regressions are possible...
* mesa: more debug outputBrian Paul2008-07-081-20/+60
|
* mesa: compute global var size before doing codegenBrian Paul2008-07-081-9/+9
|
* mesa: add missing VARYING case to storage_string()Brian Paul2008-07-081-0/+2
|
* mesa: fix incorrect array size, added assertionBrian Paul2008-07-031-1/+2
|
* mesa: fix array storage allocation bugBrian Paul2008-07-031-0/+8
|
* mesa: regenerated fileBrian Paul2008-07-031-761/+763
|
* mesa: additional vec4 constructorBrian Paul2008-07-031-0/+8
|
* mesa: additional GLSL built-in constantsBrian Paul2008-07-021-13/+19
|
* mesa: when linking a shader program, make sure all the shaders compiled OKBrian Paul2008-07-021-0/+8
| | | | cherry-picked from master
* mesa: added some debug code (disabled)Brian Paul2008-07-022-0/+9
| | | | cherry-picked from master
* mesa: regenerated fileBrian Paul2008-07-021-152/+163
|
* mesa: added some missing equal() notEqual() intrinsicsBrian Paul2008-07-021-0/+33
| | | | cherry-picked from master
* mesa: disable some debug assertionsBrian Paul2008-07-021-0/+5
| | | | | We can sometimes fail these assertions because of how swizzled storage works. Will revisit someday.
* mesa: regenerated filesBrian Paul2008-07-022-20/+35
|
* mesa: fix all(bvec2) function typo, add missing bvec2/3/4() constuctorsBrian Paul2008-07-022-1/+39
| | | | cherry-picked from master
* mesa: fix a GLSL vector subscript/writemask bugBrian Paul2008-07-011-47/+90
| | | | | | | | | | | This fixes a failure for cases like: vec4 v; v[1] *= 2.0; The v[1] actually acts like a writemask, equivalent to v.y The fix is a bit convoluted, but will do for now. cherry-picked from master
* mesa: move some functionsBrian Paul2008-07-011-99/+99
| | | | cherry-picked from master
* mesa: make _slang_swizzle_swizzle() non-privateBrian Paul2008-07-012-9/+16
| | | | cherry-picked from master
* mesa: better function inlining in the presence of 'return' statementsBrian Paul2008-07-011-23/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before, the presence of a 'return' statement always prevented inlining a function. This was because we didn't want to accidentally return from the _calling_ function. We still need the semantic of 'return' when inlining but we can't always use unconditional branches/jumps (GPUs don't always support arbitrary branching). Now, we allow inlining functions w/ return if the return is the last statement in the function. This fixes the common case of a function that returns a value, such as: vec4 square(const in vec4 x) { return x * x; } which effectively compiles into: vec4 square(const in vec4 x) { __retVal = x * x; return; } The 'return' can be no-op'd now and we can inline the function. cherry-picked from master
* mesa: add/fix some IrInfo entries for debugging purposesBrian Paul2008-07-011-3/+5
| | | | cherry-picked from master
* mesa: Use appropriate unsigned/signed, float/integer types.José Fonseca2008-06-242-4/+4
|