Age | Commit message (Collapse) | Author | |
---|---|---|---|
2009-09-29 | mesa: added nopfrag/nopvert options for MESA_GLSL | Brian Paul | |
These options can be used to force vertex/fragment shaders to be no-op shaders (actually, simple pass-through shaders). For debug/test purposes. | |||
2009-06-26 | glsl: added slang_assemble_ctx::EmitContReturn field, init | Brian Paul | |
2009-04-27 | Avoid a segfault in shader compilation | Robert Ellison | |
If a shader reaches an out-of-memory condition while adding a new function (reallocating the function list), a segfault will occur during cleanup (because the num_functions field is non-zero, but the functions pointer is NULL). This fixes that segfault by zeroing out the num_functions field if reallocation fails. | |||
2009-04-07 | glsl: don't optimize program if MESA_GLSL=nopt | Brian Paul | |
2009-04-01 | glsl: implement compiling/linking of separate compilation units | Brian Paul | |
A shader program may consist of multiple shaders (source code units). If we find there are unresolved functions after compiling the unit that defines main(), we'll concatenate all the respective vertex or fragment shaders then recompile. This isn't foolproof but should work in most cases. | |||
2009-03-19 | slang: initialize the context | Alan Hourihane | |
2009-03-19 | glsl: change GLSL #pragma initialization | Brian Paul | |
Initialize the shader's pragma settings before calling the compiler. Added pragma "Ignore" fields to allow overriding the #pragma directives found in shader source code. | |||
2009-03-06 | glsl: call the program optimizer | Brian Paul | |
This still needs more testing bug glean and Mesa GLSL tests seem OK. | |||
2009-02-16 | glsl: silence some uninit var warnings | Brian Paul | |
2009-02-06 | glsl: new MESA_GLSL env var for GLSL debugging features | Brian Paul | |
Replaces the VERBOSE_GLSL, VERBOSE_GLSL_DUMP flags which only worked in debug builds. MESA_GLSL will work both in debug and non-debug builds. Also add facility to dump glUniform() calls to stdout. | |||
2009-02-06 | Revert "mesa: meaningless whitespace change to see if git's working (ignore)" | Brian Paul | |
This reverts commit b2e779988eeb595187933fe2122d86f8ccfe059c. I didn't mean to push this stuff yet. I'm having a bad git day... | |||
2009-02-06 | mesa: meaningless whitespace change to see if git's working (ignore) | Brian Paul | |
2009-01-22 | glsl: call _mesa_write_shader_to_file(). Debug-only, disabled | Brian Paul | |
2009-01-22 | glsl: set shader->CompileStatus in _slang_compile() | Brian Paul | |
2009-01-15 | glsl: move declaration before code | Brian Paul | |
2009-01-14 | glsl: propagate pragma info down into compiler from preprocessor | Brian Paul | |
2009-01-12 | glsl: better fix for for-loop scope issue (commit ↵ | Brian Paul | |
6333005f7aea3e5d1d86a5c47b3fa2a1ed2f3ff0) | |||
2009-01-10 | glsl: force creation of new scope for for-loop body | Brian Paul | |
Fixes regression in progs/demos/convolution.c due to loop unrolling. This also allows the following to be compiled correctly: for (int i = 0; i < n; i++) { int i; ... } This fix is a bit of a hack, however. The better fix would be to change the slang_shader.syn grammar. Will revisit that... | |||
2009-01-10 | glsl: replace 0/1 with GL_FALSE/GL_TRUE | Brian Paul | |
2009-01-07 | glsl: pass GLcontext::Extension info down into GLSL preprocessor | Brian Paul | |
Now the #extension directives can be handled properly. | |||
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: bump glsl grammar revision | Brian Paul | |
And update some copyrights. | |||
2008-12-12 | mesa: remove unused varpool code in glsl compiler | Brian Paul | |
2008-12-12 | mesa: remove incorrect array_len assignment | 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: glsl compiler function renaming | 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: 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: remove debug code | 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: support for GLSL 1.20 array types | Brian Paul | |
This allows syntax like "float[8] foo, bar;" | |||
2008-11-24 | mesa: copy centroid/invariance/precision info in parse_init_declarator() | Brian Paul | |
2008-11-19 | mesa: glsl compiler debug code | Brian Paul | |
RETURN0 macro reports file/line before returning zero. | |||
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-10-31 | mesa: fix some bugs with precision qualifier parsing | Brian Paul | |
2008-08-16 | mesa: import latest GLSL code from gallium-0.1 branch | Brian Paul | |
2008-07-29 | mesa: disable debug code | Brian Paul | |
2008-07-29 | mesa: glsl: silence warning (s/int/GLuint) | Brian Paul | |
2008-07-29 | mesa: glsl: assorted fixes for resolving polymorphic functions | Brian Paul | |
Plus, - fix some issues in casting function arguments to format param types. - fix some vec/mat constructor bugs - find/report more syntax/semantic errors | |||
2008-07-29 | mesa: glsl: only try to link shaders defining main() | Brian Paul | |
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-14 | mesa: assemble main() after all other functions | Brian Paul | |
Before, main() had to come after any functions it called. | |||
2008-07-14 | mesa: check for null shader->Source | Brian Paul | |
2008-07-08 | mesa: compute global var size before doing codegen | Brian Paul | |
2008-07-02 | mesa: added some debug code (disabled) | Brian Paul | |
2008-06-12 | glsl: make sure we replace all output reads with temporaries | Zack Rusin | |
test in if.glsl |