Age | Commit message (Collapse) | Author | |
---|---|---|---|
2009-01-07 | glsl: bump up MAX_FOR_LOOP_UNROLL_COMPLEXITY | Brian Paul | |
2009-01-07 | mesa: Add _mesa_snprintf. | José Fonseca | |
On Windows snprintf is renamed as _snprintf. (cherry picked from commit f8f9a1b620d31d1a59855fd502caed325d4a324f) | |||
2009-01-07 | glsl: disable some unused functions (but don't remove just yet) | Brian Paul | |
2009-01-07 | glsl: also unroll loops with variable declarations such as "for (int i = 0; ..." | Brian Paul | |
2009-01-06 | glsl: loop unroll adjustments | Brian Paul | |
Add a "max complexity" heuristic to allow unrolling long loops with small bodies and short loops with large bodies. The loop unroll limits may need further tweaking... | |||
2009-01-06 | glsl: implement loop unrolling for simple 'for' loops | Brian Paul | |
Loops such as this will be unrolled: for (i = 0; i < 4; ++i) { body; } where 'body' isn't too large. This also helps to fix the issue reported in bug #19190. The problem there is indexing vector types with a variable index. For example: vec4 v; v[2] = 1.0; // equivalent to v.z = 1.0 v[i] = 2.0; // variable index into vector!! Since the for-i loop can be unrolled, we can avoid the problems associated with variable indexing into a vector (at least in this case). | |||
2009-01-06 | mesa: Move var declaration to top of scope. | Brian Paul | |
(cherry picked from commit 3740a06e28f4cd09e2a3dce2da60320aa9304df1) | |||
2009-01-05 | mesa: fix a GLSL swizzled writemask bug | Brian Paul | |
This fixes cases such as: vec4 v4; vec2 v2; v4.xz.yx = v2; The last line now correctly compiles into MOV TEMP[1].xz, TEMP[0].yyxw; Helps to fix the Humus Domino demo. See bug 19189. | |||
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-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: 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: 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: 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: glsl compiler function renaming | Brian Paul | |
2008-12-12 | mesa: move some glsl compiler functions to different files to be more consistant | 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-11-26 | mesa: add missing type check for function calls | Brian Paul | |
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: set flags for varying vars | Brian Paul | |
2008-11-24 | mesa: add Flags field to gl_program_parameter | Brian Paul | |
Only one flag defined so far: PROG_PARAM_CENTROID_BIT | |||
2008-11-21 | mesa: issue error, don't crash, when calling a prototyped, but undefined ↵ | Brian Paul | |
function Bug #18659. | |||
2008-11-21 | mesa: better variable name: s/aux/store/ | Brian Paul | |
2008-11-19 | mesa: rework GLSL array code generation | Brian Paul | |
We now express arrays in terms of indirect addressing. For example: dst = a[i]; becomes: MOV dst, TEMP[1 + TEMP[2].y]; At instruction-emit time indirect addressing is converted into ARL/ ADDR-relative form: ARL ADDR.x, TEMP[2].y; MOV dst, TEMP[1 + ADDR.x]; This fixes a number of array-related issues. Arrays of arrays and complex array/struct nesting works now. There may be some regressions, but more work is coming. | |||
2008-11-19 | mesa: updated comment | Brian Paul | |
2008-11-13 | mesa: no longer need Writemask field in GLSL IR nodes | Brian Paul | |
The Swizzle and Size fields carry all the info we need now. | |||
2008-11-13 | mesa: remove some do-nothing GLSL code | Brian Paul | |
2008-11-10 | mesa: track initialization status of uniform variables. Plus, asst clean-ups. | Brian Paul | |
2008-11-10 | mesa: initial support for uniform variable initializers. | Brian Paul | |
This lets one specify initial values for uniforms in the code, avoiding the need to call glUniform() in some cases. | |||
2008-11-07 | mesa: add GLSL support for DP2, NRM3, NRM4 instructions (not actually ↵ | Brian Paul | |
emitted yet though) | |||
2008-11-05 | mesa: fix a GLSL array indexing codegen bug | Brian Paul | |
Expressions like array[i] + array[j] didn't work properly before. | |||
2008-11-04 | mesa: fix float-valued GLSL vertex attribute variables | Brian Paul | |
The swizzle mask for such variables wasn't set up properly. | |||
2008-11-01 | mesa: fix assignment / parameter passing of sampler types | Brian Paul | |
2008-10-31 | mesa: fix copy/paste error in GLSL error msg | Brian Paul | |
2008-09-25 | mesa: prevent the slang code generator from aborting when faced with a ↵ | Sam Hocevar | |
sampler variable redeclaration. | |||
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: import latest GLSL code from gallium-0.1 branch | Brian Paul | |