Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mesa: glsl: implement constructor functions for user-defined types | Brian Paul | 2008-07-22 | 2 | -5/+174 |
| | |||||
* | mesa: initial support for GLSL struct/array comparisons | Brian Paul | 2008-07-21 | 1 | -14/+57 |
| | |||||
* | mesa: added null ptr check (error handling case) | Brian Paul | 2008-07-21 | 1 | -0/+3 |
| | |||||
* | mesa: fix +=, -=, etc. operators | Brian Paul | 2008-07-21 | 1 | -4/+4 |
| | |||||
* | mesa: assorted glsl uniform/attribute fixes | Brian Paul | 2008-07-21 | 2 | -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 code | Brian Paul | 2008-07-21 | 1 | -1/+0 |
| | |||||
* | mesa: glsl: various writemask/swizzle improvements and clean-ups | Brian Paul | 2008-07-18 | 3 | -68/+79 |
| | |||||
* | mesa: rework array/struct addressing code. | Brian Paul | 2008-07-18 | 7 | -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 file | Brian Paul | 2008-07-18 | 1 | -790/+790 |
| | |||||
* | mesa: fix some GLSL /= int operators | Brian Paul | 2008-07-18 | 1 | -7/+21 |
| | | | | plus add a few more special constructors to improve code quality. | ||||
* | mesa: regenerated file | Brian Paul | 2008-07-17 | 1 | -482/+483 |
| | |||||
* | mesa: fix/improve the atan(y,x) function | Brian Paul | 2008-07-17 | 1 | -10/+11 |
| | |||||
* | mesa: fix temp re-use bug in emit_arith() | Brian Paul | 2008-07-16 | 1 | -8/+20 |
| | |||||
* | mesa: regenerated files | Brian Paul | 2008-07-16 | 2 | -19/+18 |
| | |||||
* | mesa: fix copy&paste errors in degrees() functions | Brian Paul | 2008-07-16 | 1 | -3/+3 |
| | |||||
* | mesa: implement grammar/parsing for precision/invariant syntax | Brian Paul | 2008-07-16 | 4 | -10/+251 |
| | | | | Plus, fix some issues with pre-defined preprocessor symbols and version checking. | ||||
* | mesa: Silence compiler warnings on Windows. | Michal Krol | 2008-07-16 | 1 | -5/+2 |
| | |||||
* | mesa: add missing IR_LOG2 case | Brian Paul | 2008-07-15 | 1 | -2/+3 |
| | |||||
* | mesa: regenerated file | Brian Paul | 2008-07-15 | 1 | -364/+366 |
| | |||||
* | mesa: fix some broken /= operators | Brian Paul | 2008-07-15 | 1 | -3/+4 |
| | |||||
* | mesa: regenerated file | Brian Paul | 2008-07-15 | 1 | -14/+14 |
| | |||||
* | mesa: fix some broken bool, bvec2, bvec3, bvec4 constructors | Brian Paul | 2008-07-15 | 1 | -14/+14 |
| | |||||
* | mesa: fix storage size computation in emit_arith() | Brian Paul | 2008-07-15 | 1 | -2/+3 |
| | |||||
* | mesa: fix some function inlining bugs | Brian Paul | 2008-07-15 | 4 | -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 printing | Brian Paul | 2008-07-15 | 1 | -6/+13 |
| | |||||
* | mesa: Silence compiler warnings on Windows. | Michal Krol | 2008-07-15 | 4 | -19/+16 |
| | |||||
* | mesa: assemble main() after all other functions | Brian Paul | 2008-07-14 | 1 | -14/+22 |
| | | | | Before, main() had to come after any functions it called. | ||||
* | mesa: check for null shader->Source | Brian Paul | 2008-07-09 | 1 | -0/+3 |
| | |||||
* | mesa: fix bug/failure in recursive function inlining | Brian Paul | 2008-07-08 | 1 | -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 output | Brian Paul | 2008-07-08 | 1 | -20/+60 |
| | |||||
* | mesa: compute global var size before doing codegen | Brian Paul | 2008-07-08 | 1 | -9/+9 |
| | |||||
* | mesa: add missing VARYING case to storage_string() | Brian Paul | 2008-07-08 | 1 | -0/+2 |
| | |||||
* | mesa: fix incorrect array size, added assertion | Brian Paul | 2008-07-03 | 1 | -1/+2 |
| | |||||
* | mesa: fix array storage allocation bug | Brian Paul | 2008-07-03 | 1 | -0/+8 |
| | |||||
* | mesa: regenerated file | Brian Paul | 2008-07-03 | 1 | -761/+763 |
| | |||||
* | mesa: additional vec4 constructor | Brian Paul | 2008-07-03 | 1 | -0/+8 |
| | |||||
* | mesa: additional GLSL built-in constants | Brian Paul | 2008-07-02 | 1 | -13/+19 |
| | |||||
* | mesa: when linking a shader program, make sure all the shaders compiled OK | Brian Paul | 2008-07-02 | 1 | -0/+8 |
| | | | | cherry-picked from master | ||||
* | mesa: added some debug code (disabled) | Brian Paul | 2008-07-02 | 2 | -0/+9 |
| | | | | cherry-picked from master | ||||
* | mesa: regenerated file | Brian Paul | 2008-07-02 | 1 | -152/+163 |
| | |||||
* | mesa: added some missing equal() notEqual() intrinsics | Brian Paul | 2008-07-02 | 1 | -0/+33 |
| | | | | cherry-picked from master | ||||
* | mesa: disable some debug assertions | Brian Paul | 2008-07-02 | 1 | -0/+5 |
| | | | | | We can sometimes fail these assertions because of how swizzled storage works. Will revisit someday. | ||||
* | mesa: regenerated files | Brian Paul | 2008-07-02 | 2 | -20/+35 |
| | |||||
* | mesa: fix all(bvec2) function typo, add missing bvec2/3/4() constuctors | Brian Paul | 2008-07-02 | 2 | -1/+39 |
| | | | | cherry-picked from master | ||||
* | mesa: fix a GLSL vector subscript/writemask bug | Brian Paul | 2008-07-01 | 1 | -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 functions | Brian Paul | 2008-07-01 | 1 | -99/+99 |
| | | | | cherry-picked from master | ||||
* | mesa: make _slang_swizzle_swizzle() non-private | Brian Paul | 2008-07-01 | 2 | -9/+16 |
| | | | | cherry-picked from master | ||||
* | mesa: better function inlining in the presence of 'return' statements | Brian Paul | 2008-07-01 | 1 | -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 purposes | Brian Paul | 2008-07-01 | 1 | -3/+5 |
| | | | | cherry-picked from master | ||||
* | mesa: Use appropriate unsigned/signed, float/integer types. | José Fonseca | 2008-06-24 | 2 | -4/+4 |
| |