Age | Commit message (Collapse) | Author | |
---|---|---|---|
2009-01-02 | Merge commit 'origin/master' into gallium-0.2 | Brian Paul | |
Conflicts: src/mesa/main/ffvertex_prog.c src/mesa/main/texenvprogram.c | |||
2009-01-02 | mesa: fix another "out of samplers" problem | Brian Paul | |
Now only the samplers that are actually used by texture() functions are saved in the uniform variable list. Before, we could run out of samplers if too many were declared while only some of them were actually used. | |||
2009-01-01 | mesa: updated comments about GLSL constants | Brian Paul | |
2008-12-31 | mesa: increase max texture image units and GLSL samplers to 16 | Brian Paul | |
The max texture coord units is still 8. All the fixed-function paths are still limited to 8 too. But GLSL shaders can use more samplers now. Note that some texcoord-related data structures are declared to be 16 elements in size rather than 8. This just simplifies the code in a few places; the extra elements aren't accessible to the user. These changes haven't been extensively tested yet, but sanity checking has been done. It should be possible to increase the max image units/samplers to 32 without doing anything special. Beyond that we'll need longer bitfields in a few places. | |||
2008-12-30 | Merge commit 'origin/master' into gallium-0.2 | Brian Paul | |
Conflicts: src/mesa/main/config.h | |||
2008-12-30 | mesa: fix bug in evaluation of structure fields | Brian Paul | |
Fixes incorrect size information. See bug 19273. | |||
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-30 | mesa: better error message when running out of GLSL samplers | Brian Paul | |
2008-12-18 | glsl: Fix handling of nested parens in macro actual arguments. | Michal Krol | |
2008-12-18 | glsl: Fix handling of nested parens in macro actual arguments. | Michal Krol | |
2008-12-16 | Merge commit 'origin/master' into gallium-0.2 | Brian Paul | |
2008-12-16 | mesa: disable debug output | Brian Paul | |
2008-12-16 | mesa: fix some GLSL array regressions | Brian Paul | |
array.length() wasn't working. Swizzle mask for accessing elements of float arrays was incorrect. | |||
2008-12-15 | mesa: rename slang_library_noise.[ch] to prog_noise.[ch] and rename functions | Brian Paul | |
The noise functions were not glsl-specific. Also, ran indent on the code to clean it up. | |||
2008-12-15 | mesa: bump glsl grammar revision | Brian Paul | |
And update some copyrights. | |||
2008-12-15 | mesa: more re-org of variable declarations in glsl compiler | Brian Paul | |
2008-12-15 | mesa: more comments, clean up | Brian Paul | |
2008-12-15 | mesa: added comments, remove unused code | Brian Paul | |
2008-12-15 | mesa: checkpoint: handle uniform vars in _slang_gen_var_decl() | Brian Paul | |
This allows uniform declarations with scalar/array initializers. The code is rough though, and will be cleaned up. | |||
2008-12-12 | mesa: place glsl constant arrays in constant memory | Brian Paul | |
For example, a declaration like const float[3] xxx = float[3](1.1, 2.2, 3.3); will place the array in the constant buffer whereas a regular, non-const array would be placed in the temporary register file. Next up: do the same thing for uniform arrays. | |||
2008-12-12 | mesa: code clean-up in glsl compiler | Brian Paul | |
2008-12-12 | mesa: remove unneeded swizzle init code in glsl compiler | Brian Paul | |
2008-12-12 | mesa: disable glsl debug output | Brian Paul | |
2008-12-12 | mesa: remove unused varpool code in glsl compiler | Brian Paul | |
2008-12-12 | mesa: basic array constructors work now | Brian Paul | |
For example: float[3] xxx = float[3](1.1, 2.2, 3.3); Optimizations for const-qualified arrays next. | |||
2008-12-12 | mesa: copy array_len in slang_fully_specified_type_copy() | Brian Paul | |
2008-12-12 | mesa: remove incorrect array_len assignment | Brian Paul | |
2008-12-12 | mesa: array size fix in _slang_typeof_operation() | Brian Paul | |
2008-12-12 | mesa: fix some more GLSL 1.20 array things. | Brian Paul | |
Function that return arrays should work now. | |||
2008-12-12 | mesa: more glsl function renaming | Brian Paul | |
2008-12-12 | mesa: use _slang_alloc() | Brian Paul | |
2008-12-12 | mesa: glsl compiler function renaming | Brian Paul | |
2008-12-12 | mesa: more glsl type/function movement | Brian Paul | |
2008-12-12 | mesa: move some glsl compiler functions to different files to be more consistant | Brian Paul | |
2008-12-12 | mesa: move _slang_locate_function() to different file | Brian Paul | |
2008-12-12 | mesa: remove unused fixup table code in glsl compiler | Brian Paul | |
2008-12-12 | mesa: checkpoint: GLSL 1.20 array constructors | Brian Paul | |
2008-12-11 | mesa: consolidate variable declaration initializer code for globals too | Brian Paul | |
2008-12-11 | mesa: move variable initializer IR generation into _slang_gen_var_decl() | Brian Paul | |
More code consolidation coming... | |||
2008-12-11 | mesa: simplify some glsl variable declaration code | Brian Paul | |
2008-12-11 | mesa: glsl clean-ups | Brian Paul | |
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-12-09 | mesa: in slang linker, replace assertion with link error when max samplers ↵ | Brian Paul | |
exceeded | |||
2008-11-28 | Merge commit 'origin/master' into gallium-0.2 | Alan Hourihane | |
2008-11-26 | mesa: add missing type check for function calls | Brian Paul | |
2008-11-26 | mesa: add missing size check for assignment optimization | Brian Paul | |
2008-11-26 | mesa: remove debug code | Brian Paul | |
2008-11-25 | Merge commit 'origin/master' into gallium-0.2 | Alan Hourihane | |
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;" |