Age | Commit message (Collapse) | Author | |
---|---|---|---|
2009-01-13 | glsl: add preprocessor support for #pragma | Brian Paul | |
Two forms are supported: Pragmas are silently ignored at this time. | |||
2009-01-12 | glsl: better fix for for-loop scope issue (commit ↵ | Brian Paul | |
6333005f7aea3e5d1d86a5c47b3fa2a1ed2f3ff0) | |||
2009-01-08 | glsl: fix typo in the vec2 += operator function | Brian Paul | |
2009-01-08 | glsl: fix broken +=, -=, *=, /= operators | Brian Paul | |
These functions need to return the final computed value. Now expressions such as a = (b += c) work properly. Also, no need to use __asm intrinsics in these functions. The resulting code is the same when using ordinary arithmetic operators and is more legible. | |||
2009-01-01 | mesa: updated comments about GLSL constants | Brian Paul | |
2008-12-30 | mesa: allow variable indexing into the predefined uniform variable arrays | Brian Paul | |
This allows code such as "vec4 a = gl_LightSource[i].ambient;" to work. When a built-in uniform array is indexed with a variable index we need to "unroll" the whole array into the parameter list (aka constant buffer) because we don't know which elements may be accessed at compile-time. In the case of the gl_LightSource array of size [8], we emit 64 state references into the parameter array (8 elements times 8 vec4s per gl_LightSourceParameters struct). Previously, we only allowed constant-indexed references to uniform arrays (such as gl_LightSource[2].position) which resulted in a single state reference being added to the parameter array, not 64. We still optimize this case. Users should be aware that using "gl_LightSource[i].ambient" in their shaders is a bit expensive since state validation will involve updating all 64 light source entries in the parameter list. | |||
2008-12-15 | mesa: bump glsl grammar revision | Brian Paul | |
And update some copyrights. | |||
2008-12-11 | mesa: checkpoint commit of GLSL 1.20 array syntax. | Brian Paul | |
This allows things like float[3] x = float[3](1., 2., 3.); Parsing and AST construction now. Codegen not working yet. | |||
2008-11-24 | mesa: added support for GLSL 1.20 array.length() method | Brian Paul | |
This is the only method supported in GLSL 1.20 so we take a few short-cuts. | |||
2008-11-24 | mesa: support for GLSL 1.20 array types | Brian Paul | |
This allows syntax like "float[8] foo, bar;" | |||
2008-11-19 | mesa: minor comment reformattting | Brian Paul | |
2008-11-13 | mesa: use the tighter definition of GLSL ftransform() from the gallium branches | Brian Paul | |
2008-11-13 | mesa: remove unused/obsolete __NormalMatrixTranspose matrix | Brian Paul | |
2008-11-10 | mesa: allows 'f' suffix on GLSL float literals | Brian Paul | |
2008-11-07 | mesa: add support for 'centroid' qualifier in GLSL 1.20 | Brian Paul | |
2008-11-07 | mesa: add support for 'invariant' keyword for GLSL 1.20 | Brian Paul | |
2008-11-07 | mesa: reformat comments, rewrap lines, etc for a little better readability | Brian Paul | |
2008-10-31 | mesa: fix some bugs with precision qualifier parsing | Brian Paul | |
2008-08-25 | mesa: glsl: regenerated file | Brian Paul | |
2008-08-25 | mesa: glsl: grab latest fixes from gallium-0.1 branch | Brian Paul | |
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. | |||
2008-08-16 | mesa: turn off 'x' bit misset on a few .h and .syn files | Brian Paul | |
2008-08-16 | mesa: import latest GLSL code from gallium-0.1 branch | Brian Paul | |
2008-07-29 | mesa: regenerated files | Brian Paul | |
2008-07-29 | mesa: glsl: re-order some constructors | Brian Paul | |
2008-07-29 | mesa: glsl: remove unneeded operators | Brian Paul | |
2008-07-29 | mesa: fix some GLSL /= int operators | Brian Paul | |
plus add a few more special constructors to improve code quality. | |||
2008-07-29 | mesa: implement grammar/parsing for precision/invariant syntax | Brian Paul | |
Plus, fix some issues with pre-defined preprocessor symbols and version checking. | |||
2008-07-17 | mesa: regenerated file | Brian Paul | |
2008-07-17 | mesa: fix/improve the atan(y,x) function | Brian Paul | |
2008-07-16 | mesa: regenerated file | Brian Paul | |
2008-07-16 | mesa: fix copy&paste errors in degrees() functions | Brian Paul | |
2008-07-15 | mesa: regenerated file | Brian Paul | |
2008-07-15 | mesa: fix some broken /= operators | Brian Paul | |
2008-07-15 | mesa: fix some broken bool, bvec2, bvec3, bvec4 constructors | Brian Paul | |
2008-07-03 | mesa: regenerated file | Brian Paul | |
2008-07-03 | mesa: additional vec4 constructor | Brian Paul | |
2008-07-02 | mesa: regenerated | Brian Paul | |
2008-07-02 | mesa: added some missing equal() notEqual() intrinsics | Brian Paul | |
2008-07-02 | mesa: regenerated files | Brian Paul | |
2008-07-02 | mesa: fix all(bvec2) function typo, add missing bvec2/3/4() constuctors | Brian Paul | |
2008-05-07 | Never fail `make clean' | Dan Nicholson | |
Mostly some pedantic changes such that `make clean' always ignores errors. Also changed the top clean target to do the `touch configs/current' dance instead of realclean. | |||
2008-04-03 | rewrite some of the mat*mat, mat*vec intrinsics | Brian | |
Also, remove obsolete matrix codegen code. | |||
2008-01-31 | regenerate glsl library functions | Roland Scheidegger | |
2008-01-31 | fix w component of glsl vec4 asin | Roland Scheidegger | |
2007-10-24 | add to git | Brian | |
2007-07-03 | added vec2(vec4) constructor, bug 11404 | Brian | |
2007-05-10 | regenerated | Brian | |
2007-05-10 | Implement exp() in terms of __asm float_power. Fix typo in mod(vec4) function. | Brian | |
exp() was using __asm float_exp (OPCODE_EXP) but that computes base two, not e. See bug 10907. | |||
2007-05-01 | regenerated | Brian | |
2007-05-01 | implement acos(), asin(), atan() | Brian | |