Age | Commit message (Collapse) | Author | |
---|---|---|---|
2009-12-31 | Merge branch 'mesa_7_7_branch' | Brian Paul | |
Conflicts: configs/darwin src/gallium/auxiliary/util/u_clear.h src/gallium/state_trackers/xorg/xorg_exa_tgsi.c src/mesa/drivers/dri/i965/brw_draw_upload.c | |||
2009-12-29 | glsl: added uniform initializer check | Brian Paul | |
GLSL 1.10 disallows initializers for uniforms but GLSL 1.20 and later allows them. This patch uses the #version directive to allow/disallow uniform initializers. This addresses bug 25807, but piglit also needs to be fixed to specify the GLSL version in the shader. | |||
2009-12-21 | glsl: assorted clean-ups in slang_compile.c | Brian Paul | |
2009-12-21 | Merge branch 'mesa_7_7_branch' | Brian Paul | |
Conflicts: src/mesa/main/version.h src/mesa/state_tracker/st_atom_shader.c | |||
2009-12-21 | Merge branch 'mesa_7_6_branch' into mesa_7_7_branch | Brian Paul | |
Conflicts: configure.ac progs/demos/morph3d.c progs/demos/textures.c progs/glsl/shtest.c progs/glsl/texaaline.c progs/tests/packedpixels.c progs/xdemos/corender.c src/mesa/main/version.h | |||
2009-12-20 | slang: Update after glsl cl interface changes. | Michal Krol | |
2009-12-20 | slang: Update after glsl pp changes. | Michal Krol | |
2009-12-18 | glsl: clear out shader code before compiling | Brian Paul | |
When we start compiling a shader, first free the existing gl_program. This (mostly) fixes the piglit glsl-reload-source test. Without this change, we were actually appending the new GPU code onto the previous program. | |||
2009-12-12 | Merge branch 'master' into glsl-pp-rework-2 | Michal Krol | |
Conflicts: progs/perf/drawoverhead.c progs/perf/teximage.c progs/perf/vbo.c progs/perf/vertexrate.c src/mesa/shader/slang/library/slang_common_builtin_gc.h | |||
2009-12-10 | slang: Predefine ES symbols for FEATURE_es2_glsl. | Michal Krol | |
2009-12-10 | slang: Explicitly enable ARB_draw_buffers and ARB_texture_rectangle. | Michal Krol | |
They are no longer built into the glsl preprocessor. | |||
2009-11-23 | slang: Fix order of parameters to sl_pp_tokenise(). | Michal Krol | |
2009-11-21 | slang: No need to purify source text for tokeniser. | Michal Krol | |
2009-11-13 | slang: Report syntax parser errors. | Michal Krol | |
2009-11-13 | slang: Get rid of the old syntax file and utilities. | Michal Krol | |
2009-11-13 | slang: Plug in the new syntax parser. | Michal Krol | |
2009-11-10 | slang: Update for glsl/pp interface changes. | Michal Krol | |
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-09-22 | slang: Differentiate between uints and floats. | Michal Krol | |
2009-09-18 | slang: Use glsl pp public interface. | Michal Krol | |
2009-09-16 | slang: Propagate error messages from preprocessor. | Michal Krol | |
2009-09-16 | slang: Invoke the preprocessor from withing the slang compiler. | Michal Krol | |
This allows us to validate the shader version number. | |||
2009-09-08 | slang: Correctly parse numbers from the new preprocessor. | Michal Krol | |
2009-09-08 | slang: Remove the old preprocessor. | Michal Krol | |
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 | |